The tag has no wiki summary.

learn more… | top users | synonyms

-1
votes
0answers
36 views

Variable values to pass from local computer to remote in Pssession [migrated]

I have a powershell script. Executing this will create a session with remote computer and execute some scriptblock inside remote computer. After that execution I need to send a mail. So, I get the ...
1
vote
2answers
82 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 = ...
0
votes
0answers
83 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 ...
0
votes
0answers
42 views

HAProxy backend not draining

I am using two seperate haproxy clusters to load balance web farm and appfarm. Its a very simple setup. HAproxy cluster on DMZ distributes SSL traffic accross web farm and HAproxy cluster on app ...
1
vote
1answer
738 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 ...
5
votes
3answers
979 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
1k 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 ...
2
votes
3answers
1k 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 . ...
1
vote
1answer
2k 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
365 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 ...
2
votes
2answers
215 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
545 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 ...
5
votes
3answers
12k 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 ...
0
votes
1answer
1k 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
2k 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
1k 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
242 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 ...
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
393 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
1k 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
256 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
2k 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 ...
8
votes
9answers
58k 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. ...