
Signature
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
Hi Peter,
I need a way to list the built-in local user accounts.
I am able to list the following types of user accounts: domain user
accounts, built-in domain user accounts, local user accounts.
But I am not able to list the built-in local user accounts.
It works with WMI but I have to accomplish that with Active Directory.
> Hi Mircea,
>
[quoted text clipped - 10 lines]
> Get Secure! - www.microsoft.com/security
> This posting is provided "AS IS" with no warranties, and confers no rights.
Willy Denoyette [MVP] - 08 Jul 2005 17:14 GMT
Local accounts are not domain accounts, as such they are not registered in
the AD and you can't use LDAP as provider.
You can use the DirectoryServices namespace classes with the "WinNT"
provider to access the local SAM.
Check:
... DirectoryEntry("WinNT://....
in MSDN.
Willy.
> Hi Peter,
>
[quoted text clipped - 21 lines]
>> This posting is provided "AS IS" with no warranties, and confers no
> rights.
"Peter Huang" [MSFT] - 09 Jul 2005 03:54 GMT
Hi
I agree with Willy's suggestion, also here is a link for your reference.
Enumerating local accounts with WMI
http://www.pcreview.co.uk/forums/thread-531890.php
Best regards,
Peter Huang
Microsoft Online Partner Support

Signature
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.