$ServerList = get-content Servers.txt
Foreach ($server in $serverlist)
{
write-host $server -fore green
SCHTASKS /Change /s $Server /RU <UserID> /RP <Password> /TN <"Task Name">
}
Foreach ($server in $serverlist)
{
write-host $server -fore green
SCHTASKS /Change /s $Server /RU <UserID> /RP <Password> /TN <"Task Name">
}
No comments:
Post a Comment