Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $username = "your domain/username"
- $password = ConvertTo-SecureString "your password" -AsPlainText -Force
- $cred = new-object -typename System.Management.Automation.PSCredential -argumentlist $username, $password
- Invoke-WebRequest -Credential $cred -Uri http://spurl
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement