Questions tagged [remoting]
The remoting tag has no usage guidance.
51
questions
1
vote
0
answers
25
views
Set-DnsServerCache: Failed to connect to DNS server
I am trying to change my computer's DNS cache max time to live.
It is not in any domain, I am the full administrator on the computer - built-in administrator account + disabled group policy "Run ...
0
votes
0
answers
139
views
PRTG PowerShell Remoting Requirements for Custom EXE/Script Advanced Sensor
I've created a script for checking the TLS certificate assigned to an SMTP Relay server which supports SMTPS. The code is available here if that's of interest.
The documentation says that powershell ...
0
votes
0
answers
638
views
Alternative to x-forwarding, or how to speed up x-forwarding
I do my development on VM's, and pass windows back to my Host via X-forwarding with the following command:
ssh -Yc [email protected] me@local-vm-ip
This works fine except that it tends to be slow;...
3
votes
3
answers
2k
views
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 ...
0
votes
0
answers
545
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 "...
0
votes
1
answer
570
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 ...
0
votes
0
answers
91
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....
0
votes
0
answers
965
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 ...
-1
votes
2
answers
2k
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 -...
2
votes
0
answers
169
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 ...
1
vote
1
answer
1k
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 -...
1
vote
1
answer
6k
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. ...
3
votes
2
answers
25k
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
1
answer
1k
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
0
answers
935
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
1
answer
393
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
1
answer
4k
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 ...
4
votes
1
answer
5k
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
0
answers
509
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
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 ...
1
vote
0
answers
431
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
1
answer
214
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 ...
6
votes
1
answer
9k
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 ...
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 ...
6
votes
3
answers
3k
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
1
answer
612
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
0
answers
609
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
0
answers
199
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 -...
4
votes
1
answer
8k
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
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-...
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 -...
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 [email protected] -...
7
votes
3
answers
16k
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
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 ...
3
votes
4
answers
8k
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
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 ...
1
vote
0
answers
526
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
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 -...
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 ...
11
votes
3
answers
74k
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 ...
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 ...
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 ...
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 ...
1
vote
1
answer
297
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
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 '...
2
votes
1
answer
770
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
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 ...
1
vote
1
answer
276
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 ...
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 ...
10
votes
10
answers
91k
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 ...