If you ever want to access the process that is executing your current PowerShell session, use the $pid automatic variable which tells you the Process ID, and feed it to Get-Process:
Get-Process -id $pid
ReTweet this Tip!
Posted
Aug 31 2009, 08:00 AM
by
ps1