Hi,
from some reason from yesterday, i can’t paste my code into the question, these are the things that i’ve tried:
- using two different computers
- paste only half of the code
- tried using Internet Explorer instead of Chrome
this is the original code with a screenshot:
Code
and this what happen when I paste the code
after notepad
Try {
$computers="pc1","pc2","pc3"
write-host -BackgroundColor Yellow -ForegroundColor Black " Initiating first test of two - ¿?Ping Test¿?"
write-host "`n"
write-host "#########################################"
#first Foreach Steatment
foreach ($pc in $computers) {
write-host -BackgroundColor White -ForegroundColor Blue "Performing a ping test to ->$pc$pc$pc$pc$pc<- it's not responding"}
pause