Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Edit your creds here
- $user = "DomainUsername"
- $password = ConvertTo-SecureString "MyPassword" -AsPlainText -Force
- $mycreds = New-Object System.Management.Automation.PSCredential ($user, $password)
- Invoke-Item "Your Application" -Credential $mycreds
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement