internet explorer - PowerShell iexplorer.exe runas variable URL -


i need powershell equivalent of old batch file escalated ie session different user account. change url variable. old way: singlesignonapp.com has become new way singlesignonapp.com/username:

    runas /u:domain\admin /savecred "c:\program files (x86)\internet explorer\iexplore.exe http://www.singlesignonapp.com" 

i having difficulty figuring out how change user comobject internetexplorer.application: $ie = new-object -comobject internetexplorer.application

how can launch ie variable url? $username = "user" $url = "http://www.singlesignonapp.com/" + $username invoke-item "c:\program files (x86)\internet explorer\iexplore.exe" $url


Comments

Popular posts from this blog

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -