Re: Shutdown remotely
- From: "Shenan Stanley" <newshelper@xxxxxxxxx>
- Date: Wed, 11 Apr 2007 20:38:32 -0500
FriKaZee wrote:
At the end of every work day I am required to shut down 30
computers in my computer lab. In order to make life easier for
myself I decided to create a batch file that used the shutdown
command with the -m \\computername extension to shut down all the
computers. However 29 of the computers shut down properly and the
other computer gives me an "Access is Denied" error message.
The computers are all in the same workgroup and all have the same
Usernames and Passwords.
I have added the Everyone group to Computer Configuration\Windows
Settings\Security Settings\Local Policies\User Rights
Assignment\Force shutdown from a remote system
Does anybody have any suggestions as to what I may have overlooked?
Security-wise - you added EVERYONE..
And you added EVERYONE to a group that is allowed to remotely shutdown the
system. heh
Can you PSEXEC as the known user on the trouble machine and run the shutdown
command locally?
Like a batch script:
for /f %%u in (PCs.txt) do (
start psexec \\%%u -u "USERNAME" -p "%1"
c:\windows\system32\shutdown.exe -s -f -t 60 -c "The Lab is CLOSED."
)
Where PCs.txt contains a list of the machine or IPs... (One per line)
You type in:
nameofbatch password
to start it and enter the password for "USERNAME"...
--
Shenan Stanley
MS-MVP
--
How To Ask Questions The Smart Way
http://www.catb.org/~esr/faqs/smart-questions.html
.
- Prev by Date: Re: Critical Update downloads
- Next by Date: Re: Admin vs limited user account
- Previous by thread: MSI Installer error when installing 3dsmax8
- Next by thread: Re: Shutdown remotely
- Index(es):
Relevant Pages
|