Answered by:
Automate opening Chrome/IE websites

Question
-
Is there a way to automate in Powershell, to open Chrome/IE with parameters?
Need f.ex to open a page in incognito mode.
I was able to open incognito mode with Start - Run: chrome.exe "http://nagios.com/" --incognitoI would also like to enter username/password automatically if it is possible, although i doubt that i can pass credentials to the chrome.exe or iexplore.exe process when the script runs
All of this is for a monitoring computer we have, that I want to start automatically and log in to the monitoring webpages we have
- Edited by CesarTabares Tuesday, April 19, 2016 1:58 PM
Tuesday, April 19, 2016 1:57 PM
Answers
-
Hi Cesar,
Thanks for the post. If you want to log on a website with username and password, you can check the below similar thread:
Hope it helps.
Best Regards,
Elaine
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.
- Marked as answer by CesarTabares Wednesday, April 20, 2016 10:45 AM
Wednesday, April 20, 2016 9:12 AM -
Found out today I could use -ArgumentList parameter to pass application specific parameters when opening chrome
Start-Process -FilePath chrome.exe -ArgumentList "http://website.com --incognito --new-window"
I'll check out Elaine's post on how to automatically log in with passwords in websites from Powershell. If I can make it work, it would be excellent!
Freddy
- Marked as answer by CesarTabares Wednesday, April 20, 2016 10:45 AM
Wednesday, April 20, 2016 10:45 AM
All replies
-
You will have to ask Chrome questions in the correct Google forum.
\_(ツ)_/
Tuesday, April 19, 2016 4:40 PM -
GPO
Computer Configuration >
Administrative Templates >
System/Logon >
Run these programs at user logon Enabled
C:\Program Files (x86)\Internet Explorer\iexplore.exe "http://nagios.com/" -private
for Chrome
C:\Program Files (x86)\Google\Chrome\Application\chrome.exe "http://nagios.com/" --incognito
Regards
- Edited by Alvaro Saenz Tuesday, April 19, 2016 5:02 PM
Tuesday, April 19, 2016 4:52 PM -
Hi Cesar,
Thanks for the post. If you want to log on a website with username and password, you can check the below similar thread:
Hope it helps.
Best Regards,
Elaine
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.
- Marked as answer by CesarTabares Wednesday, April 20, 2016 10:45 AM
Wednesday, April 20, 2016 9:12 AM -
Found out today I could use -ArgumentList parameter to pass application specific parameters when opening chrome
Start-Process -FilePath chrome.exe -ArgumentList "http://website.com --incognito --new-window"
I'll check out Elaine's post on how to automatically log in with passwords in websites from Powershell. If I can make it work, it would be excellent!
Freddy
- Marked as answer by CesarTabares Wednesday, April 20, 2016 10:45 AM
Wednesday, April 20, 2016 10:45 AM