Showing results for Automatic Variables - Scripting Blog [archived]

Aug 30, 2015
0
0

PowerTip: Retrieve Last Token with PowerShell

Doctor Scripto
Doctor Scripto

Summary: Learn how to use Windows PowerShell to retrieve the last token and avoid retyping. I used Get-Process to view a process I launched, and later I wanted to stop the process. How can I do this without            doing a lot of typing or creating new variables? The $$ automatic ...

Scripting Guy!Windows PowerShellPowerTip