How Do I Enable the PowerShell Remoting?
Generally, PowerShell remoting is enabled by default on Windows Server 2012 and later versions. If the settings are changed, you can perform the following steps to enable PowerShell remoting:
- Run PowerShell as administrator.
- Run the following command to enable PowerShell remoting:
Enable-PSRemoting
- Verify the configuration. Run the following command in PowerShell:
New-PSSession
- If the configuration is successful, the command creates a session on the local computer and returns a session object. Example output:
Id Name ComputerName State ConfigurationName -- ---- ------------ ----- ----- 1 Session1 localhost Opened Microsoft.PowerShell
- If the configuration fails, refer to about_Remote_Troubleshooting in the PowerShell documentation for solutions.
- If the configuration is successful, the command creates a session on the local computer and returns a session object. Example output:
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.