Questions tagged [winrm]
190 questions
0
votes
2 answers
Syntax Error while adding TrustedHosts
I have a machine that has Windows Server 2012 R2 installed on it. I just installed RSAT on my ThinkPad Tablet which runs Windows 8.1. I'm trying to add my server in the client's trusted host list with -
winrm set winrm/config/client…

atiyar
- 133
- 2
- 8
0
votes
1 answer
What is the upper limit (maximum limit ) of WinRM MaxShellsPerUser
For executing the remote powershell commands i need to configure WsMan, In WsMan MaxShellsPerUser specifies the maximum number of concurrent shells that any user can remotely open on the same computer. If this policy setting is enabled, the user…

asvignesh
- 117
- 1
- 7
0
votes
0 answers
Accessing Exchange Server 2013 remotely from Windows 7 using PowerShell
I am trying remotely access Exchange Server 2013 using PowerShell from Windows 7. Below is the code snippet that I am using:
public static void ConnectToPowerShell()
{
string password = "password";
string userName =…

Harry
- 7
- 4
0
votes
1 answer
Adding existing Host to SCVMM: Error 2912
When trying to add an existing Hyper-V-Host to SCVMM I get the following error:
Error (2912)
An internal error has occurred trying to contact an agent on the %serverName%.
(Unknown error (0x80041004))
Recommendation Action
Ensure that the agent is…

marsze
- 467
- 2
- 6
- 15
0
votes
1 answer
Is there a way to obtain a Dell server's RAID configuration/level using only winrm/wsman? (ESXi servers)
I've seen videos describing how to configure RAID using wsman/winrm commands run against a server's iDRAC, but I can't seem to find anything that will just give me the current configuration and RAID levels. Is this possible? What uri would I use? If…

EGr
- 609
- 4
- 14
- 29
0
votes
1 answer
Remotely execute application on another PC connected via a crossover cable
I have two PCs that are both running Windows XP SP3, referred to as PC1 and PC2. They are connected to each other through cross-over ethernet cable. PC1 has the static IP address 10.0.0.1 and PC2 has the static IP address 10.0.0.2. I want to invoke…

sizzle
- 103
- 1
- 5
0
votes
1 answer
cscript fails when executed by winrm via but works when executed locally
I'm running the following as a part of chef deployment of a windows server.
cscript /nologo C:\chef\wget.vbs /url:http://www.opscode.com/chef/install.msi /path:C:\Users\ADMINI~1\AppData\Local\Temp\chef-client-latest.msi
The error I get is:
CScript…

sclarson
- 3,684
- 22
- 20
0
votes
2 answers
Windows Server 2008 Remote Management cannot connect
I have Windows Server 2008 R2 running on a remote machine, with Windows 7 Ultimate as my client machine.
I followed the instructions here (http://www.petri.co.il/remote-management-in-windows-server-2008-r2.htm) to set up remote management.
However,…

james
- 103
- 1
- 3
0
votes
1 answer
Remote EMS Script as Scheduled Task Without Credentials
I have an Exchange script that I want to schedule to run once a month. In our environment we have a server which runs all scripts and scheduled tasks, so for policy reasons I need to run this script remotely from here rather than on the Exchange…

Matt
- 1,893
- 5
- 28
- 40
0
votes
1 answer
Adding WinRM .adm template to Win Svr 2003 AD
I'm trying to enable WinRM on our machines via Group Policy. When I use GPMC against one of our Win Svr 2003 DC's, add a new GPO and edit it, and navigate to Computer Configuration > Policies > Administrative Templates, there's no node but "All…

Will Dennis
- 304
- 4
- 16
0
votes
3 answers
Powershell Remoting: One way trust
I work at a company where the AD forest has a one-way trust with our DMZ domain (DMZ Trusts Corpnet) when attempting to run the below command from my laptop sitting on the corporate network I am not able to remote into a server sitting in our DMZ.…

jamason1983
- 176
- 4
0
votes
1 answer
Why do I get Access Denied when using WinRM?
Following on from this question:
Why does my PowerShell script hang when called in PSEXEC via a batch (.cmd) file?
I took the advice from Jim B and installed WinRM. To recap I have two servers:
HMon01 - runs Windows 2003 Standard SP2
Web1928 -…

Kev
- 7,877
- 18
- 81
- 108
0
votes
0 answers
Ansible winrm Warning but ssh is used
I tested the last few days OpenSSH as connection method for windows hosts in Ansible, because we are a mixed environment and I want a similar approach for linux and windows.
I tested for windows 10 and 11 hosts and it is working mostly as expected.…

MaKaNu
- 101
- 1
0
votes
0 answers
runas become returns Win32ErrorCode 1314: A required privilege is not held by the client
and thanks in advance for reading and support.
I keep running into the error mentioned in title when using runas as become method from my Ansible controller towards Win10 Pro 22H2 host. I did my research on various forum resources, but none of them…

ondrej5834
- 1
- 2
0
votes
1 answer
Winrm client cert replacement fails
I'm managing a group of servers with Ansible and in case of Windows Servers, winrm is being used. Everything was setup and working fine, but the time has come to replace the cert for the service user that ansible is using (not the cert for WinRM SSL…