Quantcast
Channel: Hey, Scripting Guy! Blog
Viewing all articles
Browse latest Browse all 3333

PowerTip: Find PowerShell Variables Defined for AllScope

$
0
0

Summary: Find Windows PowerShell variables that are defined for all scopes.

Hey, Scripting Guy! Question How can I find  what variables are defined as AllScope in my Windows PowerShell environment?

Hey, Scripting Guy! Answer Get a list of all your variables, and filter for options that include AllScope, for example:

(dir variable:).where({$_.options -match 'allscope'})


Viewing all articles
Browse latest Browse all 3333

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>