mikebai.com

  • Home
  • dev
  • DotNET
  • M365
  • 搞笑
  • 杂七杂八
  • FocusDict
個人BLOG
it developer
  1. Main page
  2. M365
  3. Main content

Powershell change default variable scope in script

2019-05-16 102hotness 0likes 0comments

https://stackoverflow.com/questions/29409104/powershell-change-default-variable-scope-in-script

Is there an option to change the default variable scope to private for a script? E.g. via PSDefaultParameterValues?

I don't like that variables are used from parent when they are note defined in the current scope.

Set
                            
Tag: Nothing
Last updated:2019-05-16

mikebai

This person is a lazy dog and has left nothing

Like
< Last article
Next article >

COPYRIGHT © 2025 mikebai.com. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang