Thursday, 3 April 2014

How to manage scheduler tasks remotely

If you ever had to manage scheduled tasks you know that sometimes is nearly impossible to log on to computer to manage it or to connect to it remotely.
I'm using psexec tools from great PSTools by Mark Russinovich.
Psexec could manage remotely in the situations when you cannot access to computer from powershell or RDP.

To connect to computer use CMD:
psexec -s \\computername_or_IPaddress cmd
Then you will se command line from remote computer

To access to scheduled task, enter:
schtasks

To change username of scheduled tasks
schtasks /change /tn NAMEOFTHETASK /ru username
Then enter user credentials

To start the task:
shtasks /run /tn NAMEOFTHETASK

No comments:

Post a Comment