Remote Scheduled Task from XML
i trying use exported xml file schedule task on remote machine, because need task run , understand setting not available when building task scratch using schtasks. have xml file works, validated loading manually. , have code in powershell...
schtasks /create /s px-1 /ru username /rp password /tn test /xml "\\psf\px\support\px 3.0\x_ps dev\remote_scheduled_task.xml"
the user name password exists on machine, admin, , has access path xml. however, when run this, after long pause get schtasks.exe : error: network path not found.
i have tried copying xml the admin share , referencing local xml file , still same error. this suggests trying possible. other place network path seems come in task itself. arguments powershell.exe include a path network ps1 file. there odd way task gets scheduled, can't validate network path in arguments?
or problem perhaps user account? have created scheduled task before using powershell, using system user account, worked use case, here task needs access network isn't option.
not scripging question. should post in platform forum version of windows. schtask system utility , not script.
¯\_(ツ)_/¯
Windows Server > Windows PowerShell
Comments
Post a Comment