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

css - I want to align grid in center -

Contact Form PHP Email Script -

python - SWIG function not printing output -