April 3rd, 2014

PowerTip: Restore Default PSSession Endpoints

Doctor Scripto
Scripter

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

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.