Microsoft Edge浏览器批处理设置主页的方法,创建脚本免去手动设置,适合快速装机设置。
$regPath = "HKCU:\Software\Microsoft\Edge\BLBeacon\settings"
$homePageKey = "HomePage"
$homePageValue = "https://dnpu.com"
if (-not (Test-Path $regPath)) {
New-Item -Path $regPath -Force | Out-Null
}
Set-ItemProperty -Path $regPath -Name $homePageKey -Value $homePageValue@echo off reg add "HKLM\SOFTWARE\Policies\Microsoft\Edge" /f /v "HomepageLocation" /t REG_SZ /d "https://dnpu.com" reg add "HKLM\SOFTWARE\Policies\Microsoft\Edge" /f /v "OpenHomepageOnStart" /t REG_DWORD /d 1 exit
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Edge] "HomepageLocation"="https://dnpu.com" "OpenHomepageOnStart"=dword:00000001
网友评论