1

I have an .XML file containing scheduled Task and I would like to add it to the task scheduler via python to a remote server. Is there any way I can do that?

I have tried

import os

os.system("schtasks.exe /Create /S 'abc.pggs.com' /RU 'QWERT\DEVenv' /RP 'Passwordin'  /TN  'Hit' /XML 'Hitfiles.xml'")

ERROR:

Invalid syntax. Mandatory option 'tn' is missing.
Type "CREATE /?" for usage.
'v'' is not recognized as an internal or external command,
operable program or batch file.
TylerH
  • 20,799
  • 66
  • 75
  • 101

0 Answers0