Monday, January 19, 2009

where and what

[] to locate where powershell.exe installed

PS R:\> [environment]::CommandLine


"C:\LINDOWS\system32\WindowsPowerShell\v1.0\powershell.exe"


[] to determine what logon user currently using powershell

PS R:\> [environment]::CurrentDirectory


c:\Lindows\co\Administrator

No comments:

Post a Comment