Hi,
I need to use Get-WmiObject -computerName 192.168.0.1 -Credential $(GetCredential DOMAIN\User)
My problem is that I also need to supply the password. I have tried GetCredential DOMAIN\User,$pwd, where $pwd is a secure-string, but I get a transformation argument error.
Is there any way to feed a password to Get-Credential, either as plain text (I know) or as a secure string.
I cannot seem to get it to work.
Regards
Craig