Summary: Learn how to restore default PSSession endpoints.
How do I restore my default PSSession endpoints if I accidently unregistered them?
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 : BUILTIN\Administrators AccessAllowed, BUILTIN\Remote Management Users AccessAllowed
Name : Microsoft.Powershell.Workflow
PSVersion : 4.0
StartupScript :
RunAsUser :
Permission : BUILTIN\Administrators AccessAllowed, BUILTIN\Remote Management Users AccessAllowed
Name : Microsoft.PowerShell32
PSVersion : 4.0
StartupScript :
RunAsUser :
Permission : BUILTIN\Administrators AccessAllowed, BUILTIN\Remote Management Users AccessAllowed