Questions tagged [winrm]

190 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
17
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
  • 173
  • 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
  • 297
  • 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,183
  • 18
  • 64
  • 111
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
  • 13
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,442
  • 2
  • 13
  • 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
0 answers

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 -Force works. The Windows Firewall is set…
6
votes
1 answer

Enter-PSSession on localhost is failing

I am attempting to execute the following Powershell command: Enter-PSSession -ComputerName localhost The server in use is running Windows Server 2008 R2 SP1 64-bit. The server is on a domain. I am logged in under my domain administrator account.…
1
2 3
12 13