Enter-PSSession no password
do this
$sv="10.0.0.1" $user="poi" $pw = "pass" $pass = ConvertTo-SecureString -AsPlainText $pw -Force $cred = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList $user, $pass Enter-PSSession -ComputerName $sv -Credential $cred
secure password input
$pass = Read-Host 'What is your password?' -AsSecureString