Results 1 to 4 of 4

Thread: Automatic Remote PC Shutdown

  1. #1
    i_faulkner is offline Getting Started on GPanswers.com
    Join Date
    Dec 1969
    Posts
    1

    Default

    I recently stumbled across this site whilst looking for a script to allow me to remotely switch off PC's. The script provided on the site gave me some hope, however I am unable to get it to work.

    I am a complete novice when it comes to scripting, and most likely it's me doing something stupid.

    I've copied the script into notepad, saved the file as shutdown.bat. I've also created a .txt file called shutdown in the same folder and entered a test PC name. However it doesn't shutdown the PC, and i cannot slow the script down in order to see where it's going wrong.

    Any help anyone can provide would be greatly appreciated.

  2. #2
    Guest

    Default

    Try 'scriptinganswers.com' ... My friend Don Jon runs it.

    They're all about the scripts there. :-)

  3. #3
    Abigor is offline 10+ Helpful Posts 20+ Helpful Posts
    Join Date
    Dec 1969
    Posts
    24

    Default

    start - run - cmd

    shutdown -s

  4. #4
    AdamV is offline 100+ Helpful Posts! 50+ Helpful Posts
    Join Date
    Dec 1969
    Posts
    669

    Default

    the script is written in vb script, so instead of saving as a .bat you should save as a .vbs and invoke it from a command line using cscript (I think - I'm not big on VBS)

    as a general tip, if you did have abatch file that fails very quickly you could either:
    open a cmd prompt and run it from there so it does not open and close it's own window
    or add a pause command at the end (which will not work with this one since it's VB)

    This is always better than double-clicking and missing all the fun

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Search Engine Friendly URLs by vBSEO