I don't know what is the best way to audit servers and clients computers
with audit32.exe from Intuit. This program audit's hardware and software of
each machine.
I've already try to schedule a task from the main server to other server
and run the audit32,exe file. But didn't work once it make the audit of the
main server and not of the remote server (the audit32.exe was in the remote
server in a shared folder).
Perphaps with the script below should make easier the audit?... If so can
i put this script in the group policy domain?...
The final purphose it to shedule the audit of servers and clients
computers (local and remote) by Organization Unit in differant days
*************************************************************************************************
Create a Scheduled Task
Schedules Notepad to run at 12:30 PM every Monday, Wednesday, and Friday
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set objNewJob = objWMIService.Get("Win32_ScheduledJob")
'Here instead of call notepad.exe i'll call audit32.exe. Do you thing it
might work?...
errJobCreated = objNewJob.Create _
("Notepad.exe", "********123000.000000-420", _
True , 1 OR 4 OR 16, , , JobID)
Wscript.Echo errJobCreated
*************************************************************************************************
Thanks
Ricky