Import-DSCModuleAsCmdlet
1.0.0.0
All the DSC Resource providers implement the same signature so we import the module using the ResourceName
as a Prefix. This produces a long name with "TargetResource" at the end of every cmdlet so we produce an
alias which removes that and any "MSFT_" references and then add "DSR" for Desired State Resource so that
we don't clobber any existing cmdlets (e.g. Servic
as a Prefix. This produces a long name with "TargetResource" at the end of every cmdlet so we produce an
alias which removes that and any "MSFT_" references and then add "DSR" for Desired State Resource so that
we don't clobber any existing cmdlets (e.g. Servic
All the DSC Resource providers implement the same signature so we import the module using the ResourceName
as a Prefix. This produces a long name with "TargetResource" at the end of every cmdlet so we produce an
alias which removes that and any "MSFT_" references and then add "DSR" for Desired State Resource so that
we don't clobber any existing cmdlets (e.g. Service, Process, etc)
NOTE: this only works for Script Resources
Show more
as a Prefix. This produces a long name with "TargetResource" at the end of every cmdlet so we produce an
alias which removes that and any "MSFT_" references and then add "DSR" for Desired State Resource so that
we don't clobber any existing cmdlets (e.g. Service, Process, etc)
NOTE: this only works for Script Resources
Installation Options
Owners
Package Details
Author(s)
- Jeffrey Snover
Dependencies
This script has no dependencies.
FileList
- Import-DSCModuleAsCmdlet.nuspec
- Import-DSCModuleAsCmdlet.ps1
Version History
Version | Downloads | Last updated |
---|---|---|
1.0.0.0 (current version) | 359 | 12/18/2016 |