Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security & DevOps Insights

  • Home
  • About
  • Advertise With US
  • Reviews
  • Contact
  • Toggle search form
Home » Scripts » WinRM and PSRemoting: Configure servers for remote access
  • BitLocker
    Hide Default BitLocker Drive Encryption item in Windows Windows Server
  • Package1
    Install Synaptic Package Manager: Handle packages in Ubuntu Linux
  • adfs training
    Post-Deployment of Active Directory Federation Service (ADFS) Windows Server
  • image 75
    Useful Tutorial on CBackup Software Network | Monitoring
  • bitbucketexportimport
    Import Repo to Bitbucket Cloud: Seamless Migration to GitLab Version Control System
  • TPM 1
    How to fix unable to find compatible TPM Windows
  • Screenshot 2024 02 09 at 7.34.18 PM
    How to create a Logic App for monitoring tweets AWS/Azure/OpenShift
  • descargar jitsi meet 2 700x336 1
    How to setup and configure Jitsi as SoftPhone Network | Monitoring

WinRM and PSRemoting: Configure servers for remote access

Posted on 25/03/202020/08/2024 Christian By Christian No Comments on WinRM and PSRemoting: Configure servers for remote access

The Enable-PSRemoting cmdlet configures the computer to receive PowerShell remote commands that are sent by using the WS-Management technology. In this article, we shall be discussing WinRM and PSRemoting: How to configure servers for remote access. Here are some interesting guides: How to request a certificate signing request in Windows using Microsoft Management Console, how to troubleshoot and fix Windows Admin Center that cannot be reached, and how to Test Network Connection to the Windows Admin Center (WAC) Gateway.

WinRM is enabled by default on all Windows Server operating systems since Windows Server 2012 and above, but disabled on all client operating systems like Windows 10 etc.

On the Windows server, you do not have anything to do to have this service enabled. To configure your servers for remote access, follow the steps below. Here is the syntax to use: Enable -PSReomoting. Here are some interesting articles: How to enable or disable WinRM via the command-line, and how to configure a remote server (windows) to Support Ansible.

Configure your servers for remote access

Launch your server, fire up a PowerShell terminal, and type “Enable-PSRemoting” to configure it for remote access with WinRM.

This enables the server for PSRemoting and allows the server to be accessed via remote access.

Add the servers to the TrustedHosts list

Add the host to the TrustedHosts list with the command, for more information, see the following guide on How to add servers to the Trusted Hosts list. This step is crucial when configuring servers for remote PSRemoting access.

RestartWinRM service with the command below via PowerShell.

Restart-Service winrm

To test the WinRM Configuration, run the command below. This will help verify the success of configuring servers for PSRemoting and remote access.

winrm quickconfig

Please see how to fix “WinRM cannot complete the operation, verify that the specified computer name is valid“, and how to fix “Cannot find the computer: Fix the following error occurred while using Kerberos authentication“.

Method 1

To test remote access using PowerShell Remoting, use the command below. Ensure you have configured your servers correctly for PSRemoting.

Enter-PSSession -ComputerName Ansibleserver

Method 2

To permit a remote connection via PowerShell remoting, use the command below. This helps in the configuration of servers for WinRM and PSRemoting access.

Enter-PSSession -ComputerName TechDArchive -Credential $Credentials

As shown below, the authentication is successful and I can remotely manage the machine via PowerShell Remoting. This indicates that the server is well-configured for both WinRM and PSRemoting, allowing easy remote access.

I hope you found this blog post helpful on WinRM and PSRemoting: How to configure servers for remote access. If you have any questions, please let me know in the comment session.

5/5 - (1 vote)

Thank you for reading this post. Kindly share it with others.

  • Click to share on X (Opens in new window) X
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on Pinterest (Opens in new window) Pinterest
  • Click to share on Tumblr (Opens in new window) Tumblr
  • Click to share on Telegram (Opens in new window) Telegram
  • Click to share on WhatsApp (Opens in new window) WhatsApp
  • Click to share on Pocket (Opens in new window) Pocket
  • Click to share on Mastodon (Opens in new window) Mastodon
  • Click to share on Bluesky (Opens in new window) Bluesky
  • Click to share on Threads (Opens in new window) Threads
  • Click to share on Nextdoor (Opens in new window) Nextdoor
Scripts Tags:Microsoft Windows, PowerShell, Windows 10, Windows 11, Windows Server 2016

Post navigation

Previous Post: Connecting to a remote server failed and WinRM cannot process the request: Error code 0x8009030e occurred while using Kerberos authentication, and a specified logon session does not exist
Next Post: How to install or update and uninstall extensions in Windows Admin Center

Related Posts

  • powershell01 1
    Create a self-signed certificate and export it in PFX format via PowerShell [Part 1] Scripts
  • How to visualize MBAM Recovery Audit Report with Python
    Visualize MBAM Recovery Audit Report with Python Automation
  • windows update 03
    How to automate Windows Update with PowerShell Scripts
  • AzureCloudShell
    Provisioning Azure Resources using Azure Az PowerShell Cmdlet from Cloud Shell AWS/Azure/OpenShift
  • Generate SSH Keys
    Associate SSH Public key with Azure Linux VM AWS/Azure/OpenShift
  • PowerShell
    How to setup PowerShell on a Linux server Scripts

More Related Articles

powershell01 1 Create a self-signed certificate and export it in PFX format via PowerShell [Part 1] Scripts
How to visualize MBAM Recovery Audit Report with Python Visualize MBAM Recovery Audit Report with Python Automation
windows update 03 How to automate Windows Update with PowerShell Scripts
AzureCloudShell Provisioning Azure Resources using Azure Az PowerShell Cmdlet from Cloud Shell AWS/Azure/OpenShift
Generate SSH Keys Associate SSH Public key with Azure Linux VM AWS/Azure/OpenShift
PowerShell How to setup PowerShell on a Linux server Scripts

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

VEEAMLEGEND

vexpert-badge-stars-5

Virtual Background

GoogleNews

Categories

veeaam100

sysadmin top30a

  • BitLocker
    Hide Default BitLocker Drive Encryption item in Windows Windows Server
  • Package1
    Install Synaptic Package Manager: Handle packages in Ubuntu Linux
  • adfs training
    Post-Deployment of Active Directory Federation Service (ADFS) Windows Server
  • image 75
    Useful Tutorial on CBackup Software Network | Monitoring
  • bitbucketexportimport
    Import Repo to Bitbucket Cloud: Seamless Migration to GitLab Version Control System
  • TPM 1
    How to fix unable to find compatible TPM Windows
  • Screenshot 2024 02 09 at 7.34.18 PM
    How to create a Logic App for monitoring tweets AWS/Azure/OpenShift
  • descargar jitsi meet 2 700x336 1
    How to setup and configure Jitsi as SoftPhone Network | Monitoring

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,836 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon

Tags

Active Directory AWS Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Server 2016

Copyright © 2025 TechDirectArchive

 

Loading Comments...
 

You must be logged in to post a comment.