Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

scheduling task on remote computers powershell V3

$
0
0

hello

I want to run scheduled jobs from admin Workstation Powershell ISE V3 , after using  remote connection tab and enter the remote administrator credential for the remote computer, i run scheduled job like this

$trigger =New-JobTrigger –Once –At "10:00 AM" -User administrator
Register-ScheduledJob –Name GetServices –FilePath c:\myjob.ps1–Trigger $trigger

the job is registred on the remote computers, but not running, it report error 0x80070001.

the computers are in workgroup no domain authentication, in myjob.ps1 i have just get-service cmdlet only

what i have missed...?

thank you

 


Viewing all articles
Browse latest Browse all 6937

Trending Articles