Help Center/
Migration Center/
Best Practices/
Server Migration/
Batch Modifying and Restoring the Host Configurations for Windows Source Servers/
FAQs/
How Do I Enable the PowerShell Remoting?
Updated on 2024-10-21 GMT+08:00
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:
Parent topic: FAQs
Feedback
Was this page helpful?
Provide feedbackThank 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