Commands for installing TfsCmdlets without prompts, removing it again and detecting it from deployment tools. A command is shown only when it is certain: from the manifest or the installer technology’s documented default.
Related guide: Silent install switches: MSI, NSIS, Inno Setup · Uninstall a program with the registry or PowerShell
With winget
PowerShell
winget install --id Igoravl.TfsCmdlets -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Igoravl.TfsCmdlets -e --silentwinget uninstall --id Igoravl.TfsCmdlets -e --silentBy installer
64-bit · MSI · Current user · en-US
Silent install
msiexec /i TfsCmdlets-2.11.0.msi /qn /norestartWrite a log
msiexec /i TfsCmdlets-2.11.0.msi /qn /norestart /l*v "%TEMP%\tfscmdlets-install.log"Uninstall
msiexec /x {3ABD5E6E-F5F6-4BCD-B4F0-340CDEA83A09} /qn /norestart- MSI product code
- {3ABD5E6E-F5F6-4BCD-B4F0-340CDEA83A09}
- Uninstall registry key
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{3ABD5E6E-F5F6-4BCD-B4F0-340CDEA83A09}
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-tfscmdlets.ps1
$url = 'https://github.com/igoravl/TfsCmdlets/releases/download/v2.11.0%2B4185.52/TfsCmdlets-2.11.0.msi'
$sha256 = 'BCA8E26B817229C6A8F0ACD385A73C63617B1C556455D577148EB4227A52884D'
$file = Join-Path $env:TEMP 'TfsCmdlets-2.11.0.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