Questions tagged [wsman]

Web Services-Management is a DMTF open standard defining a SOAP-based protocol for management of various entities

Web Services-Management is a DMTF open standard defining a SOAP-based protocol for management of various entities. It can be used to manage servers, devices, applications and web services. It has been published in March 2010.

37 questions
0
votes
1 answer

How to retrieve CIM instances from a Linux host using WinRM?

I'm using WinRM API in an attempt to collect some CIM instances from several hosts running either Windows or Linux. My code works fine when connecting to a Windows host, but an exception is thrown if I try to connect to a Linux machine, which is…
w128
  • 4,680
  • 7
  • 42
  • 65
0
votes
1 answer

test winrm connectivity on list of systems using powershell

I want to test whether or not winrm is running on a list of servers. winrm id -r:servername works for individual systems but I want to test recursively for a list from a csv or text file. With output to a file saying "working" or "not working" for…
0
votes
1 answer

Cast to a C# object using remote PowerShell

I am connecting remotely to a PowerShell console using C#: using (Runspace remoteRunspace = RunspaceFactory.CreateRunspace(setUpConnection())) { remoteRunspace.Open(); using (PowerShell powershell = PowerShell.Create()) { …
Egor Okhterov
  • 478
  • 2
  • 9
  • 34
0
votes
2 answers

PowerShell remoting: exception PSInvalidOperationException in WSManClientSessionTransportManager.Initialize()

I have C# Asp.Net application, which connects to remote computers (remote in relation to web server) to run commands on them using PowerShell. This generally works, however under some circumstances (which I don't completely understand yet), we…
Cozzamara
  • 1,318
  • 1
  • 14
  • 22
0
votes
0 answers

Using Nginx to front "Windows Remote Management" web services

I want NGINX to front requests that will backend proxy WinRM / WSMAN requests. Nginx should listen on port 80 and backend proxy to port 5985. nginx config: server { listen 80; server_name wsman.example.com; index …
0
votes
1 answer

preg_replace adding a '1' before and after each substring in an array

I have a script that I am running against a set of servers to pull hardware data off them using openwsman. This is in an attempt to keep track of changes in a very open environment as well as update a mysql db eventually to keep an inventory record.…
akitosh
  • 73
  • 7
0
votes
1 answer

Break XML File into multiple XML Files

I want to break XML output given by WSMAN into multiple XML files so that I can parse the output. WSMAN gives me output as below which basically has two distinct XML files with each having its own root node:
slayedbylucifer
  • 22,878
  • 16
  • 94
  • 123
1 2
3