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
0
votes
2 answers

Attach to an Azure ShareFile using WinRM and net use

Context: I have setup an ARM deployment from the 201-winrm-windows in azure-quickstart-template. The deployment run fine I can access the VM using WinRM I can run a script remotely using WinRM The problem is that I'm trying to setup a storage…
0
votes
2 answers

Unable to connect to VM with Azure Certified Test Tool 1.2

I cloned a Windows Server 2012 R2 VM from a VM image. I can: Log in with Remote Desktop. Browse to IIS on port 80 from the Internet. Verify WinRM connectivity with Powershell: "Test-WSMan -ComputerName xyz.westus.cloudapp.azure.com" When I press…
Hans Malherbe
  • 2,988
  • 24
  • 19
0
votes
0 answers

Python Winrm fail to execute long power shell script

I am using linux python winrm module to run powershell scripts from linux machine on remote windows machine using "run_ps". It is working fine for small size of script but failing to execute if pass too long power shell code. The "run_ps" method has…
Javed Sayyed
  • 149
  • 11
0
votes
2 answers

Winrm quick config shows error

C:\Users\Administrator>winrm quickconfig WinRM already is set up to receive requests on this machine. WSManFault Message ProviderFault WSManFault Message = Unable to check the status of the firewall. Error…
Gogul Raja
  • 31
  • 2
  • 6
0
votes
0 answers

How do I troubleshoot a Python script that should log into a Windows server when there are no error messages?

My Ansible playbooks are not working for my Windows servers (2012). They've never worked correctly. I installed pywinrm (0.1.1) on a CentOS 7 server. I have Python 2.7.5. I have a basic Python script that imports winrm. I have hardcoded the…
Kiran
  • 99
  • 3
  • 11
0
votes
0 answers

Remote PowerShell rights

I am working on a script that i want to store centrally and run on a few different servers. I have problems getting kerberos to work so i am using local accounts for now. The target server is properly configured and a local admin account has been…
Elwin Hidding
  • 11
  • 1
  • 4
0
votes
2 answers

windows nodes and rundeck

Did anyone of you managed to integrate windows nodes into Rundeck? I tried everything but I'm not able to run ad-hoc commands or run a script from rundeck to windows server. Followed steps: install rundeck onto Ubuntu machine enable winrm for…
0
votes
1 answer

In Chef, Best way to deploy a single website from a package

I have a package including multiple websites and window services that I deploy them automatically from Team City using knife winrm remotely. But I want to find a best way to deploy a single website (recipe) periodically that rest of the recipe…
0
votes
0 answers

Powershell remoting default domain

When I try to connect to non fully qualified domain name etsn fails. Other commands seem to work OK. For instance test-connection myserver works but etsn myserver doesn't unless I etsn myserver.mydomain.com. On other machines this works without…
majkinetor
  • 8,730
  • 9
  • 54
  • 72
0
votes
0 answers

Can't transfer cookbook to Windows node using Chef Kitchen

I've been stuck trying to converge my test cookbook with Chef Kitchen. I've tried tinkering with the settings and using different vagrant boxes as well as "packing" my own. But each time I still get this error: >>>>>> ------Exception------- >>>>>>…
Zhao Li
  • 4,936
  • 8
  • 33
  • 51
0
votes
4 answers

Chef Gem::ConflictError when running knife bootstrap windows

I've got chef installed on my Windows 8.1 desktop and am trying to bootstrap a node in a managed Chef server. This is the first time I've tried it. When I run the knife bootstrap windows winrm NODE_IP --winrm-user NODE_USER --winrm-password…
Adam Gilmore
  • 13
  • 1
  • 4
0
votes
1 answer

Executing a Ruby script from Java using JRuby results in 'LoadError: no such file to load ...'

I'd like to execute a Ruby script from Java using JRuby (Linux Mint). I can successfully execute the script from the terminal by calling ruby script.rb. However, the script contains a require that causes "no such file to load" exception when trying…
w128
  • 4,680
  • 7
  • 42
  • 65
0
votes
2 answers

Visual studio release management - deploy with ps/dsc encountered error with server certificate

I'm trying to run a simple ps script on a target computer (my local machine) from our RM server through the RM client. However the release falls over when it reaches deploy using ps/dsc. The error message reads: Connecting to remote server ###…
0
votes
0 answers

How To Control The Sound of a Remote Computer

In an attempt to improve my PowerShell and VB.NET coding and scripting skills I decided to build a sort of control interface that would control the sound of a system, shut down a system, turn off the network adapters and the like. And for the…
Prog
  • 33
  • 1
  • 5
0
votes
0 answers

Powershell New-PSSession issue

When I remote desktop to a box I will get a prompt like this: 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 post. $secPasswd =…
user1054637
  • 695
  • 11
  • 28