Questions tagged [winrm]

Windows Remote Management server

Purpose of WinRM

Windows Remote Management (WinRM) is the Microsoft implementation of WS-Management Protocol, a standard Simple Object Access Protocol (SOAP)-based, firewall-friendly protocol that allows hardware and operating systems, from different vendors, to interoperate.

The WS-Management protocol specification provides a common way for systems to access and exchange management information across an IT infrastructure. WinRM and Intelligent Platform Management Interface (IPMI), along with the Event Collector are components of the Windows Hardware Management features.

Usage

You can use WinRM scripting objects, the WinRM command-line tool, or the Windows Remote Shell command line tool WinRS to obtain management data from local and remote computers that may have baseboard management controllers (BMCs). If the computer runs a Windows-based operating system version that includes WinRM, the management data is supplied by Windows Management Instrumentation (WMI).

You can also obtain hardware and system data from WS-Management protocol implementations running on operating systems other than Windows in your enterprise. WinRM establishes a session with a remote computer through the SOAP-based WS-Management protocol rather than a connection through DCOM, as WMI does. Data returned to WS-Management protocol are formatted in XML rather than in objects.

The Intelligent Platform Management Interface (IPMI) WMI provider is a standard WMI provider with classes that obtain BMC sensor data from computers with appropriate hardware. IPMI data can be accessed using the WinRM scripting API, the WMI Scripting, or COM APIs.

Basic Configuration:

First, to make WinRM work on the server we need the Windows Firewall to be enabled. Once that is done, open a command prompt and run the following command:

winrm quickconfig

This command performs configuration actions to enable this machine for remote management, which includes:

  1. Starts the WinRM service
  2. Set the WinRM service type to auto start
  3. Create a listener to accept requests on any IP address Enable
  4. firewall exception for WS-Management traffic (for http only)
551 questions
-1
votes
1 answer

Provisioning a Windows VM in Azure with WinRM port (5986) open

I'm trying to provision a windows vm on Azure with Terraform with the port 5986 open to allow winrm access. The provisioning of the VM works. I'm stuck on opening the port with terraform during provisioning. Any ideas?
Colin Wood
  • 21
  • 1
  • 4
-1
votes
1 answer

How do I send keystrokes/interative gui to another Win10 machine?

I'm currently using AutoHotKey to create a variety of macros. I have two desktops side-by-side in a private (home) network. It is my desire to have the AHK Run command on PC1 make some sort of call to PC2. Both PCs are running Windows 10…
fat_flying_pigs
  • 92
  • 1
  • 4
  • 14
-1
votes
1 answer

New-PSSession localhost failed: WinRM cannot process the request

I've got the problem that i want to start an New-PSSession on my server. If i enter the command in powershell i will get the following error: New-PSSession : [localhost] Connecting to remote server localhost failed with the following error message :…
tobifree
  • 1
  • 1
  • 4
-1
votes
1 answer

Invoke-Command limit?

I try to run a command on about 42 servers, and the script got stuck and failed. When I try to run Invoke-Command on the one of the failed servers, I got: Connecting to remote server $$$$ failed with the following error message : The WSMan service…
Itzik
  • 107
  • 1
  • 3
  • 11
-1
votes
1 answer

environment specific db automation with tfs ci cd

I am trying automate db deployment using TFS CI/CD. MSBuild for building the db which in turn creates dacpac Winrm for db deployment to an on premise sql server During build I am passing MSBuild Arguments: /t:build /t:publish…
-1
votes
1 answer

Certification Test Tool 1.2 for Azure Certified "Access is Denied"

My Azure marketplace VM image was removed suddenly by Microsoft due to WannaCry vulnerability. I'm trying to run Certification Test Tool 1.2 for Azure Certified on a new VM created from the new patched image. I am logged in as a local administrator…
SalamiArmy
  • 413
  • 1
  • 5
  • 14
-1
votes
1 answer

SVN export fails when run remotely

We have a .bat file that does an SVN export command which contains the credentials for the SVN repo. The file sits on each server's C:\ drive. When a user is logged into the box and runs it locally, this script runs fine. When run via winrm or…
CPS
  • 531
  • 1
  • 9
  • 18
-2
votes
2 answers

Ansible: How to improve the 'win_copy' speed?

I use Ansible win_copy module to copy files from my Linux machine to my Windows server and it requires quite a lot of time (about 6 seconds an empty file). An picure of my Ansible playbook is linked. Does anyone know how to improve the win_copy…
Iga21207
  • 3
  • 1
-2
votes
1 answer

POWERSHELL - Couldn't connect to a remote machine

Couldn't connect to a remote machine because of my password? My problem here : I can connect remotely with the normal method like "mstsc", so my user and password are working fine. I do not understand why the password didn't work on…
Miky
  • 11
  • 5
-2
votes
1 answer

TFS on premise deploy website to same machine

I am trying to deploy a website to the same machine it was built on. It builds everything correctly and then gets stuck at this line. Deployment started for machine: 192.168.1.201 with port 5985. I get the error message that I cannot connect to the…
-3
votes
1 answer

Rundeck Copy File to Windows Server very slow

I'am trying to copy a 19mb exe file from my linux rundeck server to a windows server using the copy file job in rundeck. This Job needs 2 - 3 hours to copy that 19mb exe. I connect to the server with winrm. Copy from rundeck server to linux…
1 2 3
36
37