Thursday, July 29, 2010

powershell shortcut

Just thought this was cool.
Suppose you want to monitor or know or look at some applications running on a remote server through Windows Task manger.
You could rdp to the box, then start the task scheduler UI and look at them.
or you could open a command prompt (assuming you have powershell installed) and run:

schtasks.exe /query /S /U /P

you'll get a list of everything scheduled that you have privs to see, including Next Run time and Status.
This doesn't only include things in the task scheduler but even system processes scheduled to run. For example, things from
Folder: \Microsoft\Windows\Tcpip
like
IpAddressConflict1

Pretty cool stuff.

No comments:

Post a Comment