查看: 278|回复: 0

[文章教程] Powershell控制chrome浏览器汇总

[复制链接]
xuanxiao 发表于 2022-6-27 13:05:46 | 显示全部楼层 |阅读模式
配置启动,包含用户目录:
  1. chrome.exe --remote-debugging-port=9527 --user-data-dir="C:\Users\Administrator\AppData\Local\Google\Chrome\User Data"
复制代码


自动化安装Google浏览器:
  1. $Path = $env:TEMP;
  2. $Installer = "chrome_installer.exe";
  3. Invoke-WebRequest "http://dl.google.com/chrome/install/375.126/chrome_installer.exe" -OutFile $Path\$Installer;
  4. Start-Process -FilePath $Path\$Installer -Args "/silent /install" -Verb RunAs -Wait;
  5. Remove-Item $Path\$Installer
复制代码
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表

在线客服

售前咨询
售后咨询
服务热线
023-58418553
微信公众号