Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [remoting]

The tag has no usage guidance.

0
votes
1answer
26 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-...
0
votes
0answers
90 views

slow response from IIS for different type of requests

There is an operation method running on App server. The method basically checking the given date from a global chache object and return it if it is a holiday date or not. When I make a request to ...
0
votes
1answer
133 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 ...
0
votes
0answers
291 views

PowerShell Remote Session Client User permissions required?

I have a problem when trying to connect to a Remote Server using PowerShell New-PSSession command. The command I use is: New-PSSession -ComputerName $MachineName -Credential $VmCred -Authentication ...
0
votes
0answers
196 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 ...
2
votes
1answer
196 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 ...
0
votes
1answer
1k 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 ...
2
votes
1answer
2k 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 ...
1
vote
0answers
188 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. + ...
0
votes
0answers
923 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 ...
1
vote
0answers
96 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 ...
-1
votes
1answer
198 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 ...
4
votes
1answer
2k 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 ...
0
votes
0answers
2k 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 ...
6
votes
3answers
1k 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 ...
2
votes
1answer
277 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 ...
0
votes
0answers
326 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='...
1
vote
0answers
115 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 -...
3
votes
1answer
3k 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 ...
1
vote
2answers
1k 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-...
0
votes
0answers
879 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 -...
1
vote
2answers
4k 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 -...
7
votes
3answers
7k 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, ...
3
votes
1answer
4k 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 ...
3
votes
4answers
6k 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....
2
votes
2answers
10k 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 ...
1
vote
0answers
452 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";...
2
votes
2answers
747 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 -...
1
vote
1answer
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 ...
8
votes
3answers
48k 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 ...
1
vote
2answers
5k 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 ...
2
votes
2answers
6k 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 ...
0
votes
3answers
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 ...
1
vote
1answer
282 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/...
3
votes
2answers
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 '...
2
votes
1answer
676 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 "...
2
votes
3answers
3k 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 ...
1
vote
1answer
272 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 ...
1
vote
2answers
4k 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 ...
9
votes
9answers
79k 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 ...
4
votes
5answers
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. ...