PowerTip: Restore Default PSSession Endpoints

Doctor Scripto

Summary: Learn how to restore default PSSession endpoints. Hey, Scripting Guy! Question How do I restore my default PSSession endpoints if I accidently unregistered them?

Hey, Scripting Guy! Answer Use Enable-PSRemoting to automatically rebuild the remote endpoints on your system:

Get-PSSessionConfiguration

Enable-PSRemoting –Force

#Now try it again

Get-PSSessionConfiguration  

Name          : Microsoft.PowerShell

PSVersion     : 4.0

StartupScript :

RunAsUser     :

Permission    : BUILTINAdministrators AccessAllowed, BUILTINRemote Management Users AccessAllowed  

Name          : Microsoft.Powershell.Workflow

PSVersion     : 4.0

StartupScript :

RunAsUser     :

Permission    : BUILTINAdministrators AccessAllowed, BUILTINRemote Management Users AccessAllowed  

Name          : Microsoft.PowerShell32

PSVersion     : 4.0

StartupScript :

RunAsUser     :

Permission    : BUILTINAdministrators AccessAllowed, BUILTINRemote Management Users AccessAllowed

0 comments

Discussion is closed.

Feedback usabilla icon