PowerTip: Find Automatic Variables that Begin with Letter

The Scripting Guys

Dr Scripto

Summary: Find automatic variables in Windows PowerShell that begin with a specific letter.

Hey, Scripting Guy! Question How can I find automatic variables in Windows PowerShell that begin with the letter P?

Hey, Scripting Guy! Answer Use the drive Windows PowerShell variable provider with a wildcard character after the letter P:

DIR variable:P*

The Scripting Guys
Dr Scripto

Follow Dr Scripto   

No Comments.