Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Remote Shutdown question

07 May 2010   #1
jessepatty

Win 7 H/P
 
 
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 System SpecsSystem Spec
.

07 May 2010   #2
acurasd

Windows 7 Ultimate x64
 
 

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 System SpecsSystem Spec
08 May 2010   #3
jessepatty

Win 7 H/P
 
 

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 System SpecsSystem Spec
.


08 May 2010   #4
acurasd

Windows 7 Ultimate x64
 
 

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 System SpecsSystem Spec
08 May 2010   #5
jessepatty

Win 7 H/P
 
 

Quote   Quote: Originally Posted by acurasd View Post
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 System SpecsSystem Spec
08 May 2010   #6
acurasd

Windows 7 Ultimate x64
 
 

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 System SpecsSystem Spec
08 May 2010   #7
CarlTR6

Windows 7 Ultimate 32 bit
 
 

if you saved the batch file to your desktop, simply click on it.
My System SpecsSystem Spec
1 Day Ago   #8
JimboBigbelly

Windows 7 Home Premium 32 bit
 
 

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 System SpecsSystem Spec
1 Day Ago   #9
GokAy

Windows 7 Ultimate x64 SP1
 
 

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):
Quote:
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 System SpecsSystem Spec
Reply

 Remote Shutdown question




Thread Tools





Similar help and support threads
Thread Forum
Is remote shutdown and turn on possible using W7's Remote Desktop?
If it can't be done, what are the alternatives? Thank you. Edit: I just read how to shutdown with Remote Desktop and I'm going to try that out. So, the only remaining questions are how can I remotely turn on a workstation on a lan? Can I do it at a pre-determined time? What about remotely...
Network & Sharing
Remote shutdown curse!
This problem is driving me kabonkers. I have searched in google but it has just taken me around in circles. I have 3 computers in my house. My laptop is running Windows 7 Pro. My desktop is running Windows Vista Home and my other laptop is running Windows 7 Home. I've tried to remote shutdown one...
Network & Sharing
Remote Shutdown
I tried to remote shutdown an XP SP3 workstation from a windows 7 workstation. I used the following command: "shutdown /m \\huttesrv001.hutte.local /s /f" but I always get an error: "huttesrv001.hutte.local: Access is denied.(5)" where huttesrv001.hutte.local is the name of the remote...
Network & Sharing
shutdown remote pc on LAN
Greetings everyone, it's me again - this time with the second half of the Wake on LAN thread. I want to powerdown a remote PC simply by double clicking a desktop shortcut on my local machine, and it should be possible using the shutdown command. I have tried creating a new shortcut with...
Network & Sharing
Set permission for remote shutdown
I have a Home LAN and I'm trying to use command "shutdown" for shutdown machines remotely but I get "Acces denied". shutdown -r -m \\MACHINE1 I've tried to use PsTools and partialy I've achieved the goal. I've created a batch file on each machine shutdown -r . I've shared folder over network and...
Network & Sharing
Remote shutdown with UAC on?
Hi there i hope someone can help me with this its been driving me mad and googles taking me round in circles :( I need to shutdown a server on the same network using the shutdown command like we used to when it was xp (now w7 ultimate 64bit). After spending days on this now trying various...
Network & Sharing

Our Sites

Site Links

About Us

Find 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 20:15.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App