Top "Invoke-command" questions

Invoke-Command is a powershell cmdlet that runs commands on local and remote computers.

Invoke a second script with arguments from a script

I have a script that reads a configuration file that results in a set of name value pairs that I …

powershell parameter-passing command-line-arguments invoke-command start-job
How do I pass named parameters with Invoke-Command?

I have a script that I can run remotely via Invoke-Command Invoke-Command -ComputerName (Get-Content C:\Scripts\Servers.txt) ` -FilePath C:\…

powershell invoke-command
Invoking a Java Method in JSP

Setup Mac OSX 10.6.8, Apache Tomcat 6.0.16, Java1.6.0_29, Eclipse IDE Indigo. I asked a similar question to this before at How to …

java jsp tomcat invoke-command
How to capture the Return Value of a ScriptBlock invoked with Powershell's Invoke-Command

My question is very similar to this one, except I'm trying to capture the return code of a ScriptBlock using …

powershell return-value exit-code windows-scripting invoke-command
Handle errors in ScriptBlock in Invoke-Command Cmdlet

I am trying to install a service on a remote machine using the powershell. So far I have the following: …

powershell error-handling invoke-command
Run Command as administrator in PowerShell script. UAC

OK here is my issue: I am trying to run a script remotely on a server. I am an administrator …

powershell uac appcmd invoke-command
Using Powershell's Invoke-Command to call a batch file with arguments

I want to use Powershell in order to call a batch file on remote machines. This batch file has arguments. …

windows powershell batch-file cmdlets invoke-command
How to start remotely process in PowerShell

I have a problem, I have a script which: Connect with PSSession (I use PSSession with admin account) Stop 2 process …

powershell remoting invoke-command start-process
Powershell Remote Invoke-Command Start-Process App Immediately Closes After Launch

I am working on a script to remotely kill two processes, delete some folders, and launch a service as an …

powershell powershell-remoting invoke-command start-process
Powershell Invoke-RestMethod over HTTPS

I'm trying to communicate with a service over powershell but I am failing miserably. I suspect it is the certificate …

powershell ssl https self-signed invoke-command