Scripting. Powershell, VMware, Windows, Active Directory & Exchange. All that kind of stuff…..
RSS icon Email icon Home icon
  • PowerShell 2.0: One Cmdlet at a Time #43 Unregister-PSSessionConfiguration

    Posted on January 21st, 2010 Jonathan Medd No comments

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

    What can I do with it?

    Delete PSSessionConfigurations on the local computer.

    Example:

    View the existing available PSSessionConfigurations with Get-PSSessionConfiguration, remove the BITSTransfer configuration and then confirm it has been removed.

    Get-PSSessionConfiguration
    Unregister-PSSessionConfiguration -Name BITSTransfer
    Get-PSSessionConfiguration

    You will see that you are prompted to both confirm and the action and the restart of the WinRM service.

    Unregister-PSSessionConfiguration

    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!

    Leave a reply