Windows error 0x80090311, -2146893039

Detailed Error Information

SEC_E_NO_AUTHENTICATING_AUTHORITY[1]

MessageNo authority could be contacted for authentication.
Declared inwinerror.h

HRESULT analysis[2]

FlagsSeverityFailure
Reserved (R)false
OriginMicrosoft
NTSTATUSfalse
Reserved (X)false
FacilityCode9 (0x009)
NameFACILITY_SSPI[2][1]
DescriptionThe source of the error code is the Security API layer.[2][1]
Error Code785 (0x0311)

Questions

22votes
7answers

Cannot create remote powershell session after Enable-PSRemoting

I can not remote into any machine to save my life! I have tried everything I can find. If anyone could troubleshoot or guide me, I'd appreciate it as this would be a great tool to add on my domain. SETUP: 1. Client machine inside domain 2. Server machine inside [...] read more
powershell
remoting
7votes
1answer

How to validate domain credentials (from native code)?

i want to validate a set of credentials against the domain controller. e.g.: Username: joel Password: splotchy Domain: STACKOVERFLOW In .NET 3.5 and newer you can use PrincipalContext.ValidateCredentials(username, password). Otherwise you're in trouble. Following the code in the Microsoft Knowledge Base article How to validate user credentials on Microsoft operating [...] read more
security
kerberos
ntlm
networkcredentials
4votes
1answer

How to make a remote computer run PowerShell script on the remote computer itself?

I have two remote machines: 1 we call it the driver, 2 we call it the client. They are in the same domain let's call them "TECH.com". On the driver machine, I have a PowerShell script that controls the client machine: 1, restore checkpoint on the client. 2, stop the [...] read more
powershell
4votes
1answer

WinRM cannot process the request. Error 0x80090311

I have to 2 systems (SR01 & SR02) with local administrators account. Both the systems are in the same domain. The local admin accounts are same with different password. These machines are VM's. When I run a enter-pssession from SR01 to SR02 it throws the below error. Error: Enter-PSSession : [...] read more
windows
powershell
authentication
2votes
1answer

Credential working for Get-WmiObject but not Invoke-Command for a computer on a different domain?

I have a PowerShell script meant to do two things: check for the Last Checked value of Windows Update, and Enumerate all drives and check remaining space on those drives, for a remote server. The expected output of the function is: servername ---------- Last Checked for Windows Update: 01/18/2021 08:12:46 [...] read more
windows
powershell
2votes
2answers

WinRM remoting server with local Adminnistrator account not working?

I have a server Windows 2012R2 in the domain. This server has no domain user access, only local admin user. I can RDC into this machine using admin account, but cannot have a PSSession, so Enter-PSSession or Invoke-Command or New-PSSession does not work. I have set the Trustedhosts value to [...] read more
windows-server-2012-r2
powershell
remoting
2votes
0answers

New-PSSession fails when using DOMAIN\USERNAME but works using USERNAME@DOMAIN.com?

I've just encountered a curious issue in my attempts to connect to a remote Exchange server. I spent a long time unable to establish a session and tried a variety of things until I tried changing the format of the username. The code I'm running is as follows: $Session = [...] read more
powershell
active-directory
exchange-server
remote-server
1vote
2answers

Connecting to remote server failed with the following error message : The user name or password is incorrect

I am trying to connect PowerShell remotely to an Exchange server. This is to a separate AD Domain. (Connecting domainA to domainB) I can connect from domainA to servers on other domains just fine. I receive the following error: PS Y:\Personal\scripts> $session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri http://server1.domainB.tld/PowerShell/ -Authentication Kerberos [...] read more
exchange
powershell
1vote
1answer

Events logs are not collected but event collection subscriptions are active

