steve, that's why we have multiple days in our lifes... to learn every day something new and perhaps at the end know that "we don't know a sh*t" (quote modified)  
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.
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!
that error just looks like it's unable to get the object and thus the array get spilled to console and thus the error as arrays can't be outputted to console.
#29861 - 2003-05-2002:02 PMRe: Extracting Username in TXT file
Howard BullockHoward Bullock
KiX Supporter
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
I suggest you reinstall ADSI and try again. What version of ADSI were you using? Did you stated that this issue cropped up after moving from an NT4 domain to W2K AD domain?