I am trying to login into a computer. I have been playing with various versions and determined that my past questions were when I didn\'t know what I was really trying to do.
$pass="FooBoo"|ConvertTo-SecureString -AsPlainText -Force $Cred = New-Object System.Management.Automation.PsCredential('user@domain',$pass) gwmi win32_service –credential $cred –computer $computer