Re: Shutdown remotely



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


.



Relevant Pages

  • Re: Computer Startup Batch File via GPO (not working)
    ... The batch file basically has the following command and I can confirm ... Authenticated Users and also to Domain Computers, ... Command Prompt, will it? ... professionals either in or formerly in the DOS field. ...
    (microsoft.public.windows.group_policy)
  • Re: Auto shutdown
    ... >public area of our library. ... When I send this shutdown command manually ... and run 1 batch to shutdown all computers from a 'master' computer. ...
    (microsoft.public.win2000.general)
  • Re: Computer Startup Batch File via GPO (not working)
    ... but the example script was just to illustrate the line ... files onto a set of computers on start up, this batch file is ... Authenticated Users and also to Domain Computers, ... Command Prompt, will it? ...
    (microsoft.public.windows.group_policy)
  • Re: [opensuse] Re: Computer does not turn off
    ... computers, etc. ... No, "dearth", really: ... shutdown got stuck the week before. ... A UPS where you can send it a command to simply cut power, ...
    (SuSE)
  • Re: VBscript that restart the domain comptuer
    ... If you have a shutdown script that cleans up the profiles, ... permissions can restart all computers in a list remotely. ... I have already VB script I ...
    (microsoft.public.windows.server.active_directory)