Re: 250 users in an OU. Ineed to know what login scripts they are usin

Tech-Archive recommends: Speed Up your PC by fixing your registry



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
--


.



Relevant Pages

  • Re: 250 users in an OU. Ineed to know what login scripts they are
    ... For Each objUser In objOU ... You can run the script at a command prompt and echo the output to a text ... >> Option Explicit ... >> Dim objOU, objUser ...
    (microsoft.public.windows.server.scripting)
  • accessing a pipe from TCL and C, hang in `close/exit
    ... I have a TCL shell script which opens a socket to some remote host, ... and opens a read-converter pipe. ... data arrives on the remote host. ... Now I want to close the channel from C++: ...
    (comp.lang.tcl)
  • I can process my mail!
    ... I figured out how to pipe mail to my own scripts! ... the script as an argument. ... that won't confuse boundaries for message text. ... sendmail, but I'm not that interested in sendmail in particular. ...
    (comp.unix.questions)
  • Re: how do i..
    ... On Sun, 2004-08-22 at 18:31, Mr. Oberoi wrote: ... > error results from the program(shell script) to a file. ... scriptname> filename 2>&1 ... the pipe character is used to "chain" the output of the command on ...
    (Fedora)
  • Re: IO::Pipe and loss of data
    ... May be I cut too much, but as the last run of my big script was ... > show at least how I work to send a message and use the pipe. ... There is a fixed amount of buffer (probably 4K ... for each "server". ...
    (comp.lang.perl.misc)