User and PWD for Enter-PSSession
is possible provide username , credentials pssession without getting prompt password?
here command using not sure password go:
enter-pssession –computername server name –credential domain\username
if meant completly not interactive, tried that?
$password = convertto-securestring "plaintextpassword" -asplaintext -force
$cred= new-object system.management.automation.pscredential ("username", $password )
$password = convertto-securestring "plaintextpassword" -asplaintext -force
$cred= new-object system.management.automation.pscredential ("username", $password )
Windows Server > Windows PowerShell
Comments
Post a Comment