Questions tagged [winrm]
The winrm tag has no usage guidance.
192
questions
28
votes
6
answers
65k
views
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.
...
18
votes
1
answer
28k
views
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.
12
votes
1
answer
6k
views
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 ...
11
votes
3
answers
75k
views
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 ...
11
votes
3
answers
10k
views
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 ...
10
votes
6
answers
58k
views
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 ...
10
votes
3
answers
4k
views
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 ...
8
votes
1
answer
16k
views
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 ...
8
votes
2
answers
7k
views
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 ...
8
votes
2
answers
4k
views
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 ...
7
votes
3
answers
27k
views
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-...
7
votes
3
answers
17k
views
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, ...
7
votes
5
answers
44k
views
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-...
7
votes
1
answer
662
views
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 ...
6
votes
1
answer
24k
views
WinRM-Service is running but can't be reached
I have a virtual testing environment for developing scripts. As .NET isn't capable of all the possibilities PowerShell offers I use Remote PowerShell Runspaces.
My problem is now, that I can't reach ...
6
votes
1
answer
58k
views
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 ...
6
votes
0
answers
2k
views
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 -...
6
votes
1
answer
10k
views
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 ...
5
votes
1
answer
26k
views
How do I change Listener port in Powershell/winrm 2.0?
In quite a few places the command for changing the port winrm listens on look like this:
winrm set winrm/config/Listener?Address=*+Transport=HTTP @{Port="8888"}
However this does not work for me. ...
5
votes
4
answers
5k
views
Why can a Domain Admin run a powershell cmd locally, but connecting over WinRM with the same account, command returns an UnauthorizedAccessException?
I'm trying to administer a Windows 7 machine remotely. I've enabled WinRM and can use Enter-PsSession to connect to the remote machine.
However, I'm noticing a difference between running a particular ...
5
votes
5
answers
8k
views
How to give a user access to the Certificate Store on Windows Server 2012?
I've battling an issue for the last couple of days that I cannot seem to resolve. I'm not an administrator although I have some knowledge about some administrative tasks.
I have a PowerShell script ...
5
votes
1
answer
2k
views
Forward Kerberos Authentication on Ansible
I have an ansible control machine (host-A) that need to talk with host-C, an Windows machine that doesn't have local users (It's an Active Directory).
host-A doesn't have network access to host-C, ...
5
votes
2
answers
2k
views
Problem remotely managing Exchange Server 2010
I can't connect to the instance of exchange server 2010 through EMC on the local machine running w2k8 r2. I've checked all the default website bindings, the kerberos auth and WSMan are set to native ...
4
votes
2
answers
4k
views
Can Windows Admin Center connect to a remote server?
I was thinking that through one Windows Admin Center installation I'll be able to manage several remote Win servers. However, the add server dialog seems to be able to find only local/LAN servers. Is ...
4
votes
1
answer
8k
views
Set-NetFirewallRule alternative in Windows Server 2008
I am trying to Enable Powershell Remoting on a Windows Server 2008, but from what I understand, the default firewall exception is that PSRemoting is only allowed if the computer (both client and ...
4
votes
2
answers
10k
views
How does Windows Event forwarding work with non domain computers? (certificates)
In reasearching this question I've looked at the following documents and none of them describe the options or flexibility of the event collector service.
Microsoft's Event Collector Service on ...
4
votes
1
answer
9k
views
Where is WinRMRemoteWMIUsers__ local group in Windows Server 2016?
With Windows Server 2012 R2 I can use the group WinRMRemoteWMIUsers__ to enable remote PowerShell execution via -CimSession for non-admin users. However, the group is missing on my Windows Server 2016 ...
4
votes
1
answer
4k
views
Enabling WinRM HTTPS listener using quickconfig fails on Server 2012
I have created a SSL Server Authentication certificate with a CN matching the servers hostname. However, using winrm qc -transport:https fails with the following error
Cannot create a WinRM ...
4
votes
1
answer
552
views
Launching Installer Via Powershell and WinRM and Nothing Happens
I'm currently working on a Powershell script to run some Microsoft Hotfix installers remotely on several Windows Server 2008 R2 servers that I manage. Basically, the script copies all the appropriate ...
4
votes
3
answers
3k
views
WinRM listener is not all ears
This is what happens when I try and connect to Powershell on my remote machine:
PS C:\Users\Jonathan> Test-WSMan -ComputerName 54.228.XX.XX
Test-WSMan : The WinRM client cannot complete the ...
4
votes
2
answers
5k
views
Allowing Domain Users to run winrm commands
Currently i have a AD/Kerberos Configured on one EC2 instance(Windows 2008 R2) and created couple of users. Each of the users has administrator privileges. When We login as a non-domain Administrator, ...
3
votes
3
answers
2k
views
Why does a scheduled task access the database as anonymous (vs configured acct)?
**Update: I added a much shortened script which generates the same issue. See the bottom of this port:
I have a PowerShell script that runs a SQL query against a MSSQL server (different server). The ...
3
votes
2
answers
2k
views
What restrictions does WinRM/WinRS place on the processes that it runs?
I'm using winrs to run a test client against some server software that I'm developing. I'm using the client to generate load on the server under test for profiling. Both the machine that I'm running ...
3
votes
2
answers
7k
views
Powershell remote sessions and access to network resources
It seems I cannot access network resources in a remote Powershell session. This is using Powershell v2. Both the local and remote computers are on the same domain.
As an example, if I am on MachineA ...
3
votes
1
answer
7k
views
winrm access denied for new user
On windows server 2012 was created new user as administrator.
in powershell was started winrm(winrm quickconfig).
But after winrm configSDDL default result is WSMan fault: access denied.
What's wrong?...
3
votes
4
answers
9k
views
Win32_LogicalDisk doesn't retrieve network drives from remote machines
I'd like to use WMI to retrieve all logical disks from a remote host. For some unknown reason, running get-wmiobject Win32_LogicalDisk -computername remoteHost fails to include network drives located ...
3
votes
2
answers
7k
views
PowerShell remoting with a one-way trust
My question is similar to Powershell Remoting: One way trust, however there are differences and the resolution (adding the server to the trusted list) does not work for me.
Scenario:
I have two ...
3
votes
3
answers
2k
views
One-To-Many Powershell Scripts
I'm trying to create a script to run as a scheduled task, which will run against multiple servers and retrieve some information.
To start with, I populate the list of servers by querying AD for all ...
3
votes
3
answers
26k
views
WinRM will not connect to remote computer in my Domain
I am trying to run a script that installs a program remotely for a user in my domain. I can run the script fine on my own computer but when I run the script for a different computer in the domain I ...
3
votes
2
answers
405
views
Remotely Manage Server Core 2016 Hyper-V Hosting Domain Controller
I ran into a little issue this morning and am wondering how I avoid the issue in the future. Fortunately, the issue resolved itself, but this could be a major problem in the future.
My domain ...
3
votes
2
answers
4k
views
Windows Server 2008 R2 Source-Initiated Event Log Forwarding: No Source Servers Reporting
I have a Server 2008 R2 server acting as a collector for two other servers. One is 2008 R2 as well, the other is 2012 R2. Collector Initiated forwarding works just fine, and that's really the only ...
3
votes
1
answer
8k
views
Using WinRS to process a command on a remote machine
So I have machines:
Client machine: Windows 7 on domain A
Server machine: Windows 2008 R2 on domain B, after running winrm quickconfig
I'm using the following command as a test script:
winrs /r:...
3
votes
1
answer
11k
views
How do I browse and edit WinRM configuration settings?
I'd like to browse and edit WinRM configuration settings but struggle with winrm.exe.
Is there an alternative app, a command line switch, XML file, registry setting (etc) that I should investigate?
3
votes
1
answer
2k
views
How do I stop service on remote server, that's not connected to a domain, using a non admin user via PowerShell
I've got the start of the script to achieve this:
$SecurePassword = ConvertTo-SecureString –String $Password –AsPlainText -Force
$Credential = New-Object -TypeName System.Management.Automation....
3
votes
1
answer
6k
views
PowerShell remoting doesn't work if computer name contains dot
I have one system where I cannot connect to remote computer (or to itself remotely) using PowerShell when computer name contains dot.
For example, this works:
Enter-PSSession HostA -Credential ...
3
votes
1
answer
17k
views
WinRM fails with error 2150858770
Installing any feature with the Server Manager, it hangs on "Starting Installation".
When I install the feature with PowerShell, it works fine, only when I open up Server Manager to ...
3
votes
2
answers
25k
views
WinRM cannot connect
I am trying to get two workgroup machines (both are Windows 2012 R2) to talk to each other using PowerShell via WinRM. Let's call them ServerA and ServerB. On both machines I ran the following ...
2
votes
4
answers
4k
views
Has anyone solved the double-hop issue with Ansible and Windows clients?
My situation: I have an Ansible server, a Tower server, a Windows file server, and a Windows client. Through Ansible, I want to tell the Windows client to copy some files from the Windows file server. ...
2
votes
1
answer
2k
views
SSH Key style authentication with WinRM
Would it be possible to setup any type of authentication key with WinRM that would be similar to the way SSH Keys work? I don't mean just the encrypted transmission but more to be able to ...
2
votes
1
answer
782
views
Why does connecting to SMB share also use wsman
When I connect to a file share using \servername\share in Windows explorer (windows 10 to a windows server share), I notice that there are also connections from my host to the destination server over ...