Remotley Reboot Computers On A Different Subnet

This should be an easy one. I can remotely reboot a computer from 10.0.1.20 using the dos command of "shutdown /m \\10.0.1.22 /r /t 01 /y /f". What I would like to do is reboot the same computer 10.0.1.22 from i computer on the 192.168.100.100 subnet. When I run the same command from 192.168.100.100 i get error message "10.0.1.22 access is denied (5)". The 2 sites are connected by a vpn. I am trying to write a script that will reboot about 350 computers from one location.
Thanks in advance
portillosjohnAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
achaldaveConnect With a Mentor Commented:
Make sure the account you are using to run command has administrative privileges on the remote computers, also check firewall is not blocking RPC ports on remote computers.
0
 
portillosjohnAuthor Commented:
Ah ha. It was the admin privileges.....
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.