There exists alias’s for DSC Cmdlets. They are defined as shown below.
“sacfg” alias for “Start-DSCConfiguration” cmdlet
“tcfg” alias for “Test-DSCConfiguration” cmdlet
“gcfg” alias for “Get-DSCConfiguration” cmdlet
“rtcfg” alias for “Restore-DSCConfiguration” cmdlet
“glcm” alias for “Get-DSCLocalConfigurationManager” cmdlet
“slcm” alias for “Set-DSCLocalConfigurationManager” cmdlet
Instead of using long cmdlet names, we can use the above mentioned alias’s.
for example, instead of typing Start-DscConfiguration -Wait -Force -Verbose -Path “C:\Configurations”
we can write sacfg -Wait -Force -Verbose -Path “C:\Configurations”.
Saves some typing and avoids long command lines.
Cheers!!
Leave a comment