Login | |
|
 |
RE: Need help with a Scheduled Task problem. Change PC ... - 12/13/2007 11:35:51 PM
|
|
 |
|
| |
Meg
Posts: 126
Score: 2
Joined: 7/13/2006
From: Australia
Status: offline
|
Do you use sysprep on the images first? if not that may help. Your script will set a scheduled task on the computer it is run on, change the line strComputer = "." to strComputer = "pc002" to set the scheduled task on pc002. According to microsoft, if you set a task this way you can not edit it later with the GUI. You can also run c:\windows\system32\Schtasks.exe with the necessessary switches to set a scheduled task. Example in my last script - task monitor strCSV = "outputfile.csv" strCMD="cmd /c c:\windows\system32\Schtasks.exe /S " & strComputer & " /query /fo csv /NH /v > " & strCSV objShell.Run strCmd,0,True This snipit will Query computer for scheduled task information, change the switches to actually set a task Good luck.
|
|
| |
|
|
|
|
|