I tried to borrow from Skippy's script (for notifying a user that their system is missing the MS 03-039 patch) and make a scipt that would reboot systems when they are listed in a file. This is what I ...
Your code seems fine, so I would assume there is something in the text file with the computer list that is wrong, it should have only the computer names and nothing else, no \\ no quotes or anything.
PowerShell is a vital task-automation and configuration management tool for Microsoft whose many features include making it possible for system administrators to connect to remote computers and run ...