$Servers=Get-Content c:\users\Bijesh\ServerRebootlist.txt
$cred = Get-Credential "localHost\administrator"
ForEach ($Server in $servers)
{
write-Host $Server
#Restart-Computer -ComputerName $Server -Force -ThrottleLimit 10 -Credential $cred
}
Regards
Bijesh
No comments:
Post a Comment