DiD you know : There exist alias’s for DSC Cmdlets

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

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s