ASP.NET temporary files can quickly mount up and eat up disk space, especially if you deploy multiple times a day. This website provides a handy command that you can run to delete any unnecessary files: Get-ChildItem “C:\Windows\Microsoft.NET\Framework*\v*\Temporary ASP.NET Files” -Recurse | Remove-Item -Recurse You’ll get a few errors when it…
It can be useful to time how long certain commands take to run. With Powershell, you can do this easily using the Measure-Command cmdlet: Measure-Command { ping google.com | Out-Default } Simply replace ping google.com with whatever you want to time, and off you go. You’ll get a readout similar…
Servers run out of disk space too sometimes, but the Server versions of Windows don’t have the handy Disk Cleanup utility installed by default. If you want to get it back, you can run this Powershell command: Install-WindowsFeature Desktop-Experience or you can follow the instructions here if you’re more of…