Creating an eventlog source from the command line

Posted on Wednesday, October 30, 2013 by Nicki

We've all at some stage had to create an eventlog source for an ASP.Net application, as by default it does not have the privileges to create it on the fly. I found this nifty PowerShell command that does this without having to write a console app.

New-EventLog -LogName Application -Source MyApp

Find out which services are hosted by a running instance of svchost.exe

Posted on Wednesday, October 9, 2013 by Nicki

For some reason a svchost.exe process on one of our servers started using 23% of CPU. The process name just said svchost.exe, so what exactly was it hosting?

I found this neat command to give you the info:

tasklist /svc /fi "imagename eq svchost.exe"