PowerTip: Find Automatic Variables that Begin with Letter

Doctor 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*

0 comments

Discussion is closed.

Feedback usabilla icon