We help IT Professionals succeed at work.
Get Started

Need help Creating PowerShell Script

1 Endorsement
Last Modified: 2017-04-17
Greeting Experts,

I need help creating a script to invoke another .ps1 script or command to complete a web request from a list of computers. Each of these computers is located at different sites so doing a manual test with each computer would take much longer to do. I am looking to reduce that time by creating a script that would be able to start a remote session,  then execute the command and output the results into a txt file.  I have attached the original script used for the web request...

$web = Invoke-WebRequest http://webaddress.com
$web.tostring() -split "[`r`n]" | select-string "Looking for string in the webpage"

Open in new window

Watch Question
"Batchelor", Developer and EE Topic Advisor
Top Expert 2015
This problem has been solved!
Unlock 1 Answer and 4 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE