Link to home
Start Free TrialLog in
Avatar of Osley
Osley

asked on

Windows 7 Enterprise/ Workstation x86 Network Shutdown Script?

Hi.

I used the command 'netdom query workstation' to discover all the workstations active on the domain. I chose one workstation still active and entered it's machine name as discovered by the netdom query output as x100-WS01-YU0

I then ran CMD in administrator mode and entered this:
shutdown /m \\x100-WS01-YU0 /f /s

I'm encountering an error message: The entered computer name is not valid or remote shutdown is not supported on the target computer. Check the name and then try again or contact your system administrator.(53)

What am I missing in the script?
Avatar of Senthil Kumar
Senthil Kumar
Flag of India image

May be user is logged in as the local administrator which denies the shutdown command or the PC itself is removed from the network. Try pinging the machine by name and verify.
Avatar of Osley
Osley

ASKER

The machine isn't logged in. I can't ping the computer, however I can remote into it. The problem is that there's too many active computers to remote into, hence the need for a script.
ASKER CERTIFIED SOLUTION
Avatar of khaledlayayda
khaledlayayda
Flag of Tunisia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of Mohammed Hamada
Mohammed Hamada
Flag of Portugal image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Osley

ASKER

Great! Thanks 'khaledlayayda' for the local policy solution. This will come in handy.. Thanks 'moh10ly' for the solution - it worked.