Questions tagged [remoting]

48 questions
2
votes
2 answers

How to configure winrs for localhost?

On executing commands on localhost I get Access Denied error as follows PS C:\Windows\System32> winrs -r:localhost dir Winrs error:Access is denied. PS C:\Windows\System32> Followig is my configuration PS C:\Windows\System32> winrm enumerate…
Muhammad Hasan Khan
  • 376
  • 2
  • 7
  • 18
2
votes
1 answer

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 non-admin to use PSRemoting (such as…
Jeff
  • 61
  • 1
  • 4
2
votes
2 answers

Powershell Get-Process cannot connect to remote computer

I've been struggling with this for a few hours and can't figure this out. I have two Windows 7 computers. One is my workstation that is using Powershell to do administrative maintenance. The other is the machine I'd like to use Powershell remoting…
amandion
  • 323
  • 2
  • 4
  • 7
2
votes
2 answers

How do I grep text in remoting mode

In powershell (2.0) the following works nice and fine: cmd /c echo "hello" | select-string hello Outputs "hello". When running this in remoting mode, text is not printed: Invoke-Command -ComputerName myserver -Credential user.name@domain.tld { cmd…
2
votes
1 answer

"Get-OwaVirtualDirectory" very very slow when accessing CAS in different site

I have a CAS server in a different AD site, and every Exchange 2010 command runs quickly... except for the one that use IIS and Get-XXXVirtualDirectory. In these cases it takes several minutes for the results to come back. Is this normal? Can I…
makerofthings7
  • 8,821
  • 28
  • 115
  • 196
2
votes
2 answers

Executing Oracle SQLPlus in a Powershell Invoke-Command statement against a remote machine

We have a basic powershell script that attempts to execute SQLPlus.exe on a remote machine. The remote does not have Oracle Instant client installed, but we have bundled all the necesary dlls in a remote folder. For example we have sqlplus.exe and…
Scott Muc
  • 908
  • 10
  • 9
2
votes
1 answer

Powershell Remoting Handover Variables

I've opened a Remote Session s1, and like to run a function with Parameters i handover in my scriptblock: Simplified example with Write-Host: $a = "aaa" $b = "bbb" $c = "ccc" $d = "ddd" Write-Host "AAAAA: $a $b $c $d" #This works fine as it's…
icnivad
  • 327
  • 3
  • 12
2
votes
3 answers

Powershell Remoting: Howto Run a Comand on multiple Machines with individual Parameters?

For example: Lets say i have 10 servers (Server 1-Server10) and a csv list where i have the servernames and a individual Foldername/Path for each server. How would i create these Folders on each machine? a) Open all 10 connections and run a command…
icnivad
  • 327
  • 3
  • 12
2
votes
0 answers

What could cause PowerShell Remoting to use high bandwidth?

I do IT work for an organization that is currently setting up (or letting me set up) an Active Directory domain. Right now, it's still in testing with 1 DC and 1 client. A week or two ago, our switch alerted us to excessive traffic between the…
1
vote
1 answer

PowerShell - Invoke-WmiMethod : Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))

I have 2 workgroup computers. I want to setup powershell-remoting between these two computers. The OS on both the computer is windows 1809. Powershell remoting is enabled in one of the computer. Other computer can't be accessed directly to enable…
Harshith R
  • 113
  • 1
  • 3
1
vote
0 answers

Cannot enable credSSP via PowerShell remote session

I need to enable credSSP authentication remotely via PowerShell remoting. When running: enable-wsmancredssp -role client -delegatecomputer fqdn -force` I got this error: Access is denied. + CategoryInfo : InvalidOperation: (:)…
1
vote
0 answers

Why does Negotiate Authentication over WinRM break immediately after leaving a domain until the server reboots?

While working with addition/removal of a computer from an Active Directory domain over WinRM (noticed while using Test Kitchen using the negotiate transport), I've noticed something strange, and am hoping to get some context to the behavior. When…
codewario
  • 548
  • 3
  • 16
  • 33
1
vote
0 answers

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 does not work remotely, but Get-ChildItem and other…
m-sharp
  • 111
  • 1
  • 4
1
vote
0 answers

Issues with Powershell Remoting

I'm configuring a new network and i need to enable Powershell Remoting. I'm in an Active Directory Domain and all my Clients are connected to the Domain. I'm able to run remote commands (Get-Process -Computername A1P1) successfully but i can't do…
gorokizu
  • 113
  • 5
1
vote
2 answers

PowerShell persistent connection during remoting

I'm having a hard time understanding persistent connections in PowerShell during remoting sessions. I created my persistent connection and created a variable to test its lifespan: $session = new-pssession server1 enter-pssession -session…
Jon
  • 339
  • 2
  • 10