![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | What is the default scope value? I have this function - which works. function mine {get-variable -scope global|do-stuff} But now, I sometimes need to process all the variables. function mine ($scope = 'global'){{get-variable -scope $scope|do- stuff} What value can I pass that will cause get-variable to return the same list I get when omitting -scope? |
My System Specs![]() |
| | #2 (permalink) |
| Vista Ultimate 32bit | Re: What is the default scope value? You pseudo example is hurting my head. Can you post an example we could try? |
My System Specs![]() |
| | #3 (permalink) |
| Vista Ultimate 32bit | Re: What is the default scope value? Of if you are asking about the default value for the -scope parameter of Get-Variable, it is LOCAL. |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Dot-sourcing and scope | PowerShell | |||
| Scope of Err Variable | VB Script | |||
| Is this a bug in the scope? | PowerShell | |||
| Variable scope | PowerShell | |||
| Powershell and scope | PowerShell | |||