I wrote a script that remotely pulls patches stored on the network and puts them on the servers stored in a text.
Currently the script works perfect, but it does one server at a time. I need it to run a instance of the script for each server at the same time so that I don't have to wait for patches to transfer.
Is there a way to call several instances of the same script with a different parameter in each?
ForEach($Server in $ServerList)
{
Get-Patches -Server $Server -Credentials $Creds -Domain $Domain
}
Something like this, so that creds only have to be entered once for each domain.
Thanks!