title: LsaEnumerateAccountsWithUserRight fails when connecting to Windows Server 2008 r2
body: <p>I have some c# code that uses the "advapi32.dll" to connect to various servers to collect various information for documentation purposes.</p>
  
  <p>Part of that documentation is getting user permissions from each machine.  I am using the LsaEnumerateAccountsWithUserRight function which seems to work on Windows 2003 machines, but not on 2008 machines.  I receive an 'access denied' error.  I have read a variety of threads on a variety of sites recommending disabling UAC (which I have tried) and using POLICY_VIEW_LOCAL_INFORMATION instead of POLICY_ALL_ACCESS when using LsaOpenPolicy (which I have tried) and none of it seems to work.  Has anyone run into this problem?</p>