|
配置启动,包含用户目录:
- chrome.exe --remote-debugging-port=9527 --user-data-dir="C:\Users\Administrator\AppData\Local\Google\Chrome\User Data"
复制代码
自动化安装Google浏览器:
- $Path = $env:TEMP;
- $Installer = "chrome_installer.exe";
- Invoke-WebRequest "http://dl.google.com/chrome/install/375.126/chrome_installer.exe" -OutFile $Path\$Installer;
- Start-Process -FilePath $Path\$Installer -Args "/silent /install" -Verb RunAs -Wait;
- Remove-Item $Path\$Installer
复制代码 |
|