Questions tagged [winrm]

181 questions
3
votes
2 answers

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 environment is virtualized on Server 2016 Core Hyper-V…
3
votes
1 answer

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
1 answer

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 works fine, only when I open up Server Manager to…
CitadelCore
  • 31
  • 1
  • 1
  • 5
3
votes
2 answers

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 commands: Enable-PSRemoting -Force Set-Item…
Dave
  • 139
  • 1
  • 1
  • 3
3
votes
1 answer

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.PSCredential -ArgumentList $UserName,…
3
votes
4 answers

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 on the remote Windows host. However, running…
w128
  • 245
  • 2
  • 5
  • 10
3
votes
2 answers

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 type I've ever implemented. I decided to have a go…
Tohuw
  • 488
  • 2
  • 8
  • 23
3
votes
1 answer

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:Servername /u: /p: ping…
Sean Long
  • 435
  • 1
  • 6
  • 18
3
votes
1 answer

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 user1 But this doesn't: Enter-PSSession…
Cozzamara
  • 143
  • 2
  • 6
3
votes
2 answers

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 domains. DOMAIN and DOMAINDMZ. DOMAIN has an incoming…
shufler
  • 962
  • 1
  • 6
  • 18
3
votes
1 answer

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?
makerofthings7
  • 8,821
  • 28
  • 115
  • 196
3
votes
3 answers

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 servers that match a certain set of criteria, using…
Matt
  • 1,883
  • 5
  • 26
  • 39
3
votes
2 answers

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 and connect to MachineB via Enter-PSSession…
Daniel Pratt
  • 133
  • 1
  • 4
3
votes
2 answers

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 the server software and winrs on and the machine…
Len Holgate
  • 233
  • 3
  • 10
3
votes
3 answers

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 script runs as expected when run interactively.…
uSlackr
  • 6,337
  • 21
  • 36
1 2
3
12 13