Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2016
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. $url = "https://*****"
  2. $username="60****"
  3. $password="*****"
  4.  
  5. $ie = New-Object -com internetexplorer.application
  6. $ie.visible = $true
  7. $ie.navigate($url)
  8. while ($ie.ReadyState -ne 4){sleep -m 250}
  9. $ie.Document.getElementByid("sap-user").value = $username
  10. while ($ie.ReadyState -ne 4){sleep -m 250}
  11. $ie.Document.getElementByID("sap-password").value=$password
  12. $ie.Document.getElementById("logon_button").Click();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement