The tag has no usage guidance.

learn more… | top users | synonyms (2)

1
vote
2answers
366 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 ...
2
votes
0answers
41 views

WinServer 2012R2 - WinRM error -2147014789 0x8007277B

On my WinServer 2012R2 Foundation I have a notification in the server manager that the Remote Desktop Connection Broker service is stopped. When I try to start it manually I receive: Server manager ...
0
votes
1answer
1k views

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 (...
0
votes
1answer
57 views

Getting Access Denied from WinRM on Windows 2008 R2

How do I restore WinRM on a Windows 2008 R2 machine back to it's 'out-of-the-box' state? Or alternatively, how do I get WinRM to start talking to me again? I'm logged in as administrator via RDP. ...
0
votes
1answer
33 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 ...
0
votes
0answers
58 views

Access denied when running some remote PowerShell commands

I have configured WinRM (PowerShell Remoting) on four machines that I administer. On all machines but one I can run both of these commands remotely with no issue. On one cursed machine, Get-Command ...
0
votes
0answers
35 views

WinRM will NOT work, error code 2150858770

I'm just about stumped with WinRM up to this point. Whenever I try to install any feature with the Server Manager, it hangs on "Starting Installation". When I install the feature with PowerShell, it ...
-1
votes
1answer
52 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 ...
9
votes
3answers
181 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 ...
3
votes
0answers
27 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 ...
2
votes
0answers
133 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, ...
1
vote
0answers
314 views

Event log subscription returns error code (0x138C)

I have been battling getting Event log subscriptions to work on my server 2012 R2 domain controllers. I have created the collector-initiated-subscription using the GUI and selecting the defaults ...
0
votes
2answers
2k views

Powershell - winrm using ip address instead of computer name

Is it possible to set up winrm using IP address instead of the computer name. The computer in question is only I have only been able to set winrm up for a computer in the same domain like this: ...
0
votes
2answers
195 views

Powershell connection to exchange 2013 powershell works randomly?

I am currently working on a script that connects to our mailserver and purges a specific folder in a mailbox, I got everything working without a problem except the connecting to the server. When I ...
0
votes
0answers
50 views

How do I perform a remote service stop and Postgresql backup using powershell?

I am having some difficulty with a Powershell script. The script runs nightly to perform a backup of a Postgresql db. I used WinRM to allow the server running the script to perform the service ...
1
vote
4answers
5k views

Why am I getting an Access Denied on importing a PST file in Exchange 2010 SP1?

I am trying to test importing a .PST file directly from its original location on a remote machine with the New-MailboxImportRequest cmdlet in Exchange 2010 SP1. I have no trouble importing the file if ...
3
votes
1answer
224 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....
2
votes
0answers
1k views

Server 2012, Attempted to Install Certificate Services, now Win-RM is broken

I have two exchange servers, one running Exchange 2007 and one Exchange 2010. On the Exchange 2010 I attempted to install a AD-Certificate role but after installing the role I am unable to run the ...
1
vote
2answers
7k views

How can I reinstall the WinRM service on WS2012?

Whatever winrm command I issue I get, The client cannot connect to the destination specified in the request ... Error number: -2144108526 0x80338012 I checked all the usual suspects. The ...
10
votes
1answer
8k 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.
1
vote
0answers
24 views

Impossible to send events from more than one non-domain windows server (2008, 2003) to WinRM collector (windows 2012)

We have problem with non-domain servers using certificates. We created certificates (through CA), installed one on collector (with good CN), second on first source server, third on second source ...
6
votes
1answer
920 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 ...
1
vote
1answer
2k views

how to force ansible to use http + kerberos (error WINRM CONNECTION ERROR: 401 Unauthorized.)

I am configuring ansible (CentOS 6.7) to connnect to windows machine using http, winRM and kerberos From the /etc/ansible/host file [training] machinename:5985 I have set host specific yaml file ...
0
votes
0answers
40 views

Reconnectiong to a loopback PSSession from another computer

On the server , open powershell and type New-PSSession -ComputerName localhost A new PSSession is created in the local computer, Get-PSSession returns the session information correctly. Now go to ...
7
votes
2answers
2k 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 ...
1
vote
1answer
54 views

Powershell: PSScheduledJob for non-admin

Is there a way for non-admins to use the PSScheduledJob module? For example, I tried Register-ScheduledJob without admin privilege, but it returns "Access is Denied" error. We know that we can allow ...
2
votes
0answers
311 views

Can not install Office 2010 via winrm

I am trying to install Microsoft Office 2010, I have created a MSP and config.xml file so I can do this from Powershell, using the following command: Start-Process "C:\temp\Office2010\x86\setup.exe" -...
0
votes
1answer
221 views

WinRM and HTTP services impossible to start

I have a new windows 2012 R2 server and here are softwares and roles installed : - nxFilter - TeamViewer Get-WindowsFeature command result : Success Restart Needed Exit Code Feature Result ---...
4
votes
3answers
15k 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 ...
4
votes
3answers
933 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 ...
0
votes
0answers
193 views

Copy files to “default” location using UNC path

When I log in remotely using PowerShell, I'm placed in a default location: > Enter-PSSession SERVER [SERVER]: PS C:\Users\smithe\Documents> I'd like to copy a folder recursively to this ...
12
votes
1answer
1k 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 ...
2
votes
1answer
209 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 ...
0
votes
1answer
667 views

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\...
2
votes
1answer
754 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 ...
20
votes
4answers
37k 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. ...
1
vote
0answers
72 views

WinRM HTTPS Connection to Windows 8 Systems

I have a couple virtual Windows 8 clients that I will be using to run some tests against a server. I set up WinRM so I can easily pull the data back from all the clients for analysis but the data ...
3
votes
2answers
5k 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-...
1
vote
0answers
121 views

W2K12 Server Manager and WinRM SSL

does anyone know if it is possible to use Server Manager on remote servers using SSL? Due to enterprise policies we currently disable winrm listeners for http and enable https only. This works fine ...
1
vote
2answers
141 views

Powershell HTTPS not working

I am a bit confused on how to configure certificate for my local host. My scenario is like: We've two windows 2012 servers (not joined in a domain) and I need to execute a powershell script remotely ...
1
vote
1answer
909 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 ...
2
votes
3answers
213 views

WinRM Publicly Available

I am looking for specific feedback on WinRM. There are ::still:: debates out there about whether or not making RDP publicly available without a VPN is a good idea--There are no debates on whether or ...
4
votes
1answer
10k 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, ...
2
votes
2answers
1k 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 ...
0
votes
1answer
620 views

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 ...
4
votes
1answer
2k 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 ...
1
vote
0answers
712 views

Chef Issue bootstrapping windows VM using winrm via https

Chef Server(RHEL 6.5): 11.16.4 Windows endpoint: Windows 2008 The bootstrapping works fine over http (with winrm config allowUnEncrypeted = true and basic auth = true). Now we are trying same thing ...
2
votes
1answer
5k 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:...
2
votes
2answers
972 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, ...
6
votes
3answers
2k 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, ...