You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for this great script. i am a newcomer to powershell, so it helped me a lot.
i had a problem executing the script with more than one computer. the script concatenated the names instead of adding computers to the array. It looked something like comp1comp2comp3 :=
I added
# Define the livepc Arraylist
$livePCs = [System.Collections.ArrayList]@()
before the first foreach and it worked for me.
Gerald
The text was updated successfully, but these errors were encountered:
gsneijd
changed the title
Bug with more than one computer
Concatenating computernames instead of adding to array
Mar 26, 2021
Hello,
Thank you for this great script. i am a newcomer to powershell, so it helped me a lot.
i had a problem executing the script with more than one computer. the script concatenated the names instead of adding computers to the array. It looked something like comp1comp2comp3 :=
I added
before the first foreach and it worked for me.
Gerald
The text was updated successfully, but these errors were encountered: