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: How-to call a VBS in Win7 Pro to Telnet a shutdown to a NAS

14 Dec 2011   #1
methinks

Win7 Pro 32-bit
 
 
How-to call a VBS in Win7 Pro to Telnet a shutdown to a NAS

Greetings (1st Post),

I have a Win7 Pro PC and a NAS Unix box both powered on a single APC UPS. The Win7 PC has a USB connected to a data port on the APC UPS so when there is a power hit and the settings with the APC s/w are meet, the Win7 Pro PC will start shutdown procedures before batteries expire!

My goal is to initiate a "shutdown.vbs" script (which I have put together and tested) that will telnet to my NAS box which is Linux and perform a shutdown routine on the NAS. The NAS is also plugged into the same APC UPS but there is no s/w are connectivity between the NAS and UPS directly other than the power cable.

Anyone know how I could get Win7 Pro to activate the "shutdown.vbs" just prior to it starting it's own showdown processes? I've looked through the Computer Mgmt area but didn't come across anything that stood out.

Thank You


My System SpecsSystem Spec
.
14 Dec 2011   #2
cluberti

Windows 10 Pro x64
 
 

You could set it to run as a computer shutdown script, but you'd have to test it to make sure it actually worked. If you have Win7 Pro, you should be able to go into gpedit.msc and view the local group policy, from which you can set a shutdown script for the machine under Computer Configuration\Windows Settings\Scripts (and once configured, run gpupdate /force from an elevated cmd prompt).
My System SpecsSystem Spec
14 Dec 2011   #3
methinks

Win7 Pro 32-bit
 
 
Thanks for the Advice

Cluberti,

I implemented your suggestions. Worked great! Now when my house takes a power hit I know my PC will telnet shutdown to the NAS box and both systems will shutdown in a orderly manner.

Best Regards
My System SpecsSystem Spec
.

Reply

 How-to call a VBS in Win7 Pro to Telnet a shutdown to a NAS




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
wanted to call it D but the system suggested I call it E
I just initialised my 1TB hard Drive (which is still empty) and wanted to call it D but the system suggested I call it E because other programs may wish to use the D that has been allocated to the Optical Drive. So I left it at E. Any particular reason why I can't go back in and change...
Hardware & Devices
FIX - to BSOD/crash/ trying to play Call of Duty MW3 + on Win7 x32.64
Hello everyone, this is for those who are having a problem playing or trying to play Call of Duty MW3 or BF3. I built the same PC for a friend as mine. System consisted of: Asus Sabertooth 990FX w/ AMD FX 8120 Eight-Core cpu 3.4GHz 8Gb Kingston HyperX Ram 500gb WD HD Windows 7 Ult x64 (his...
Gaming
SHUTDOWN BUTTON win7 - how to add delay to default shutdown button
WIN 7 Professional: I think the shutdown button should have a confirmation prompt with a delay, whether on the Sign on page or the Start menu to allow for recovery when inadvertently clicking it. I know I can create my own shutdown, sleep, etc. but that does not resolve the issue, unless the...
Customization
Can't telnet to 127.0.0.1
Don't ask me why, but I want to telnet my own computer. I've tried enabling all telnet services and adding ports, but I'm getting nowhere. Any hints?
Network & Sharing
Telnet
Well today I needed to use Telnet and discovered it is not enabled on Win7 as default. So if anyone else needs to know this is how to do it Start Control Panel Programs And Features Turn Windows features on or off Check Telnet Client Hit OK
Network & Sharing
win7 b7068 x64 telnet command
I can not use telnet command for setup router
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 01:13.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App