Questions tagged [winrm]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
15 views

How can I execute remote PowerShell script on a local computer from a remote ec2 instance?

Most of our infrastructure lives in the AWS cloud, however, we do have a few physical windows servers on-premise. I want to automate tasks on these physical servers, hopefully using Airflow on an EC2 ...
-1
votes
0answers
29 views

windows server 2019 WinRM Not Connecting

I'm at a loss with setting up WinRM. I have windows server evaluation 2019 installed on oracle virtual box, and have a host-only connnection setup between the guest VM. I installed winRM through the ...
0
votes
0answers
17 views

How to authenticate with Server Manager?

I have two Windows 2016 servers in a dev environment and I'm trying to connect to one from the other using Server Manager. There is no domain. I add the server by IP address and try to authenticate ...
1
vote
0answers
26 views

Is it possible to configure a machine wide WinRM client default authentication?

WinRM is the protocol used by Windows Machine when running remote commands, WinRM supports several authentication schemes. Is there a machine wide setting to control the default authentication ...
0
votes
0answers
45 views

WinRM throws Error Code 2, “Unable to check the status of the Firewall” despite EVERYTHING

I am trying to set up a source initiated event Subscription from a Windows 2019 server to a Windows 10 Client. I know that might sound backwards but I don't really have a choice for a variety of ...
0
votes
0answers
134 views

WinRM - Basic Authentication Issue - Unencrypted traffic is currently disabled in the client configuration

I am not exactly sure what is my issue, I think I have everything set correctly. I am trying to test WinRM with simple basic authentication using HTTP (unencrypted) to a Windows 10 machine that has ...
0
votes
2answers
89 views

PowerShell remoting works with local IPs but not with the public IP on an Azure VM

Host is a single Windows Server 2019 running as Azure VM, no domain, no AD. To isolate the issue, I am trying to create New-PSSession to the host doing it locally, using its local PowerShell. My ...
1
vote
1answer
116 views

Windows Event Forwarding via https without Windows domain - no event 104

Following the suggestion in this answer, I'm trying to set up Windows Event Forwarding by following this Microsoft's guide: Setting up a source initiated subscription where the event sources are not ...
0
votes
1answer
628 views

Connection Timeout between Ansible and Windows Server

I'm starting my studies with Ansible and wanted to apply it to a real situation of my work. I am implementing Ansible from Ubuntu to manage a Windows Nano Server 2016. I'm configuring to use a ...
0
votes
0answers
114 views

Extra SPN for Keytab breaks Kerberos authentication

I'm trying use Ansible against a set of Windows servers (through WinRM), and I've encountered some issues with some of them, namely the ones that have applications that support Kerberos authentication,...
1
vote
3answers
510 views

Can't connect to Windows EC2 instance built by Packer via SSM Agent

