Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

how to login to another user in powershell

$username = 'user'
$password = 'password'

$securePassword = ConvertTo-SecureString $password -AsPlainText -Force
$credential = New-Object System.Management.Automation.PSCredential $username, $securePassword
Start-Process Notepad.exe -Credential $credential
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #login #user #powershell
ADD COMMENT
Topic
Name
1+1 =