4 ms·
Aliases can be redefined in certain situations (such as compiling a LCM configuration into a MOF for use with PowerShell DSC). The only safe way to script is to
by Diti 4y ago
Aliases can be redefined in certain situations (such as compiling a LCM configuration into a MOF for use with PowerShell DSC). The only safe way to script is to use the full command names (Verb-Noun).
- jodrellblank 4y agoCommand names can be shadowed, you can `function get-content { "hello world" }` and that also breaks gc alias. The only safe way to script is to use the full command names including module names `Microsoft.PowerShell.Management\Get-Content`
- yencabulator 4y agoFrankly, you lost my interest at LCM, MOF & DSC.
- Arnavion 4y agoFor scripts that you intend to be used by other people, yes. My comment was about personal scripts.