How to stop expired Windows Server auto-shutdown every hour

Niluka Sripali Monnankulama
Many Minds
Published in
2 min readFeb 3, 2020

Initially download PsTools,

  1. This tool is provided in zipped format and you need to extract it somewhere.
  2. Create folder called — PS on C: drive
  3. We will extract all the contents of the zip file in C:\ drive into the folder PS (which we just created)
  4. After that you need to start command prompt with Administrator privileges. To do this —
    — -Open- task manager.
    — -Go to- File
    — -Create- New Task
    — -Check the “Create this task with administrator privileges” checkbox.
    — -Type- cmd
    — -Press- Enter
  5. You will see the command prompt.
    Type- c:
    Type- cd /
    Type- cd PS
    Type- psexec -i -d -s cmd
  6. Click- Agree on the license agreement dialog box
    Then you will get another command prompt running under “nt authoriy\system”
  7. To check if the command prompt is running under “nt authority\system” —
    Type- whoami
    You should see nt authority\system.
  8. Type- sc delete WLMS
  9. Type- regedit
    The above command will open registry editor
    Navigate to- HKEY_LOCAL_MACHINE->System->CurrentControlSet->Services
    Locate- WLMS
  10. Right-click the Key and press delete.
  11. Restart the computer

The simple way of doing it would be to open command prompt with administrator privileges and run the command “sc delete WLMS” and then delete the WLMS key from the registry. However, if this doesn’t work, you can try the above method which will work for sure..

That’s it 😃

--

--

Niluka Sripali Monnankulama
Many Minds

An IT professional with over 7+ years of experience. Member of the WSO2 Identity & Access Management Team.