คำสั่งสำหรับติดตั้ง Microsoft Edge โดยไม่มีหน้าต่างถามตอบ ถอนการติดตั้ง และตรวจจับจากเครื่องมือกระจายซอฟต์แวร์ เราแสดงคำสั่งเฉพาะเมื่อแน่ใจเท่านั้น คือมาจากแมนิเฟสต์หรือค่าเริ่มต้นที่มีเอกสารของเทคโนโลยีตัวติดตั้งนั้น
คู่มือที่เกี่ยวข้อง: พารามิเตอร์ติดตั้งแบบเงียบ: MSI, NSIS, Inno Setup · ถอนการติดตั้งโปรแกรมผ่านรีจิสทรีหรือ PowerShell
ใช้ winget
PowerShell
winget install --id Microsoft.Edge -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Microsoft.Edge -e --silentwinget uninstall --id Microsoft.Edge -e --silentแยกตามตัวติดตั้ง
64 บิต · MSI · ผู้ใช้ทุกคน · en-US
ติดตั้งแบบเงียบ
msiexec /i MicrosoftEdgeEnterpriseX64.msi /qn /norestartบันทึกไฟล์ log
msiexec /i MicrosoftEdgeEnterpriseX64.msi /qn /norestart /l*v "%TEMP%\microsoft-edge-install.log"ARM64 · MSI · ผู้ใช้ทุกคน · en-US
ติดตั้งแบบเงียบ
msiexec /i MicrosoftEdgeEnterpriseARM64.msi /qn /norestartบันทึกไฟล์ log
msiexec /i MicrosoftEdgeEnterpriseARM64.msi /qn /norestart /l*v "%TEMP%\microsoft-edge-install.log"32 บิต · MSI · ผู้ใช้ทุกคน · en-US
ติดตั้งแบบเงียบ
msiexec /i MicrosoftEdgeEnterpriseX86.msi /qn /norestartบันทึกไฟล์ log
msiexec /i MicrosoftEdgeEnterpriseX86.msi /qn /norestart /l*v "%TEMP%\microsoft-edge-install.log"PowerShell: ดาวน์โหลด ตรวจสอบ ติดตั้ง
ดาวน์โหลดไฟล์ทางการ ตรวจสอบค่า SHA256 แล้วติดตั้งแบบเงียบ
install-microsoft-edge.ps1
$url = 'https://download.microsoft.com/download/9a5569d2-a134-42cb-940f-d7225433a20c/MicrosoftEdgeEnterpriseX64.msi'
$sha256 = 'F7BC427C4D26AEFE12BD492A24959CC6CA328AEA2851614637D7133CAE329071'
$file = Join-Path $env:TEMP 'MicrosoftEdgeEnterpriseX64.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait install-microsoft-edge.ps1
$url = 'https://download.microsoft.com/download/9a5569d2-a134-42cb-940f-d7225433a20c/MicrosoftEdgeEnterpriseARM64.msi'
$sha256 = 'FBC24254C81CE7A0C1FB776EE6D1F58FECE30FFEDEE6F3613637117B51247918'
$file = Join-Path $env:TEMP 'MicrosoftEdgeEnterpriseARM64.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait install-microsoft-edge.ps1
$url = 'https://download.microsoft.com/download/9a5569d2-a134-42cb-940f-d7225433a20c/MicrosoftEdgeEnterpriseX86.msi'
$sha256 = '07D84F7FA262AB981E4DB3D1CE99380521397298B631FAE295FE8A86CA8013FC'
$file = Join-Path $env:TEMP 'MicrosoftEdgeEnterpriseX86.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait