Page 1 of 1

Running Scripts on Remote Computers

Posted: Tue Apr 30, 2019 1:49 pm
by plautodfl
To help you better we need some information from you.

*** Please fill in the fields below if you are currently using a Trial Version of the Product. If you leave fields empty or specify 'latest' rather than the actual version your answer will be delayed as we will be forced to ask you for this information. ***

Product: PowerShell Studio 2019 (64 Bit)
Build: v5.6.162
OS: Windows 10 Enterprise (64 Bit)
Build: v10.0.17763.0
32 or 64 bit OS:

OK- really having a blast with this product, just waiting on the corporate purchase wheels to churn.

One of the things I really liked was being able to run the script on the remote computer under the Remote Option.

I have a script that loops through a bunch of machines.
As part of my loop process how do I get the process to execute on the remote machine?



*** Please add details and screenshots as needed below. ***

DO NOT POST SUBSCRIPTIONS, KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM

Re: Running Scripts on Remote Computers

Posted: Thu May 02, 2019 11:10 am
by brittneyr
Are the machines you are looping through, you want to run this script on each machine?
If you are wanting to run this process remotely on each looped machine, you can try using the following cmdlet:

Code: Select all

Invoke-Command
You can provide the process you would like to run in the script block parameter and it allows you to specify the computer you would like to remote to.