Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

how to excute a power shell script to remote machine using power shell script folder path and script name

$
0
0

Hi,
Let say, I have 3 parameters.

1. Script FolderPath (Remote path for e.g \\RD101\ScriptSharedFolder     Here RD101 is one server)
2. Script Name(StopAllService.ps1)
3. Server Name (RD45)

I want to execute a powershell scritp in my local machine(Test1)  and in that script I want to pass the above three parameters.Now I want to excute the StopAllService.ps1 script into RD45 server. But the script is available in RD101 machine.

So What I want to here How can we do this ? I have script name and script folder path and target execution server name.

Pls giude me or give me the script.

By
A Path Finder..
JoSwa 


If a post answers your question, please click "Mark As Answer" on that post and "Mark as Helpful"Best Online Journal


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>