Need help with understanding these lines. is the password stored somewhere when used in a script? Can they cause account locked out issues?
$cred = Get-Credential $credential
$user = $credential.Username
$pass = $credential.GetNetworkCredential().Password
99upgrade