Powerview

creating a credential object with powerview

$pass = ConvertTo-SecureString 'JDg0dd1s@d0p3cr3@t0r' -AsPlainText -Force
$cred = New-Object System.Management.Automation.PSCredential('streamio.htb\JDgodd', $pass)

-> Useful when you're logged in as U1 and want to pivot to U2 ; but do not have remote access privs.