I'm using Packer to set up a Windows VM on the free tier of AWS EC2. The image is properly set up and I'm able to launch it, but I can't connect to it with SSM. Here's my Packer template: { "...
0
votes
0answers
58 views

Packer, Ansible, Windows: Problems adding package provider: No match was found for the specified search criteria for the provider 'NuGet'

I try build Windows images by Packer with Ansible. ansible 2.6.17 Source code: https://github.com/yandex-cloud/examples/tree/master/packer-ansible-windows Issue: https://github.com/yandex-cloud/...
0
votes
0answers
40 views

Cant connect via Hyper-V Manager

today i was connected via a Win 10 Admincomputer to one of our Hyper V Servers. Everything worked so far. Then I was about to create a new VM on that HyperV Host. It created the VM and I pressed start,...
0
votes
0answers
105 views

WinRM connection refused but not to FQDN

I have 2 domain joined servers running a failover cluster and I am trying to get CAU running. However, the readiness test fails because of WinRM issues. Both servers get connection refused when using ...
0
votes
0answers
12 views

xFailOverCluster DSC push from one domain to another results in WinRM error

Our tfs/build server also acts as our DSC push server. It is in domain "a" and is pushing onto servers in domain "b". Both on different clouds. When running the compiled .mof it instantly fails with: ...
0
votes
2answers
63 views

PowerShell Remote not working via Harness for non-Administrator user

I am trying to connect to a Windows Server 2016 server using WinRM via Harness. I have added the user to the "Remote Management Users" group on the server but I receive an "Access Is ...
-1
votes
2answers
639 views

How to connect to remote server using powershell from local . Enter-PSSession not working ( Not Related Exchange Service )

I am trying to connect to remote computer using local powershell session. for that I am trying to use local powershell Enter-PSSession or New-PSSession comandlets as : $session = New-PSSession -...
0
votes
0answers
491 views

WinRM with Kerberos: An unknown security error occurred

I'm trying to set up WinRM with Kerberos in order to manage Windows servers with Ansible. I have a number of servers that I want to manage, with different OS versions. A couple of example servers: new....
0
votes
0answers
91 views

How to check the Source IP on the Windows Server 2016?

I am using Winrm to login from Linux server and execute powershell commands on Windows Server 2016. How can I check the Source IP on the Windows Server 2016 from where it is getting logged in using ...
1
vote
0answers
117 views

Not able to connect to remote windows server winrm, from one machine. Other machine works and test-netconnection to 5985 also works

I have 3 computer 01, 010994 and 024166. Now, from 010994 I am able to successfully run test-wsman 01 and it works but from 024166 it gives me following error test-wsman : <f:WSManFault xmlns:f="...
2
votes
2answers
3k views

Access Denied WinRM Error Code 5

We are trying to set up Windows Event Forwarding (WEF) in our environment and we are running into a few issues. We have a GPO set up (shown below) to enable the forwarding of events to a local ...
0
votes
1answer
231 views

Test-WSMan works with localhost, but doesnt work with fully qualified domain name or Hostname

I have a windows 10 1909 Build 18363. Machine, following is what I am observing. This is all on an powershell with elevated permissions. PS C:\Users\mohit.thakral> Test-WSMan -ComputerName ...
0
votes
1answer
357 views

Connecting from Azure Automation to Office 365 PowerShell Endpoint fails half way through script

I have a script running under an Azure Automation account. The script connects to the Office 365 endpoint (https://outlook.office365.com/powershell-liveid/), and uses Set-Contact to update some ...
0
votes
0answers
469 views

how to fix: WinRM connection refused

If I run test-wsman SomeRemoteHost (or any PS remote command) with credential, I get "The connection to the specified remote host was refused. Verify that the WS-Management service is running on the ...
3
votes
2answers
393 views

Can Windows Admin Center connect to a remote server?

I was thinking that through one Windows Admin Center installation I'll be able to manage several remote Win servers. However, the add server dialog seems to be able to find only local/LAN servers. Is ...
2
votes
2answers
3k views

Connecting to exchange online with Powershell (Winrm)

After playing with the Microsoft Azure MDM Baselines I got blocked from using the Powershell for Exchange Online module . I have removed myself one time, and after some reboots and some quick config ...
1
vote
0answers
2k views

WinRM will not connect to remote machine

I had posted a question but it hasn't been answered and there has been no activity on it lately so I'm reposting. Sorry if thats the incorrect way of doing things but I have been struggling to get ...
2
votes
2answers
5k views

WinRM will not connect to remote computer in my Domain

I am trying to run a script that installs a program remotely for a user in my domain. I can run the script fine on my own computer but when I run the script for a different computer in the domain I ...
4
votes
0answers
466 views

Powershell Remoting not working

I have PSRemoting working on 90% of my servers. But there are a handful that I'm not sure what's going on with them. Server 2016. Most of them are Hyper-V hosts, but not all. Enable-PSRemoting -...
0
votes
0answers
140 views

Is it possible to deploy from a Linux docker container with ansible installed on it to a windows machine in network domain? If it is how?

Currently I am able to do this by using ansible in WSL(Windows Subsystem for Linux) with kerberos authentication. But when I use Docker container instead of WSL and follow same procedure as with WSL, ...
2
votes
0answers
2k views

Windows not collecting logs. Error: The WinRM service is not listening for WS-Management requests

I am getting this error The WinRM service is not listening for WS-Management requests. User Action If you did not intentionally stop the service, use the following command to see the WinRM ...
0
votes
2answers
1k views

Enable WinRM for domain user

Is it possible to enable winrm connection for domain user? I have an automation script which uses winrm for connecting to remote machines. The winrm connection does not work with Domain user name and ...
0
votes
1answer
324 views

Passwordless auth for WinRM

I need to connect to a list of windows servers and update certificates from a certificate host. The certificate host is running certbot on linux. All hosts are connected to the domain and the linux ...
1
vote
0answers
341 views

Event Forwarding Broken - Wecutil.exe command gets stuck

I am writing a software program that relies very heavily on event forwarding. It uses a collector-initiated subscription. After the subscription is created it works fine, as expected. Sometime later, ...
1
vote
0answers
594 views

Dell OpenManage: The installer has detected that the HTTPS listener is not configured for Windows Remote Management

I started installing Dell OpenManage on my companies servers and quickly ran into the below issue which bar one server, I have not been able to resolve: The installer has detected that the HTTPS ...
1
vote
1answer
5k views

Finding GPO policy which set's LocalAccountTokenFilterPolicy to 0 on startup

I've got a Windows Server 2019 with Windows Server 2019 Security Baseline settings applied to it. Then I enable WinRM on the server and set the registry key HKLM:\SOFTWARE\Microsoft\Windows\...
0
votes
1answer
1k views

how to connect to server in remote domain with winrm

I have winrm enabled on a remote server and from a member of that server's domain, I am able to run Powershell commands using PSSession. However, from a client in another domain, I get "Connecting to ...
2
votes
1answer
108 views

Chef Knife command - PowerShell “query session” failing with return code 1, although command is executed successfully

I am facing a peculiar problem in executing chef knife commands for PowerShell remotely. Command is executed successfully, however the return code is 1 with an error. > %CPath% && knife ...
2
votes
1answer
2k views

Windows Server 2016 and Windows 10: Cannot set up Windows Event Forwarding via HTTPS

Alright so I've been trying to set up Windows Event Forwarding via HTTPS for a while now and in the process, I've hit my share of errors that I managed to address one by one, but now I've been stuck ...
2
votes
1answer
1k views

Enter-PSSession : Connecting to remote server failed

I have three VMs: A, B and C. I use Enter-PSSession to connect them. But recently connecting B from A (A->B) never succeeds. Others ways (A->C, C->A, B->A, B->C, C->B) have no problem. The error ...
1
vote
1answer
6k views

Windows Admin Center Doesn't Connect

I've installed version 1804.25 of Windows Admin Center (WAC) onto my Windows 10 Pro v1709 laptop. I accepted the WAC self-signed cert, provided by the installer, on first page load. I then used the ...
1
vote
1answer
1k views

SBS 2011: Unable to manage Exchange 2010 via console, shell or web interface. “WinRM cannot determine contet type of HTTP response.”

Current setup: SBS 2011 (Windows 2008 R2) Exchange 2010 SP3, v14.03.0399.000 Everything up to TLS 1.1 is disabled, based on PCI3.1 of IIS Crypto 2.0 (yes, I updated RDP to ensure continued ...
1
vote
0answers
823 views

How do I configure winrm ssl/tls to lo listen on 5896 with a GPO

I have a piece of monitoring software with which I want to start monitoring securely. My goals are: Use TLS for transport encryption and not rely on message encryption Use a certrificate authority I ...
2
votes
1answer
863 views

windows-ubuntu-bash + hypervisor winrm + ansible - Server not found in Kerberos database

I'm struggling like a week with that issue, read every internet post about that problem. What we have Windows Server 2016 Datacenter with Hyper-V Role installed (netbios: hv) Virtual Machines (...
4
votes
1answer
5k views

Where is WinRMRemoteWMIUsers__ local group in Windows Server 2016?

With Windows Server 2012 R2 I can use the group WinRMRemoteWMIUsers__ to enable remote PowerShell execution via -CimSession for non-admin users. However, the group is missing on my Windows Server 2016 ...
2
votes
0answers
3k views

Copy-Item -ToSession from Powershell v 5.0 to v 2.0

I am attempting to copy a file over a network from a Windows 2012r2 server running PowerShell 5.0 to a 2008 r2 server running PowerShell 2.0. I am attempting to do this using the Copy-Item command. ...
-1
votes
1answer
3k views

Installing PKI Client cmdlet on Windows 2008 R2

I wanted to install the PKI Client cmdlet on Windows 2008 R2. However, from the documentation, it's not available for Windows 2008 R2? Am I interpreting this correctly? I was following along a ...
0
votes
1answer
80 views

Grant Remote Launch and Remote Activation privilege with powershell script

I'm trying to grant full WMI remote access to a domain user, just like this one It works but I need to automate this process with powershell scripts, any ideas? I can't find anything relevant on ...
2
votes
0answers
1k views

Firewall stuck on expand

Ive been having some issues trying to open the Windows Firewall Advanced. It just gets stuck with a "expand" window: expand image Ive been searching a lot on google trying to debug this. If i run a ...
3
votes
2answers
387 views

Remotely Manage Server Core 2016 Hyper-V Hosting Domain Controller

I ran into a little issue this morning and am wondering how I avoid the issue in the future. Fortunately, the issue resolved itself, but this could be a major problem in the future. My domain ...