How to reboot multiple computers by using Windows PowerShell script !!!
$COMPUTERS = GET-CONTENT C:\users\manager.lab\Desktop\powershell\RebootMultipleComputers\in.txt
foreach ($computer in $computers)
{
Write-Host "Processing machine $($Computer)......"
Restart-Computer $Computer -Force
}
0 comments:
Post a Comment