Advertisement
Guest User

Untitled

a guest
Aug 4th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. $password = "password" | ConvertTo-SecureString -AsPlainText -Force
  2. $username = "user"
  3. $cred = New-Object System.Management.Automation.PSCredential($username,$password)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement