Forum Discussion
charlie4872
Oct 30, 2020Brass Contributor
Return computer names from foreach loop
Hello I am looking for a way to list the results from each computer in my computers.txt file when running the script below. When I run it now it just returns the results from each computer but does n...
- Oct 30, 2020
Hi,
As I see you are showing the result in the console, why don't you simply and before the invoke-command line add the following like
Write-host "I am checking computer $($Computer)"
farismalaeb
Oct 30, 2020Iron Contributor
Hi,
As I see you are showing the result in the console, why don't you simply and before the invoke-command line add the following like
Write-host "I am checking computer $($Computer)" - charlie4872Oct 30, 2020Brass Contributor
farismalaeb Thanks for the reply that did the trick!