Remote Shutdown question


  1. Posts : 3
    Win 7 H/P
       #1

    Remote Shutdown question


    I have read and read and read on this issue and it seems i need to tweak my registry to perform a remote shutdown due to the fact I have Win 7 Home Premium....

    Here's the Deal, I have 4 PC's on my home network and I want to be able to remotely shutdown all of them from my Laptop at night.
    I've tried to do it via the Shutdown -i command but I get "access denied" so I researched that and found that I need to go into "Group Policy editor" and activate remote shut down.... Then I find out that Home Premium doesnt have the gpedit.msc as part of the operating system and the only way to activate the policy is in the registry...

    Can somebody tell me where in the registry I need to make changes and what changes I need to make to activate the "Remote Shutdown over my local home network....

    I really would appreciate the assistance....My kids constantly leave the PC's on in the house and I really want control over them especially when my son doesnt want to get off his video games.

    Thank you
    Jess
      My Computer


  2. Posts : 972
    Windows 7 Ultimate x64
       #2

    What you could do is make yourseld the admin of all the computers.... same user and same password. Then on your computer just create a batch file when you double click. Like I have one that will shut the computers down exactly 30 min when I double click the.batch file

    All computers need to have the full admin activated for this to work.

    If its windows

    Elevate the command prompt

    Type

    Net user administrator /active:yes

    Enter

    Then when you log out administrator will show in the welcome screen when u log in... alt cntrl del and change password imm+diately..

    Remember to do this to all computers with same password... the computer u r on todo the remote shut down u have to be in the admin account as well
      My Computer


  3. Posts : 3
    Win 7 H/P
    Thread Starter
       #3

    Admin account is already active on all my systems. The group policy editor is missing for Win 7 Home Premium, which is needed to easily activate remote shutdown in windows 7
    I've found a couple articles that say it can be activated in the registry however there are no instructions on how or where in the registry to make the changes. That's what I need I believe.

    I am not familiar with the method your describing. I want to be able to use the "Shutdown -i" dialog and shut them down immediately.

    Thanks
      My Computer


  4. Posts : 972
    Windows 7 Ultimate x64
       #4

    I don't think there is a group policy editor for Home premium... i think its only professional and up.

    Best thing to do is: make all computers have static IPs.

    Create the Batch file:

    shutdownall.bat
    =================================
    @echooff =
    cmd / c shutdown /s /f \\192.168.2.8 =
    cmd / c shutdown /s /f \\192.168.2.9
    cmd / c shutdown /s /f \\192.168.2.10 =
    =================================
    Create a batch file like this...
    the CMD will execute the command prompt... the /c will carrier out the string and then terrimate

    shutdown is the string command, /s will shut the computer down /f will force it to shut down all apps immediately and then the computer name next to it

    Edit update:
    just that when you create the batch file... don't include all those equal signs...
      My Computer


  5. Posts : 3
    Win 7 H/P
    Thread Starter
       #5

    acurasd said:
    I don't think there is a group policy editor for Home premium... i think its only professional and up.

    Best thing to do is: make all computers have static IPs.

    Create the Batch file:

    shutdownall.bat
    =================================
    @echooff =
    cmd / c shutdown /s /f \\192.168.2.8 =
    cmd / c shutdown /s /f \\192.168.2.9
    cmd / c shutdown /s /f \\192.168.2.10 =
    =================================
    Create a batch file like this...
    the CMD will execute the command prompt... the /c will carrier out the string and then terrimate

    shutdown is the string command, /s will shut the computer down /f will force it to shut down all apps immediately and then the computer name next to it

    Edit update:
    just that when you create the batch file... don't include all those equal signs...
    I know... I looked all over for the G.P.E in H/P and found out it isn't in there.

    So I just put all that in notepad and save as Shutdown.bat? Then how do I make it active when I want it to?

    All the IP's on my home network never change unless I change them....

    Thanks
      My Computer


  6. Posts : 972
    Windows 7 Ultimate x64
       #6

    Yes you just go into your notepad and save it as shutdown.bat

    but make sure that you don't have the extention of txt.. so change the SAVE as at the bottom too.

    you can save it on your desktop and just test it out.

    you make it active just by double clicking on the icon when it creates it on the desktop when you save it there.

    you will see what i mean when you save it as a BAT file
      My Computer


  7. Posts : 11,990
    Windows 7 Ultimate 32 bit
       #7

    if you saved the batch file to your desktop, simply click on it.
      My Computer


  8. Posts : 4
    Windows 7 Home Premium 32 bit
       #8

    Doesn't work for me. Seems without the /m in the shutdown command line, you simply get your dos box filled with the shutdown instructions and options. Adding the /m like this:
    cmd /c shutdown /s /f /m \\192.168.0.198

    Then gives the error :
    192.168.0.198: the entered computer name is not valid. Check the name and then try again or contact your system administrator. <53>

    I tried in the remote computer the
    runas /netonly /u(username) CMD (with a colon after the U...this app puts up a frowny face)
    and it prompted me for the username's password, and spawned a dos prompt.
    I ran the shutdown command and got the same error.

    I created a new administrator account in the remote computer with the same username as the Win7 computer and same password. I ran
    runas /u(username), got the command prompt, ran whoami and got the correct computername\username and did the shutdown command again, Again got the same message.

    I have enabled port 445 in the Win7 machine in the Windows Firewall (custom setting) inbound rule.
    When I run Windows Explorer and type \\ComputerName or \\192.168.0.198 in the menu bar field, after responding to the password challenge, I can see the Win7 machine just fine.

    Running
    net use \\192.168.0.198
    completes successfully.

    Seems there is something in the Win7 machine blocking the shutdown from a remote computer

    Additionally, there seem to be lots of options in the Win7 firewall which enable pieces of remote administration. I wonder if you have to enable some of these.
      My Computer


  9. Posts : 5,656
    Windows 7 Ultimate x64 SP1
       #9

    I can shutdown a Virtual Machine (Windows 7 Home Premium) with PSTools of Sysinternals Suite.
    http://www.howtogeek.com/school/sysinternals-pro/lesson8/all/

    You will need to (on the machine you want to remotely control):
    To tweak UAC to enable PsTools to run you’ll want to open up the Registry Editor and navigate to the following key:
    Code:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System
    Once you are there, create a new 32-bit DWORD on the right-hand side, give it the name LocalAccountTokenFilterPolicy and the value of 1. You don’t have to restart the computer to make the setting take effect.
    Then enable Remote Registry on remote machine if needed:
    Code:
    psservice \\computername -u username -p password start RemoteRegistry
    Once you gain access:
    Code:
    psshutdown \\computername -u username -p password
    Not sure if you need to -u -p each and every time!
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 13:27.
Find Us