locked
Remove Software by PowerShell RRS feed

  • Question

  • Hi Guys,

    I create PowerShell Script to remove software but always show ReturnValue : 1603

    I'm Domain admin , so my permission is Highest authority , I try use admin account and run as administrator but all show 1603.

    Remove PC's OS is Win10-1903. WinRM is Open.

    Is the Pulse this software problem?

    How to solve it? Thanks!

    My Script :

    ###################

    $Date = (Get-Date).ToString("yyyMMdd-HHmm")

    $computers = @(Get-Content 'C:\Test\testmchines.txt')
    foreach ($computer in $computers){
        $Obj = New-Object PSCustomObject -Property @{ComputerName=$computer;TestExists=$false;Uninstalled=$false}

        $Test = Get-WMIObject -Class Win32_Product -Filter "Name Like '%Pulse Secure%'" -ComputerName $computer

        if ($Test){
            $Obj.TestExists = $true
            $result = $Test.Uninstall()
            if ($result -eq 0) {
                $Obj.Uninstalled = $true
            }
        }

        $Obj | Export-Csv D:\pcwork\pulse_$Date.csv -NoTypeInformation -Encoding UTF8
    }


    Hi I can't to find solution for solve this issue, I have Event 364 Source File: /Content/1B/DCD02B975BCC454188A2BB1F036E3E590C25641B.exe Destination File: D:\WSUS\WsusContent\1B\DCD02B975BCC454188A2BB1F036E3E590C25641B.exe But I don't know how to deline this KB Number..

    Wednesday, June 10, 2020 2:15 AM

All replies

  • PS C:\scripts> net helpmsg 1603
    
    Fatal error during installation.
    

    The software cannot be uninstalled.  Contact the vendor for help.


    \_(ツ)_/

    Wednesday, June 10, 2020 2:30 AM
  • Hi,
    Was your issue resolved? 
    If you resolved it using our solution, please "mark it as answer" to help other community members find the helpful reply quickly.
    If you resolve it using your own solution, please share your experience and solution here. It will be very beneficial for other community members who have similar questions.
    If no, please reply and tell us the current situation in order to provide further help.
    Best Regards,
    Yang Yang

    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Friday, July 3, 2020 3:33 AM