PowerTip: Find the Last Command PowerShell Ran

Doctor Scripto

Summary: Find the last Windows PowerShell command by using an automatic variable.

Hey, Scripting Guy! Question How can you find the last Windows PowerShell command that was run?

Hey, Scripting Guy! Answer Use the $$ automatic variable.

0 comments

Discussion is closed.

Feedback usabilla icon