Hi,
Im revisting a problem that I had sometime ago where I had to extract userIDs and USernames from the SAM. I am getting that problem over again when running the script,
code:
Microsoft(R) Windows 98
(C)Copyright Microsoft Corp 1981-1999.
X:\>c:
C:\WINDOWS>kix32.exe c:\extract.kix
Script error: unknown or unexpected command []!
$domain.filter = "user",""
C:\WINDOWS>
I had it working before and now its seems to have reverted back to the problem I was originally getting when ASDI for win98 wasnt installed. I installed the addin that Howard points to but im still getting the above message.
code:
$DomainName="RMNETNT"
$domain = GetObject("WinNT://$DomainName,domain")
$domain.filter = "user",""
for each $user in $domain
? $user.name
next
The only thing I can think of thats been changed is the version of Kix that im running (a later version).
[ 19. May 2003, 12:57: Message edited by: Stephen Wintle ]
_________________________
Dont worry because a rival imitates you. As long as they follow in your tracks they cant pass you!