Avatar of Mike
Flag for United States of America

asked on 

Need help Creating PowerShell Script

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

PowershellVB ScriptScripting Languages

Avatar of undefined
Last Comment

8/22/2022 - Mon