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
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

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name MyDefaults

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

Install-PSResource -Name MyDefaults

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

(c) 2014 Microsoft Corporation. All rights reserved.

Package Details

Author(s)

  • David T. Bishop

Tags

Defaults Functions

Dependencies

This module has no dependencies.

FileList

Version History

Version Downloads Last updated
1.0.0.0 (current version) 1,263 5/7/2014