Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement