I know this might be simple to everyone, but for the life of me I cannot get a script to get objGroup for each user in my domain...basically all I need is a simple script that will connect to my domain and output to a text file a list of users with the group they belong to...
objUser & objGroup...
we use this script to call programs when users login to the network its called with the logon batch file using:
cscript exec.vbs username password <program>
Hope this helps
'USAGE: cscript|wscript VBRUNAS.VBS Username Password Command
'DESC: A RUNAS replacement to take password at a command...
here is a script that I use, its not mine and I did not write it...this is just to give you some help
On Error Resume Next
Dim WSHShell, objOutlook, objMsg, strTitle
Dim strSendTo, strSubj,strBody
Set WSHShell = WScript.CreateObject("WScript.Shell")
Set objOutlook =...
thanks for your help, but what Im looking at is trying to get it to write the ip address to the file, here is a snippet of the script we use to you can see how we are writing it
-------------------
On Error Resume Next
Dim WshNetwork, oFileSys, fh
Dim WshShell
Set WshNetwork =...
I have a small problem, we use a simple user auditing script that was written in vbs, basically it gathers user information when they logon to our domain and saves it to a log file on our servers for later use. It does what we need but there is something else and I cant seem to find anything...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.