Forum Discussion
oryxway
Nov 09, 2023Iron Contributor
Scheduled Task and WMIC script through Intune
Can I run a WMIC script to uninstall forticlient using scheduled task through Intune. This is the command
$command = 'wmic product where "name like ''Forti%%''" call uninstall /nointeractive'
Invoke-Expression -Command $command
- rahuljindal-MVPBronze ContributorCan you, absolutely. Should you, that is another thing. Why SC? Why wmic for uninstallation?
- Luke FranzelasCopper Contributor
rahuljindal-MVP
Because despite setting up the msiexec uninstall command as required, it does not work, and the error code isn't on the list in the Microsoft Help and my users don't have permissions to remove apps on their own.- rahuljindal-MVPBronze Contributor