Questions tagged [winrm]

181 questions
28
votes
6 answers

Recycle remote IIS app pool from the command line?

Is it possible to recycle an IIS7 app pool from the command line, on a different machine? I've found APPCMD (appcmd recycle apppool my-app-pool), but it only operates on the host it's run on, AFAICT. I heard a rumor there might be a way to do it…
Ken
15
votes
1 answer

Configure WinRM using a .bat file without yes/no prompt

I want to configure winrm in all my clients using a bat file. after running bat file winrm quickconfig command there's a prompt for a yes/no answer. I don't know how to answer "yes" in the batch file.
Steve
  • 153
  • 1
  • 1
  • 6
12
votes
1 answer

Windows Remote Management Over Untrusted Domains

I am currently trying to enable Windows Remote Management (specifically, Powershell Remoting) between 2 untrusted domains, and having no luck. A brief description of my setup: domain1 - my workstation is on this domain domain2 - the server I wish…
Nick DeMayo
  • 287
  • 4
  • 14
11
votes
3 answers

Issues with patching servers remotely using winrm and Microsoft.Update.Session

I have a network with windows 2003, 2008 and 2008r2 servers. I have a powershell script that I wrote to patch a local machine using the "Microsoft.Update" com objects. (Similar to Windows Update PowerShell Remoting.) My script works wonderfully…
11
votes
3 answers

Cannot get CredSSP authentication to work in PowerShell

In attempting to create a PowerShell script using remoting I ran into what I believe is the double-hop problem. In that article, Perriman gives a succinct description of the problem as well as the specific steps to resolve the issue (almost trivial…
Michael Sorens
  • 445
  • 2
  • 6
  • 17
10
votes
3 answers

How to remotely detect windows has completed patch configuration after reboot

We're planning to automate the creation of VMs for our build infrastructure so that we can: Scale the build resources based on demand, e.g. by adding more build agents when required and removing them when not required Recreate all or part of the…
Petrik
  • 203
  • 2
  • 9
10
votes
6 answers

How to enable negotiate authentication for winrm

I have disabled negotiate authentication for the winrm service on my server by executing: winrm put winrm/config/service/Auth @{Negotiate="false"} And now I can perform any operation with winrm. I get the error: Message = The WinRM client…
Ivaylo Strandjev
  • 223
  • 1
  • 2
  • 6
8
votes
1 answer

Unable to configure WinRm https listener

I am trying to configure winrm https listener on a windows machine. Earlier i had followed WinRm https listener configuration The above solution worked for me. But now i have deleted the listener and want to configure the winrm again using winrm…
visualizer
  • 81
  • 1
  • 1
  • 2
8
votes
2 answers

powershell: How to check if S.M.A.R.T is enabled on remote machines

I was attempting to get disk info of remote machines, including whether or not SMART is enabled on the drive by using the win32_diskdrive class. This is trickier than I thought. While it's easy enough the read the status property I discovered…
red888
  • 4,069
  • 16
  • 58
  • 104
8
votes
2 answers

What is a valid destination log for Windows event forwarding

I'm running into an issue when trying to use a custom log journal for storing forwarded events (via subscription) on a Windows 2008 R2 server, the custom log being described as not being a "valid destination log". I'm currently setting up an…
7
votes
5 answers

The Server Manager WinRM plug-in might be corrupted or missing on W2K12R2

Today I have been totally defeated by this infamous 2012R2 error: Server Manager could not start the task due to the following error: Failed to open the runspace pool. The Server Manager WinRM plug-in might be corrupted or missing. I have…
Anton Krouglov
  • 296
  • 1
  • 3
  • 12
7
votes
3 answers

How to allow access to winrs for non-admin user?

I have Windows Server 2012 (and Server 2008, but it is next priority) to monitor it using txwinrm. txwinrm library internally is using WinRS protocol. I have to monitor it using least privileged user, but don't know how to configure access for him.…
Bunyk
  • 1,314
  • 2
  • 11
  • 16
7
votes
3 answers

Automatically reconfigure WinRM HTTPS listener with new certificate?

I am looking to enable WinRM HTTPS listeners on all of our servers for secure communication when using CredSSP between servers to get around the double-hop issue. Setting this up is fine, we have CN-appropriate certificates from an internal CA so…
Jared
  • 71
  • 1
  • 1
  • 3
6
votes
1 answer

Hyper-V Manager - Use HTTPS with WinRM

I've successfully configured WinRM on my Hyper-V server to use HTTPS. I am able to connect to it and execute commands from my client PC by using the same local username and password on both (they are in a Workgroup) e.g. winrs…
Monstieur
  • 536
  • 2
  • 15
6
votes
1 answer

Remote PowerShell, WinRM Failures: WinRM cannot complete the operation

When running Enter-PSSession COMPUTERNAME with Enable-PSWSManCombinedTrace, I see the following relevant messages in the Windows Remote Management Operational log: WSMan operation Get failed, error code 2150859046 WinRM cannot complete the…
Tohuw
  • 488
  • 2
  • 8
  • 23
1
2 3
12 13