How to pass parameters in scheduling a windows task on command prompt


hi,

i want schedule exe, , exe takes argument, couldn't on task schedule window, in http://technet.microsoft.com/en-us/library/bb490996.aspx page, doesn't explain giving parameters. can me?

hello,

you can schedule batch file example starts .exe required arguments, similar one(conficker.bat), used installing conficker patch .exe file , /quiet argument:

;install kb958644(conficker worm) in silent mode , creates logfile prevent loop on install:

if not exist %systemroot%\w2kkb958644.log \\yourdomainname.com\sysvol\yourdomainname.com\policies\{3f30361d-1a8a-4b3f-8d2d-55b53bc28ea8}\machine\scripts\startup\w2kkb958644.exe /quiet

if not exist %systemroot%\w2kkb958644.log copy \\yourdomainname.com\sysvol\yourdomainname.com\policies\{3f30361d-1a8a-4b3f-8d2d-55b53bc28ea8}\machine\scripts\startup\w2kkb958644.txt %systemroot%\w2kkb958644.log /y


best regards meinolf weber disclaimer: posting provided "as is" no warranties or guarantees , , confers no rights.


Windows Server  >  Windows Server General Forum



Comments

Popular posts from this blog

Edit Group Policy

Hyper-V VM not reaching OS 'Logon' screen

DNS question...