A Windows Server 2008 R2 server is configured to collect Windows Event Logs, via a source initiated event subscription. The subscription appears to be active but no events are collected. subscriptions section of windows event viewer showing active subscriptions [https://i.stack.imgur.com/GXIac.png] On the client Microsoft-Windows-Eventlog-ForwardingPlugin/Operational has errors with event ID 105 [...] read more
windows-event-log
winrm
1vote
1answer

PowerShell script fails to authenticate user when running Invoke-Command

I've recently created a little script that allows me to get the disk size and free space of 2 servers at each school site when I provide the script with the schools 4 digit site code. First it pulls the information on the sites from a .csv file, and then [...] read more
powershell
authentication
invoke-command
1vote
2answers

WinRM on Azure RM VM

I'm trying to connect to an AzureRM VM. I've read through so many tutorials on WinRM but I still cannot get this to work: Enter-PSSession -ComputerName "$($HOST).cloudapp.net" -Credential $username When I run this, I get the following error: > The user name or password is incorrect. For more information, see [...] read more
powershell
azure
winrm
1vote
1answer

Team Foundation Server (TFS) PowerShell on Target Machine

I am trying to automate my build setup. It works quite good. But I have a problem with the Step „PowerShell on Target Machines“. The step works fine as long as the TFS server and the other server are in the same domain. Now I have a server which is [...] read more
tfs
powershell-remoting
1vote
0answers

using credentials to Test-Path isn't working

I'm writing a script to check that our backup succeeded. Unfortunately, the backup is in a different location/login. The script is scheduled to run without user intervention, like the other ones do. I'm adding in credential info that is saved, but the -Credential option isn't working. It's still asking me [...] read more
powershell
credentials
0votes
0answers

Hyper-v broke Direct Access connection (on the host)

As soon as I enabled the Hyper-V feature on my Windows 10 laptop, my Direct Access connectivity stopped to work. Disabling the feature restored the ability to connect. Especially, I can't connect to RDP session, but I can ping remote servers. How to troubleshot that ? As a clue, when [...] read more
networking
hyper-v
direct-access
0votes
1answer

Enter-PSSession not working to access domain-joined workstation

INTRODUCTION I'm sitting at a Windows Server 2012 R2 server and I'm trying to Enter-PSSession into another machine. I've executed Enable-PSRemoting on the remote computer and that did not help. COMPUTER DETAILS Local Computer * OS: Windows Server 2012 R2 * IP 10.1.1.1/24 * HOSTNAME.exe: server * ECHO %USERNAME%: User1 [...] read more
windows-7
powershell
remote-access
windows-server-2012-r2
0votes
1answer

Windows Server 2012 R2 will sometimes fail to authenticate logins with domain (RDP, SQL Server)

We have the following setup currently: 1. Active Directory Domain Controller server that is running Windows Server 2012 R2 2. Database Server with SQL Server 2014 that is running Windows Server 2012 R2 (Joined the domain in 1.). Running an active standby cluster using Microsoft Failover Clustering. 3. Application Server [...] read more
active-directory
sql-server
windows-server-2012-r2
domain
rdp
0votes
2answers

BizTalk An attempt to connect to "BizTalkMgmtDb" SQL Server database on server "DB" failed

I'm running BizTalk production environment on two separate virtual machines (Hyper-V) , lets call them APP and DB. They are in the same network, tied with domain controllers. I use 2 our company DNSes on my network adapters in my VMs and virtual switch in my virtualization host. Problem is [...] read more
windows
dns
biztalk
hyper-v
0votes
0answers

WINRM credentials in remote script block not working as expected

I am trying to use WINRM to connect to one host (in the internal domain) and then from there WINRM into another server in another domain (the DMZ). Below is an example: $domainServer = 'DOMAINSERVER' $dmzServer = 'DMZSERVER' $domainCred = Get-Credential -Message "Enter domain creds" $dmzCred = Get-Credential -Message "Enter [...] read more
powershell
winrm
0votes
0answers

GSSAPI: Error 0x80090311 returned by InitializeSecurityContext

I need to set up an active directory authentication system using Kerberos. My AcquireCredentialsHandleA class looks as follows. https://docs.microsoft.com/en-us/windows/win32/secauthn/acquirecredentialshandle--kerberos SEC_WINNT_AUTH_IDENTITY AuthData, *pAuthData = NULL; #ifdef UNICODE AuthData.Flags = SEC_WINNT_AUTH_IDENTITY_UNICODE; #else AuthData.Flags = SEC_WINNT_AUTH_IDENTITY_ANSI; #endif unsigned char username[200] = "user"; unsigned char domain[200] = "domain.com"; unsigned char password[100] = "secret"; AuthData.User [...] read more
c++
active-directory
kerberos
0votes
1answer

TFS Release Management to deploy to a separate domain

We have TFS 2017 in premise setup hosted on our internal network. Lets call that tfs.OurInternalDomain.com TFS application and its build controllers and agents are all hosted on our internal n/w. Our production servers are hosted on a separate domain (data center) for security reasons. I am trying to deploy [...] read more
powershell
tfs
0votes
1answer

Unable to run PowerShell script across domains

I am trying to write a script to retrieve any expired IIS certificates across domains. I can run the script without any errors while on the same domain as the server list but I'm unable to cross domains even though the user I'm using has admin access across all domains. [...] read more
powershell
cross-domain
remote-access
invoke-command
0votes
0answers

Connecting to SQL Server on same domain, but getting "Untrusted Domain" error?

We have multiple IIS web applications running on multiple web servers that connect to a SQL Server on a separate machine on the same domain. Everything was running smoothly for over a year, then we had some major network issues. There was a problem with the replication between the primary [...] read more
sql
sql-server
iis
active-directory
windowsdomainaccount
0votes
2answers

Powershell copy from linux samba to local windows server folder

I need to copy a file from a Linux samba server to various Windows Server 2008. The shared folder has a specific login and is read-only. I can access and copy the shared file using Windows Explorer without a problem. But, when using Powershell to copy the file, it always [...] read more
powershell
powershell-2.0
samba
0votes
0answers

Establishing remote connection between a domain and workgroup computer in powershell

I am trying to establish a Powershell remote connection to a workgroup computer from a domain joined computer. Both are on the same network. i am entering the PSSession from a admin account. I have an admin account on the target computer, which is not as same as the admin [...] read more
powershell
powershell-remoting
0votes
0answers

Issue in making Remote powershell connection from windows 7

I am trying to make persistant remote powershell connection from Windows7(32-bit) to exchange Server 2013,such that I can run some powershell commands from My windows7 machine as i am running it on server. I am following steps from this article https://technet.microsoft.com/en-us/library/dd335083(v=exchg.150).aspx I had already installed .net Framework Version 4.5, Windows [...] read more
powershell-remoting
0votes
1answer

How can I use a local computer account as the credentials for PSExec

I am working on some deployment PowerShell scripts that I plan to use with Bamboo for deployment. Within these PowerShell scripts, I want to run commands on a remote computer on our local network. I would like to use Invoke-Command and use the remote computer's local administrator account as the [...] read more
powershell-3.0
bamboo
powershell-remoting
windows-security
0votes
1answer

Using Powershell to remotely invoke commands in Azure

I'm writing a series of automation scripts that will allow our developers to stand up a simple development environment in Azure. This environment has 3 primary properties: 1. There is a client machine (Windows 10) where dev tools like their IDE and code will live. 2. There is a server [...] read more
powershell
azure
0votes
1answer

How to authenticate to a remote server using a remote server's local user via Powershell WinRM

Please consider the following scenario: There are 2 servers: server1 and server2, both on the same network and on the same domain. The objective is to open a PSSession from server1 into server2 using a local user from server2 as the identity: PS @SERVER1 > $session = New-PSSession -ComputerName server2 [...] read more
powershell
winrm
0votes
1answer

PSRemoting fails through VPN

My laptop is domain joined and I use PSRemoting just fine from my office. I get an error when trying to connect outside the office via VPN. I have triple checked our firewall but the issue seems to be with the client or server since "Test-WSMan" succeeds with no issues. [...] read more
powershell
powershell-remoting
0votes
2answers

PSRemotingTransportException in creating a Remote PowerShell Runspace in C#

I have the following code to connect to a remote computer: var credential = new PSCredential(username, securePassword); var rri = new WSManConnectionInfo(new Uri(uri), schema, credential) { AuthenticationMechanism = AuthenticationMechanism.Kerberos, ProxyAuthentication = AuthenticationMechanism.Negotiate }; var remoteRunspace = RunspaceFactory.CreateRunspace(rri); remoteRunspace.Open(); But it's throwing the following exception: System.Management.Automation.Remoting.PSRemotingTransportException was unhandled by user code [...] read more
c#
powershell
0votes
1answer

Connect to Exchange 2013 with powershell while disconnected from network

I have restored a version of my exchange 2013 server to a virtual machine. I want to do some work with it but I don't want to bring it online. When I try to connect to it with powershell it gives me errors like: > WinRM cannot process the request. [...] read more
powershell
exchange-server
exchange-server-2013
0votes
0answers

Powershell New-PSSession issue

When I remote desktop to a box I will get a prompt like this: [https://i.stack.imgur.com/mOG6f.png] Once I select "Yes" I am connected to the box. When I try to login to the same box with the same credentials in PowerShell I get the error listed at the end of this [...] read more
powershell
winrm

Comments

Leave a comment

(plain text only)

Sources

  1. winerror.h from Windows SDK 10.0.14393.0
  2. https://msdn.microsoft.com/en-us/library/cc231198.aspx

User contributions licensed under CC BY-SA 3.0