Uninstall Application using powershell script

I have written the PowerShell script to uninstall Application by getting uninstallString from registry the script works fine when executed from PowerShell but when I integrate it with uipath it does not get the uninstallString
I have set execution policy to remotesigned,then also facing the same issue

1 Like

Welcome to uipath community
May I know the error you were getting

when I run the Below code in powershell I get the uninstall string but when I integrate in Uipath it goes in else part

app=Get-ChildItem -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall | Get-ItemProperty | Where-Object {_.DisplayName -match “ActivePresenter”} |
Select-Object -Property UninstallString
Write-Host “Application Not found”}