Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Shutdown Script not working when shutting down


  • Please log in to reply
1 reply to this topic

#1 kjmc

kjmc

  • Members
  • 1 posts
  • OFFLINE
  •  
  • Local time:10:44 AM

Posted 16 October 2013 - 09:33 PM

Hi,

 

I have a .vbs to run wakeonlan.exe (also tried shutdown.exe) to run as a shutdown script. The script works fine from a command line or double click but it fails when run as a shutdown script.

 

Maybe some service that either exe needs is stopped before the script runs so there is some sort of error???

 

I want my HTPC to shtudown my media server when it shuts down, and start the server when a certain user(the HTPC front end) logs in. I beleive the wake portion works fine, I've had no success on the shutdown..

 

i have tried inserting a line to run a timer for thrity seconds and hold it up, no luck

 

I use the parameter to halt script execution until the program completes, no change.

 

Is there a way to make shutdown scripts run before anything else is stopped in a shutdown?

 

 



BC AdBot (Login to Remove)

 


#2 TsVk!

TsVk!

    penguin farmer


  • Members
  • 6,230 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:The Antipodes
  • Local time:12:44 AM

Posted 16 October 2013 - 11:39 PM

http://technet.microsoft.com/en-us/library/cc770300.aspx

 

should lead you to water...






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users