1.    22 Oct 2015 #1
    Join Date : Aug 2015
    Posts : 79
    Win 10 Pro 64 & 7 Pro 64 on 2 HDD's

    Screwed shutdown script


    Oh Boy, well you learn from your mistakes they say

    I tried to run a script at shutdown on my W10 PC that would run a RoboCopy command. That did not work so I deleted it (So I thought) I may have deleted the proper shutdown script as my PC will no longer shutdown but my incorrect script is still in Win\Sys32\GP\Machine\Scripts\shutdown.

    Can I return the correct script and if so what is it and would I simply copy and paste in the right folder? I really do not want to do a new install or system Image recover.

    Smack on the wrist time I think
      My ComputerSystem Spec
  2.    22 Oct 2015 #2
    Join Date : Oct 2014
    Posts : 401
    Windows 10 Pro

    Well, on my system those folders are empty. What about deleting your incorrect script and trying it again? In case you need a temporary solution, the command in cmd to shutdown is "%windir%\System32\Shutdown.exe /s /t 0" (without ""), hybrid shutdown is "%windir%\System32\Shutdown.exe /s /hybrid /t 0" and restart would be "%windir%\System32\Shutdown.exe /r /t 0". I hope this helps.
      My ComputerSystem Spec
  3.    22 Oct 2015 #3
    Join Date : Apr 2014
    Space coast of Florida
    Posts : 5,379
    Windows 10 Pro X64 16299.19

    See if what you deleted is in the Recycle Bin?
      My ComputersSystem Spec
  4.    23 Oct 2015 #4
    Join Date : Aug 2015
    Posts : 79
    Win 10 Pro 64 & 7 Pro 64 on 2 HDD's
    Thread Starter

    Thanks for the suggestions.
    Deleted my script but made no difference, just get the 'Shutting Down' and revolving balls! and still wont shutdown. The weekly clean up meant my recycle bin was emptied the day I messed up so no file to restore

    However as luck would have it I have a System Image from the same morning before I screwed up so will have a go at restoring that using the tutorial. Hopefully that will reinstate any script controlling the shutdown, if that fails I will make some desktop shortcuts using the details above.
      My ComputerSystem Spec
  5.    23 Oct 2015 #5
    Join Date : Oct 2014
    Posts : 401
    Windows 10 Pro

    Restoring a system image should definitely fix this. I'm still wondering what you could possibly have deleted given the fact that on my system the folder you indicated is empty. Could this be an unfortunate coincidence and the cause for your problem is something else? Does shutdown using the above mentioned commands work?
      My ComputerSystem Spec
  6.    24 Oct 2015 #6
    Join Date : Aug 2015
    Posts : 79
    Win 10 Pro 64 & 7 Pro 64 on 2 HDD's
    Thread Starter

    PC would not shutdown or restart, I will have to search the Tutorials again as I could not find one relating to Installing from a WindowsImageBackup, only how to create one. Has to be there somewhere!

    I found resets, system restore, repair, refresh to name a few.

    After much printing and reading I decided on a 'Repair Install with an in-place upgrade' as this seemed the most appropriate. Following this, W10 is back to normal, shutting down and restarting as it should. I was impressed using this route as all my settings, programs and such like all were as before.

    I have also two new icons on my desktop, one for Shutdown and one for Restart. Thank you for the text in your earlier post
      My ComputerSystem Spec
  7.    24 Oct 2015 #7
    Join Date : Oct 2014
    Posts : 401
    Windows 10 Pro

    Good to hear that you were able to fix the issue.
      My ComputerSystem Spec

 


Similar Threads
Thread Forum
PC Shutdown script does not work
Hi, I was used to run a script "at 20:30 shutdown -s" in Run.exe to shutdown my laptop at specific time in Windows 7, but in W10, it does not work. I tried to run this script in cmd.exe as administrator, but it does not work eather, because in...
Software and Apps
m$ screwed up winmm in windows 10
Dunno why they changed it, now all older games that used to work fine with an alternate built winmm to read ogg files for cd music (Since later pc's don't have a physical cd connection for audio)..with windows 10.. they screwed it... it will no...
Gaming
Icons are screwed after install
After installing Win10 on my desktop pc (which went without a hitch) all of my icons were screwed up. None of my icons are showing up properly. I get just the blank page icon (see below). None of Start Menu icons are right either. I've deleted...
General Support
Screwed-over by HP/Intel/Microsoft
It's a sad day for early adopters of Microsoft's touch-first OS strategy. Customers who bought some of the first examples of Windows 8.x hybrid systems - e.g. the HP Envy x2 and ElitePad G1, Dell Latitude 10, Lenovo ThinkPad Tablet 2 and Miix...
Graphic Cards
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 00:43.
Find Us
Twitter Facebook Google+ Ten Forums iOS App Ten Forums Android App



Windows 10 Forums