Net stop/start W3SVC and Stop/Start-Service W3SVC vs IISRESET STOP/START

I encountered a problem where I wanted to stop and start IIS by using either the command line or powershell versions of stopping and starting IIS. NET STOP W3SVC NET START W3SVC or Stop-Service W3SVC Start-Service W3SVC Both of those stopped and started the World Wide Publishing service correctly. But both appeared to not stop/recycle … Continue reading Net stop/start W3SVC and Stop/Start-Service W3SVC vs IISRESET STOP/START

Get all non-default Windows services

Getting a list of all services isn't that hard. This can be achieved with Get-Service or with Get-WmiObject win32_service. It seems that Get-Service doesn't leave me with enough properties to query and/or filter out, and this time the Get-WmiObject queries work quick enough; thus I'll use this for my code. I wanted a list of all … Continue reading Get all non-default Windows services