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:

  1. Run PowerShell as administrator.
  2. Run the following command to enable PowerShell remoting:

    Enable-PSRemoting

  3. 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.