In certain situations you might have the need to restart a Windows service to clear out memory, accumulated files, or just to troubleshoot or fix Windows problems. You can use Service Manager in Windows to do this, or even do this through the PowerShell CMD window. But, here’s a quicker method…
Create a new Windows shortcut and add the following as the command:
“C:\<path to>\PowerShell.exe” -Command “Restart-Service ‘<service-displayname>’ -Force”
For example, the following would restart the Windows Update service:
C:\Windows\System32\WindowsPowerShell\v1.0 -Command “Restart-Service ‘Windows Update’ -Force”
Looking for an awesome, no-nonsense technical conference for IT Pros, Developers, and DevOps? IT/Dev Connections kicks off in Dallas, Texas in 2018!