PowerTip: Find Automatic Variables that Begin with Letter


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*

Comments (0)

Skip to main content