Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $url = "https://*****"
- $username="60****"
- $password="*****"
- $ie = New-Object -com internetexplorer.application
- $ie.visible = $true
- $ie.navigate($url)
- while ($ie.ReadyState -ne 4){sleep -m 250}
- $ie.Document.getElementByid("sap-user").value = $username
- while ($ie.ReadyState -ne 4){sleep -m 250}
- $ie.Document.getElementByID("sap-password").value=$password
- $ie.Document.getElementById("logon_button").Click();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement