Hi
Thank you for your help.
would you please help me to understand the 2 below lines?
Not sure what's the reason for cred?
$cred1 = New-Object System.Net.NetworkCredential("TestUsername", $pswd1, "TestDomain")
$cred2 = New-Object System.Net.NetworkCredential("TestUsername", $pswd2, "TestDomain")