Advertisement
Guest User

Untitled

a guest
Aug 24th, 2016
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. # Edit your creds here
  2. $user = "DomainUsername"
  3. $password = ConvertTo-SecureString "MyPassword" -AsPlainText -Force
  4.  
  5. $mycreds = New-Object System.Management.Automation.PSCredential ($user, $password)
  6. Invoke-Item "Your Application" -Credential $mycreds
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement