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 )


Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

WIMMount (HSM) causing cluster storage to go redirected (2012r2 DC)

Failed to delete the test record dcdiag-test-record in zone test.com

Azure MFA with Azure AD and RDS