- To kill a service
-
Get-Service -Name <servicename> | Stop-Service [-Force]
- Reset windows update: Script
- Run a windows powershell script or command
-
powershell.exe -ExecutionPolicy ByPass -File <script.ps1>
-
powershell.exe -ExecutionPolicy ByPass -Command "iex ((New-Object System.Net.WebClient).Download String('https://chocolatey.org/install.ps1'))"
- Will add more as I need...