Re: 250 users in an OU. Ineed to know what login scripts they are usin
- From: "Richard Mueller [MVP]" <rlmueller-NOSPAM@xxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 24 May 2005 22:04:19 -0500
jo wrote:
> I have an OU that has 250 + users. I need to know what scripts they are
> using. I would like to create a vbscript that will get the login script
> information from the users in the OU then pipe it to a text file. Can
some
> one help thanks.
Hi,
Run the script below at a command prompt and pipe the results to a text
file:
Option Explicit
Dim objOU, objUser
Set objOU = GetObject("LDAP://ou=Sales,dc=MyDomain,dc=com")
objOU.Filter = Array("user")
For Each objUser In objOU
Wscript.Echo objUser.scriptPath
Next
--
Richard
Microsoft MVP Scripting and ADSI
Hilltop Lab web site - http://www.rlmueller.net
--
.
- References:
- Prev by Date: Re: unlock user accounts en masse
- Next by Date: How To Kill Processes Exceeding Specified Thresholds
- Previous by thread: 250 users in an OU. Ineed to know what login scripts they are usin
- Next by thread: unlock user accounts en masse
- Index(es):
Relevant Pages
|