MyDefaults
1.0.0.0
Sets and gets default values for function parameters. Complete Get-Help is included.
When you create a function with a parameter, instead of hardcoding the default value into the code, you can get it from a MyDefaults.xml file at run time. For example the function ABC might have the following parameter defined:
$UserName=(Get-MyDefault 'UserName')
If the user suppl
When you create a function with a parameter, instead of hardcoding the default value into the code, you can get it from a MyDefaults.xml file at run time. For example the function ABC might have the following parameter defined:
$UserName=(Get-MyDefault 'UserName')
If the user suppl
Sets and gets default values for function parameters. Complete Get-Help is included.
When you create a function with a parameter, instead of hardcoding the default value into the code, you can get it from a MyDefaults.xml file at run time. For example the function ABC might have the following parameter defined:
$UserName=(Get-MyDefault 'UserName')
If the user supplies -UserName when ABC is called, that value is used. If the user does not supply the value, then it is looked up from the MyDefaults.xml file at run time.
Show more
When you create a function with a parameter, instead of hardcoding the default value into the code, you can get it from a MyDefaults.xml file at run time. For example the function ABC might have the following parameter defined:
$UserName=(Get-MyDefault 'UserName')
If the user supplies -UserName when ABC is called, that value is used. If the user does not supply the value, then it is looked up from the MyDefaults.xml file at run time.
Installation Options
Owners
Copyright
(c) 2014 Microsoft Corporation. All rights reserved.
Package Details
FileList
- MyDefaults.nuspec
- MyDefaults.psd1
- MyDefaults.psm1
Version History
Version | Downloads | Last updated |
---|---|---|
1.0.0.0 (current version) | 1,442 | 5/7/2014 |