Solutions
Device management
Remotely manage, and protect laptops and mobile devices.
Orchestration
Automate tasks across devices, from app installs to scripts.
Software management
Inventory, patch, and manage installed software.
Infrastructure as code
See every change, undo any error, repeat every success.
Deployment
Run Fleet the way that fits your team.
Extend Fleet
Integrate your favorite tools with Fleet.
More
Device management
Remotely manage, and protect laptops and mobile devices.
Orchestration
Automate tasks across devices, from app installs to scripts.
Software management
Inventory, patch, and manage installed software.
Infrastructure as code
See every change, undo any error, repeat every success.
Deployment
Run Fleet the way that fits your team.
Extend Fleet
Integrate your favorite tools with Fleet.
Windows | 3.0.23
VLC media player is a free and open-source media player software.
To install VLC media player on your work computer:
Don’t see VLC media player or the Fleet Desktop icon? Send a link to this page to your IT team.
Run the following script in Powershell to uninstall VLC media player:
# Attempts to locate VLC's product code from registry and uninstall it using msiexec
$displayName = "VLC media player"
$publisher = "VideoLAN"
$paths = @(
'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall',
'HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall',
'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall',
'HKCU:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall'
)
$productCode = $null
foreach ($p in $paths) {
$items = Get-ChildItem -Path $p -ErrorAction SilentlyContinue | ForEach-Object {
Get-ItemProperty $_.PSPath -ErrorAction SilentlyContinue
} | Where-Object {
$_.DisplayName -and ($_.DisplayName -eq $displayName -or $_.DisplayName -like "$displayName*") -and ($publisher -eq "" -or $_.Publisher -eq $publisher) -and $_.PSChildName -match '^{[A-F0-9]{8}-[A-F0-9]{4}-[A-F0-9]{4}-[A-F0-9]{4}-[A-F0-9]{12}}$'
}
if ($items) {
$productCode = ($items | Select-Object -First 1).PSChildName
break
}
}
if (-not $productCode) {
Write-Host "Product code not found for $displayName"
Exit 1
}
Write-Host "Found product code: $productCode"
Write-Host "Attempting to uninstall using msiexec..."
$timeoutSeconds = 300 # 5 minute timeout
try {
$process = Start-Process msiexec -ArgumentList @("/quiet", "/x", $productCode, "/norestart") -PassThru -NoNewWindow
# Wait for process with timeout
$completed = $process.WaitForExit($timeoutSeconds * 1000)
if (-not $completed) {
Stop-Process -Id $process.Id -Force -ErrorAction SilentlyContinue
Write-Host "Uninstall timed out after $timeoutSeconds seconds"
Exit 1603 # ERROR_UNINSTALL_FAILURE
}
# Check exit code and output result
if ($process.ExitCode -eq 0) {
Write-Host "Uninstall successful"
Exit 0
} else {
Write-Host "Uninstall failed with exit code: $($process.ExitCode)"
Exit $process.ExitCode
}
} catch {
Write-Host "Error running uninstaller: $_"
Exit 1
}
Run this query in Fleet to find old versions of VLC media player across all your computers:
SELECT 1 FROM programs WHERE name = 'VLC media player' AND version <= '3.0.23';