Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $username = "username"
- $password = "password"
- $ie = New-Object -com InternetExplorer.Application
- $ie.visible=$True
- $ie.navigate("192.168.178.1")
- while($ie.ReadyState -ne 4) {start-sleep -Seconds 1}
- $ie.document.GetElementsById("loginUsername").value= "$username"
- $ie.document.getElementById("loginPassword").value = "$password"
- $ie.Document.getElementById('login').click()
- start-sleep 5
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement