免互動安裝Make Me Admin、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。
相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或PowerShell解除安裝程式
使用winget
PowerShell
winget install --id pseymour.MakeMeAdmin -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id pseymour.MakeMeAdmin -e --silentwinget uninstall --id pseymour.MakeMeAdmin -e --silent依安裝檔
64位元 · MSI · 所有使用者 · da
靜默安裝
msiexec /i MakeMeAdmin-2.4.1-x64-da.msi /qn /norestart寫入記錄檔
msiexec /i MakeMeAdmin-2.4.1-x64-da.msi /qn /norestart /l*v "%TEMP%\make-me-admin-install.log"解除安裝
msiexec /x {4CA9B686-5486-4970-B193-91938D7456DF} /qn /norestart- MSI產品代碼
- {4CA9B686-5486-4970-B193-91938D7456DF}
- 解除安裝登錄機碼
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{4CA9B686-5486-4970-B193-91938D7456DF}
- UpgradeCode
- {9C690479-3987-48A8-8BDA-118EF1F93CDD}
64位元 · MSI · 所有使用者 · de
靜默安裝
msiexec /i MakeMeAdmin-2.4.1-x64-de.msi /qn /norestart寫入記錄檔
msiexec /i MakeMeAdmin-2.4.1-x64-de.msi /qn /norestart /l*v "%TEMP%\make-me-admin-install.log"解除安裝
msiexec /x {C2B32682-A5C3-47C3-B5F9-1AC98EA673D8} /qn /norestart- MSI產品代碼
- {C2B32682-A5C3-47C3-B5F9-1AC98EA673D8}
- 解除安裝登錄機碼
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{C2B32682-A5C3-47C3-B5F9-1AC98EA673D8}
- UpgradeCode
- {9C690479-3987-48A8-8BDA-118EF1F93CDD}
64位元 · MSI · 所有使用者 · en-US
靜默安裝
msiexec /i MakeMeAdmin-2.4.1-x64-en-us.msi /qn /norestart寫入記錄檔
msiexec /i MakeMeAdmin-2.4.1-x64-en-us.msi /qn /norestart /l*v "%TEMP%\make-me-admin-install.log"解除安裝
msiexec /x {6D652DD4-EF5F-4602-B657-40610F144E2F} /qn /norestart- MSI產品代碼
- {6D652DD4-EF5F-4602-B657-40610F144E2F}
- 解除安裝登錄機碼
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{6D652DD4-EF5F-4602-B657-40610F144E2F}
- UpgradeCode
- {9C690479-3987-48A8-8BDA-118EF1F93CDD}
64位元 · MSI · 所有使用者 · fr
靜默安裝
msiexec /i MakeMeAdmin-2.4.1-x64-fr.msi /qn /norestart寫入記錄檔
msiexec /i MakeMeAdmin-2.4.1-x64-fr.msi /qn /norestart /l*v "%TEMP%\make-me-admin-install.log"解除安裝
msiexec /x {06D35639-D6A2-469C-9889-BE4B4F7E2F4A} /qn /norestart- MSI產品代碼
- {06D35639-D6A2-469C-9889-BE4B4F7E2F4A}
- 解除安裝登錄機碼
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{06D35639-D6A2-469C-9889-BE4B4F7E2F4A}
- UpgradeCode
- {9C690479-3987-48A8-8BDA-118EF1F93CDD}
PowerShell:下載、驗證、安裝
下載官方檔案,驗證SHA256後靜默安裝。
install-make-me-admin.ps1
$url = 'https://github.com/pseymour/MakeMeAdmin/releases/download/v2.4.1/MakeMeAdmin-2.4.1-x64-da.msi'
$sha256 = 'D1A1D19D046311F78F048D1B70ABA82B1E4B671741A0C86123265A4B03368250'
$file = Join-Path $env:TEMP 'MakeMeAdmin-2.4.1-x64-da.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-make-me-admin.ps1
$url = 'https://github.com/pseymour/MakeMeAdmin/releases/download/v2.4.1/MakeMeAdmin-2.4.1-x64-de.msi'
$sha256 = 'D525B9BC5CF54ADD14BB25667180924E3A0098CD087F2D8BE14053887666669C'
$file = Join-Path $env:TEMP 'MakeMeAdmin-2.4.1-x64-de.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-make-me-admin.ps1
$url = 'https://github.com/pseymour/MakeMeAdmin/releases/download/v2.4.1/MakeMeAdmin-2.4.1-x64-en-us.msi'
$sha256 = '851A52A62FF0CC7C780BC63A8D1A7DF2D2572CD9A74D038EDB9D9C278649E82D'
$file = Join-Path $env:TEMP 'MakeMeAdmin-2.4.1-x64-en-us.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-make-me-admin.ps1
$url = 'https://github.com/pseymour/MakeMeAdmin/releases/download/v2.4.1/MakeMeAdmin-2.4.1-x64-fr.msi'
$sha256 = '962D7E07CD1937A0E9B69728CD66B63F76A8D60556BF14EA99850AD554C7AE4E'
$file = Join-Path $env:TEMP 'MakeMeAdmin-2.4.1-x64-fr.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