PowerShell 2.0: One Cmdlet at a Time 42 Enable-PSSessionConfiguration

Continuing the series looking at new cmdlets available in PowerShell 2.0. This time we look at the Enable-PSSessionConfiguration cmdlet.

What can I do with it?

Re-enable access to a session configuration which has previously been disabled with Disable-PSSessionConfiguration.

Example:

View the permissions of the currently disabled BITSTransfer PSSessionConfiguration, re-enable it, then view the permissions again.

Get-PSSessionConfiguration -Name BITSTransfer | Format-Table -property Name,Permission -auto Enable-PSSessionConfiguration -Name BITSTransfer Get-PSSessionConfiguration -Name BITSTransfer | Format-Table -property Name,Permission -auto

You will notice that the Everyone AccessDenied permission is removed as part of the process, which also includes two confirmation prompts.

How could I have done this in PowerShell 1.0?

Remoting did not exist in PowerShell 1.0, you would have needed to use Remote Desktop to run an interactive session on a remote server.

1000 things 1% better!