Restart Application Pool in Powershell and write it to EventLog

Sometimes on Continuous Integration or other automated scenarios you want to restart Application pool in order to recycle everything clean. This can be done by calling Powershell command Restart-WebAppPool like this: “Restart-WebAppPool AppPoolNameHere”. But you might also want to write log entry to EventLogs so you know what is going on. In order to write […]

Restart Windows in 1 hour or certain time

tldr; Open Powershell as Admin Type: Start-Sleep 3600 ; Restart-Computer -Confirm:$false <enter>   I work on RDP a lot against Windows Machines and sometimes there are updates and downloads what I need to do and afterwards update. Or perhaps I need to restart in certain time. Basically what start-sleep does is pause the process for the number […]