Uninstall a program using powershell

 

This powershell script will allow you to uninstall a program using an executable file


Set-Location $PSScriptRoot;

$proc = (Start-Process -FilePath "install.exe" -ArgumentList "/Silent /Uninstall /noreboot" -Wait -PassThru);$proc.WaitForExit();$ExitCode = $proc.ExitCode

Exit($ExitCode)

Share on Google Plus

About Tom DeMeulenaere

Highly accomplished information technology professional with extensive knowledge in System Center Configuration Manager, Windows Server, SharePoint, and Office 365.
    Blogger Comment

0 comments:

Post a Comment

Note: Only a member of this blog may post a comment.