Top "Powershell-remoting" questions

The ability to create a remote connection, in an other way than using WMI, is the most important difference between PowerShell v 1.0 and 2.0.

Invoke-command fails until I run winrm quickconfig on remote server

I'm trying to run a batch script on a remote server via powershell. Pretty straight forward: $password = ConvertTo-SecureString "password" -AsPlainText …

powershell powershell-remoting
Script to export to excel

I Have below script:-- looking for help to convert the output to excel format $servers = get-content “c:\list.txt” …

powershell scripting powershell-2.0 powershell-remoting powershell-3.0
Running remote GUI app in Powershell

We have a custom comonent that wraps some of the functionality of powershell so it can be used frim BizTalk 2006. …

powershell powershell-remoting
How to remote execute an ELEVATED remote script in PowerShell

I have two servers: serverA (windows 2003 server) serverB (windows 7) ServerA contains a folder with a batch file (deploy.bat) that …

powershell powershell-2.0 powershell-remoting elevated-privileges
Parameters with double quotes are not properly passed to Scriptblock by ArgumentList

I'm writing generic powershell script to perform deployments on remote machines. I have hit one problem I can not overrun, …

powershell powershell-remoting
Powershell logging from invoke-command

I have a script that includes a function for logging. The function writes log to $msg variable then writes the …

powershell powershell-2.0 powershell-remoting
Enter-PSSession to remote server fails with “access is denied”

I want to use winrm remote vm, I can connect to the localhost, but I can't connect to the other …

powershell powershell-remoting
Powershell Remoting: using imported module cmdlets in a remote pssession

Is there a way to use modules that were imported in a local session in a remote session? I looked …

powershell powershell-remoting powershell-module
Powershell Copy-Item - Exclude only if the file exists in destination

Following is the exact scenario in my powershell script. $Source = "C:\MyTestWebsite\" $Destination = "C:\inetpub\wwwroot\DemoSite" $ExcludeItems = @(".config", ".csproj") …

powershell powershell-2.0 powershell-remoting copy-item
PowerShell Remoting $Using variable scope

I have folder c:\test where I have three files: “file1”, “file2”, “file3” Following script: $remoteSession = New-PSSession -ComputerName localhost $folder = "…

powershell powershell-3.0 powershell-remoting