![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| Guest | Re: how to see arguments with powershell when running winrs PS > (gwmi win32_process -filter "name='powershell.exe'").commandLine When there is more than one powershell instance running: PS > gwmi win32_process -filter "name='powershell.exe'" | select name,commandLine --- Shay Levi $cript Fanatic http://scriptolog.blogspot.com F> Hi, F> F> When running a Powershell script via winrs, is it possible to see F> what arguments are used so that I can see which Powershell script it F> is running? F> F> ie: F> F> winrs /r:testhost powershell.exe -nologo -noprofile c:\test.ps1 F> F> when I do get-process on the target host, I get just "powershell" for F> processname. I would like to see "c:\test.ps1" F> F> ie, F> F> [C:\]: get-process |?{$_.name -eq "Powershell"} F> F> Handles NPM(K) PM(K) WS(K) VM(M) CPU(s) Id ProcessName F> ------- ------ ----- ----- ----- ------ -- ----------- F> 516 21 79204 91616 600 14.29 932 powershell F> Thanks in advance, F> |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Passing arguments from .BAT to PowerShell script | PowerShell | |||
| Re: how to run powershell via winrs | PowerShell | |||
| Re: problems with esentutl.exe running in powershell with winrs FAILUR | PowerShell | |||
| powershell arguments : PARAM vs ARGS ? | PowerShell | |||
| Difference in how PowerShell treats arguments vs CMD | PowerShell | |||