Wanna script for it?

Ensure you run this with cscript, or you're going to be closing a LOT of
popup windows.

Cscript script.vbs >outputfile.txt


------<Begin Script>-------
'Sets ADSI provider to specific domain
Set domain = GetObject("WinNT://domainname")

'Filters collection to be just users (ignoring Groups and Computers)
domain.Filter = Array("User")

'Walks the collection returned from ADSI and filtered
'by the above commands.
For Each user In domain
  WScript.Echo user.Name & "," & user.FullName & "," & User.Description &
"," & User.IsAccountLocked & "," & user.LoginScript & "," &
user.HomeDirectory & "," & user.HomeDirDrive
Next

'End of Script
set domain=nothing
------<End Script>------------



------------------------------------------------------
Roger D. Seielstad - MCSE
Sr. Systems Administrator
Inovis - Formerly Harbinger and Extricity
Atlanta, GA


> -----Original Message-----
> From: Lum, David [mailto:[EMAIL PROTECTED]] 
> Sent: Wednesday, December 11, 2002 1:04 PM
> To: NT 2000 Discussions
> Subject: User properties in AD
> 
> 
> Playing with the AD Users and Computers snap-in, it doesn't 
> look like I can
> run a query that will list everyone's login script. Doing 
> custom search I
> can find home folders and just about everything else, but 
> login script isn't
> in the list.
> 
> Am I overlooking something or do I need a 3rd party utility for this
> seemingly simple task? Resourse kit, perhaps?
> 
> Thanks,
> Dave Lum - [EMAIL PROTECTED]
> Sr. Network Specialist - Textron Financial
> 503-675-5510
> 
> ------
> You are subscribed as [EMAIL PROTECTED]
> Archives: http://www.swynk.com/sitesearch/search.asp
> To unsubscribe send a blank email to %%email.unsub%%
> 

------
You are subscribed as [email protected]
Archives: http://www.swynk.com/sitesearch/search.asp
To unsubscribe send a blank email to [EMAIL PROTECTED]

Reply via email to