Help Center/ Migration Center/ Best Practices/ Server Migration/ Batch Modifying and Restoring the Host Configurations for Windows Source Servers/ FAQs/ How Do I Enable PowerShell Remoting?
Updated on 2026-05-22 GMT+08:00
How Do I Enable 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 an 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:
What is your overall rating for this page?
0
1
2
3
4
5
6
7
8
9
10
Very dissatisfiedVery satisfied
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot