Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security, Veeam & DevOps

  • Home
  • About
  • Advertise With US
  • Reviews
  • Contact
  • Toggle search form

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

Posted on 25/03/202016/09/2026 Christian By Christian 2 Comments on 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
  1. Home
  2. Scripts
  3. 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
PowerShell Errors text on a blue background.

I have put together three similar error types I simulated in my Test laboratory. When you are prompted with the following error when using the invoke-command, the following solutions and explanation below will help you resolve this issue. In this article, we will discuss how to resolve “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”. Here are some interesting guides: How to request a certificate signing request in Windows using Microsoft Management Console, and how to troubleshoot and fix Windows Admin Center that cannot be reached.

For Windows Remote Management (WinRM) scripts to run, and for the Winrm command-line tool to perform data operations. WinRM is automatically installed with all currently-supported versions of the Windows operating system and must be configured for all clients. Please take a look at the Test-WASMan page for more information.

Various Errors

Connecting to a remote server failed and WinRM cannot process the request: Code 0x8009030e occurred while using Kerberos authentication, and a specified logon session does not exist

In the sections below, I will reproduce and discuss the various errors associated. Please see some related articles: How to Test Network Connection to the Windows Admin Center (WAC) Gateway, how to configure a remote server (windows) to Support Ansible, and How to enable or disable WinRM via the command-line.

1st Error: Below is the command run to install and reboot the TechDArchive

Invoke-Command -ComputerName TechDArchive -Script {ipmo PSWindowsUpdate; Get-WUInstall -AcceptAll -AutoReboot | Out-File C:\PSWindowsUpdate.log } -Verbose
Screenshot of a Windows PowerShell ISE window displaying an error message regarding Kerberos authentication when connecting to a remote server.

2nd Error: When you also run the Enter-PSSession to initiate a connection to the remote server the following error above will also be displayed.

Enter-PSSession -ComputerName TechDArchive

3rd Error: The invoke-command used to run the script locally or on remote computers. Once remoting is enabled on remote machines, we can run Invoke-Command as shown below to query the WinRM service. But WE are FACED with an ERROR.

Invoke-Command -ComputerName ServerDC -ScriptBlock {Get-Service winrm}
Error message in Windows PowerShell ISE indicating a failure to connect to the remote server TechDArchive due to issues with Kerberos authentication.

Please see this article on the Various Ansible Authentication Options. Also see What to note when settings up Ansible to work with Kerberos.

How do we solve this? | Solution

This error is a result of my login method as you can see in the error message above. Run the “whoami” command to display your account login information.

A PowerShell terminal displaying the command prompt with the 'whoami' command output showing 'ANSIBLESERVER\Administrator'.

The follwoing issue was a result of the host machine (Ansibleserver) from where I was trying to connect. I was logged into the server as a local user with the administrator’s account. Whereas the remote machine to which I was trying to connect was running as a domain user. 

So, when I switched to the domain user account (Chris) on the host machine, Kerberos started working and the issue got resolved.

As you can see below, the invoke-command is working correctly to get the WinRM service.

Screenshot of Windows PowerShell ISE showing a script that uses Invoke-Command to retrieve the status of the Windows Remote Management service on a remote computer named 'TechDarchive'.

Also, the invoke-command to have Windows updates installed is running and executing as well.

A command line interface displaying PowerShell commands, with the user directory showing 'C:\Users\chris>' and an 'Invoke-Command' command related to Windows updates.

Below are the tips to ensure you are able to use the invoke-command

  • Please ensure PSRemoting is enabled on the remote device.
  • Also ensure that the WinRM is running on the remote device. To determine this, run WinRM using the following command.
  • Ensure the computers (servers) are added in the TrustedHosts. Instead of adding an individual host, use the asterisk to all subsequent hosts

Please see a similar error where the computer account could not be found. Also, see the following articles “How to install Chocolatey” and “How to install, upgrade and uninstall software with Chocolatey“. You may also be interested in Winglet, which is also a Windows Package manager “Winglet”. See how to install Winglet and how to install applications with Winglet CLI. 

I hope you found this blog post helpful on how to fix “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”. If you have any questions, please let me know in the comment session.

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

  • Share on X (Opens in new window) X
  • Share on Reddit (Opens in new window) Reddit
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Facebook (Opens in new window) Facebook
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on Tumblr (Opens in new window) Tumblr
  • Share on Telegram (Opens in new window) Telegram
  • Share on WhatsApp (Opens in new window) WhatsApp
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on Bluesky (Opens in new window) Bluesky
Scripts Tags:errors, PowerShell

Post navigation

Previous Post: Cannot find the computer: Fix the following error occurred while using Kerberos authentication
Next Post: WinRM and PSRemoting: Configure servers for remote access

Related Posts

  • powershell01
    How to add servers to the Trusted Hosts list Scripts
  • powershell commands lede 1024x276 1
    Enable WinRM on Windows Servers and Windows PCs Scripts
  • PowerShell
    How to setup PowerShell on a Linux server Scripts
  • windows update 03
    How to automate Windows Update with PowerShell Scripts
  • Featured image 9
    Create and Delete Registry Keys via PowerShell in Windows Scripts
  • S3 Bucket
    Access AWS Management Console and Create Resources with AWS CLI on Windows AWS/Azure/OpenShift

More Related Articles

powershell01 How to add servers to the Trusted Hosts list Scripts
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
powershell logo Cannot find the computer: Fix the following error occurred while using Kerberos authentication Scripts
hero activedirectory Create and find Organisation Unit paths in AD Scripts
Featured image batch file. Retrieve Recent Windows Update: How to create batch script files Scripts

Comments (2) on “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”

  1. Avatar photo Francisco Yepiz says:
    12/10/2020 at 8:34 PM

    Thanks for your help!

    Log in to Reply
    1. chris Christian says:
      13/10/2020 at 7:17 AM

      You are most welcome

      Log in to Reply

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

vexpert-badge-stars-5

Virtual Background

VEEAMLEGEND

Categories

Top 30 Sysadmin blog

veeaam100

Veeam Vanguard

  • How to Fix Microsoft Outlook Not Syncing Issue 1 e1786441874469
    How to Fix Microsoft Outlook Not Syncing Issue Network | Monitoring
  • Screenshot 2020 09 19 at 02.22.42
    Remove Windows 10 Apps with DISM: How to remove pre-provisioned apps from Windows Image Windows Server
  • How to create and delete MySQL database
    How to delete and create MySQL Databases Oracle/MSSQL/MySQL
  • ddf 2
    Add boot and install images to WDS and configure Multicast transmission via the GUI and WDSUTIL Windows Server
  • How to Migrate Windows Servers from Hyper V to Proxmox Correctly
    Migrate Windows Servers from Hyper V to Proxmox Correctly Backup
  • cisco asa 5505 adaptive security appliance desktop firewall 10 100 47 18790 04 56708 pekm1000x469ekm
    Administer Cisco ASA: Mastering CLI Management Network | Monitoring
  • Quick Connect
    How to fix Synology NAS Quick Connect is not enabled issue Storage
  • Hyper V Virtual Switch Copy
    How to Create VDI Collections on Windows Server 2022 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,746 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Contact
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon
  • Bsky

Tags

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

Copyright © 2026 TechDirectArchive

Loading Comments...

You must be logged in to post a comment.