Questions tagged [remoting]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
23 views

Powershell Remoting with local Administrator in Domain

I would like to establish Powershell remote sessions to domain members by using their local administrator for authentication. Let's say I have a host called "server1" in the domain "...
user avatar
0 votes
1 answer
150 views

Powershell ssh connection from linux to Domain Controller is extremely slow

I have PHP application to create user accounts in our Windows Active Directory. This application is running on Apache and Debian 11. I have LDAP only (because of some apps which are not supporting ...
user avatar
  • 497
0 votes
0 answers
40 views

GIT-SCM bash.exe doesn't work from "Enter-PSSession -Computer myServer"?

Let's suppose I download and install Git-SCM on a remote windows 10 computer using this installer: https://github.com/git-for-windows/git/releases/download/v2.33.1.windows.1/PortableGit-2.33.1-64-bit....
user avatar
  • 101
0 votes
0 answers
400 views

Test-NetConnection works but Test-WsMan indicates a network issue

When running a Test-NetConnection, I can see port 5985 connects ok from server A to B. And doing a Test-WsMan from desktop C to server B, it works. However a Test-WsMan from server A to B, does not ...
user avatar
-1 votes
2 answers
1k views

How to connect to remote server using powershell from local . Enter-PSSession not working ( Not Related Exchange Service )

I am trying to connect to remote computer using local powershell session. for that I am trying to use local powershell Enter-PSSession or New-PSSession comandlets as : $session = New-PSSession -...
user avatar
  • 117
2 votes
0 answers
123 views

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 ...
user avatar
1 vote
1 answer
717 views

Powershell - Invoke-command does not run the msiexec.exe

I want to install the TortoiseSVN-client on a bunch of servers, using Powershell remoting. Basic operations work, but the below command won't work as remoting Invoke-Command -ComputerName myserver -...
user avatar
  • 223
1 vote
1 answer
4k views

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. ...
user avatar
3 votes
2 answers
19k views

WinRM remoting server with local Adminnistrator account not working?

I have a server Windows 2012R2 in the domain. This server has no domain user access, only local admin user. I can RDC into this machine using admin account, but cannot have a PSSession, so Enter-...
user avatar
0 votes
1 answer
912 views

How can I allow Powershell remoting from only one machine?

When I set WSMan:\localhost\Client\TrustedHosts on the server, it still allows access from client machines inside the domain. Instead, I'd like to disallow domain members by default. The calling user ...
user avatar
  • 164
0 votes
0 answers
615 views

How do I overcome an "Insufficient winsock resources" message that prevents PS Get-ADUser from running

My account is a domain admin, I often log onto a particular server in our network (not the DC), and until recently I could query AD with PS commands, e.g. Get-ADUser crm.webserver -Properties * and ...
user avatar
2 votes
1 answer
358 views

Powershell Implicit Remoting using JEA issue with MaxConcurrentUsers

Summary: I am running an implicit remoting server to centralize scripts which is accessible to 200 users. I am utilizing PowerShell 5 on the remote server and utilizing JEA. Modules and scripts are ...
user avatar
0 votes
1 answer
3k views

WinRM failing when attempted from Win10, but not from WSE2016

I'm unable to PSRemote to my Hyper-V host, nor can I connect to it using Hyper-V Manager. This occurs from a client VM, but not the server VM. I can PSRemote and connect without problem from the ...
user avatar
  • 713
4 votes
1 answer
4k views

Enable-PSRemoting or Set-WSManQuickConfig?

I'm getting pumped up for DSC and I want to cover my bases. I see that Enable-PSRemoting actually runs Set-WSManQuickConfig according to help documentation, I guess my main question is, what is the ...
user avatar
1 vote
0 answers
401 views

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. + ...
user avatar
0 votes
0 answers
2k views

Odd behavior using WinRM via powershell, works sometimes and other times does not

Been setting up Powershell Remoting for all of our client machines (Pushed out GPO last week) and I can Test-WSMan on pretty much all of them and I get a nice expected response. Now on one of our ...
user avatar
  • 101
1 vote
0 answers
292 views

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 ...
user avatar
  • 548
-1 votes
1 answer
209 views

Remoting from Windows Server 2012 64 bit to Windows Server 2008 R1

We need to upgrade our servers which run Windows Server 2008 R1 (32 bit version) to Windows Server 2012 (64 bit version). Some old components are not supported in Windows Server 2012. Is it possible ...
user avatar
  • 1
5 votes
1 answer
7k 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 ...
user avatar
1 vote
0 answers
3k 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 ...
user avatar
  • 111
6 votes
3 answers
2k views

Powershell remoting suddenly stops working

I'm having trouble executing a remote powershell script which is supposed to update the installation of an application for automated testing in a taskmanager task running once a day. The rather ...
user avatar
  • 161
2 votes
1 answer
526 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 ...
user avatar
  • 61
0 votes
0 answers
572 views

Issues with Get-WinEvent running in remoting session

Looks like below code does not work $EventLogonIDs="4611","4624","4625","4634","4647","4648","4672","4774","4775","4 908","4964" $MultipleIDLogEntries={Get-WinEvent -FilterHashtable @{Logname='...
user avatar
1 vote
0 answers
154 views

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 -...
user avatar
  • 113
4 votes
1 answer
7k 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 ...
user avatar
  • 61
1 vote
2 answers
2k views

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-...
user avatar
  • 339
0 votes
0 answers
1k views

Access Denied when Creating Remote Powershell session for Exchange 2013. But not always

Access Denied error is thrown sometimes when connecting to an Exchange Server 2003 SP1 server. The cmd-let used to connect is: Set-ExecutionPolicy RemoteSigned $sessOpt = New-SessionOption -...
user avatar
1 vote
2 answers
5k views

How do I suppress "Yellow Text" from Exchange Set-Mailbox, when -WarningAction doesn't seem to work?

I am doing a bulk import, setting or updating attribute6 on 1,000 users in AD. I'm using the following Exchange commandlet to accomplish this: [PS] C:\>set-mailbox -Identity user@company.com -...
user avatar
7 votes
3 answers
14k 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, ...
user avatar
  • 1,316
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 ...
user avatar
  • 143
3 votes
4 answers
7k views

How can I use shared functions in a remote Powershell session?

I have some Powershell scripts for setting up IIS web applications, message queues, etc. They use a set of shared function libraries we've created - so each script starts with the line . .\common....
user avatar
2 votes
2 answers
12k views

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 ...
user avatar
  • 323
1 vote
0 answers
503 views

Powershell: Cannot connect via SSL

Am following "secrets to powershell remoting" to setup an SLL account and seem to be missing a step. I ran Winrm create winrm/config/Listener?Address=*+Transport=HTTPS @{Hostname="redacted";...
user avatar
  • 151
2 votes
2 answers
1k views

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 -...
user avatar
2 votes
1 answer
1k views

"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 ...
user avatar
11 votes
3 answers
70k 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 ...
user avatar
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 ...
user avatar
2 votes
2 answers
7k views

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 ...
user avatar
  • 908
0 votes
3 answers
2k views

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 ...
user avatar
1 vote
1 answer
292 views

No Event Logs in Diagnostic on Windows Azure?

I'm trying to get .NET Remoting to work on Windows Azure, with a web role. I get a 500 internal server error when trying to access the URL. I've tried using Azure MMC (http://code.msdn.microsoft.com/...
user avatar
3 votes
2 answers
1k views

Run command remotely on Windows computer

I have a Windows Server 2008 instance on Amazon EC2 (Amazon's cloud compute platform, which provides VMs in the cloud). It has an external IP, and I have an admin account on the box. I would like to '...
user avatar
2 votes
1 answer
759 views

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 "...
user avatar
  • 327
2 votes
3 answers
4k views

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 ...
user avatar
  • 327
1 vote
1 answer
275 views

Powershell Remoting: Execute local function on two target servers

I have a function foo on my local Machine. (In my profile, but calling c:\scripts\foo.ps1 would be also OK!) How do i load this on ServerA and ServerB so i can execute the function in the next ...
user avatar
  • 327
2 votes
2 answers
5k views

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 ...
user avatar
10 votes
10 answers
88k views

psexec: "Access is Denied"?

Inspired by my previous question here, I've been experimenting with PSExec. The goal is to trip off some fairly simple scripts / programs on one WindowsXP machine from another, and as PowerShell 2 ...
user avatar
4 votes
5 answers
2k views

Is there a way to get PowerShell 2's remoting features to work between Windows XP machines?

PowerShell 2.0 has some super-snazzy remoting features. However, I'm unclear if they can be made to work with / between Windows XP machines, or if you need Windows Vista or Windows 7. ...
user avatar