yes you can output the data by using the fso :
That way it creates a text file called users in the same place where your script is located, so when you have objUser.name, run the script, it will create the text file, hopefully withCode:Set fso = CreateObject("Scripting.FileSystemObject") Set ts = fso.CreateTextFile ("Users.txt", true) Dim objUser, objComputer ComputerName = "server_name" '<<-- alter this to your servers name Set objComputer = GetObject("WinNT://" & ComputerName) For each objUser in objComputer ts.Write objUser.name & vbcrlf '<-- this line next
then copy that text file and call it name.txt
then change that one line to
and repeat so that you change the name of the file so it does not over write it and then change the line in the script again to
Then post all 3 text files ( assuming that the output into the text file is as per above with one name on each line )
Then I can download them and have a look and finish the script off.
You are probably better off taking a few examples from each and pm'ing me with those and put comments in so I know which examples are students and which ones are staff members.
Last edited by mac_shinobi; 29th January 2008 at 05:25 PM.
There are currently 1 users browsing this thread. (0 members and 1 guests)