Forum Discussion
Uninstall application using intune
Hello,
I just gave it a try.
Detection rule
Rule type: file
C:\Program Files\Box\Box Sync
Detection method: file or folder exists.
Install command:
BoxSyncSetup.exe /install /quiet /norestart
Uninstall command:
MsiExec.exe /X{BFA57077-F78C-4B92-815E-7BCDA6B9686E}
the status message I get is "not installed" and box sync are not removed.
Might you be able to share the Agent logfile?
C:\ProgramData\Microsoft\IntuneManagementExtension\Logs\IntuneManagementExtension.log
seems like the detection rule does not work...
- AnonymousNov 20, 2018Correct, detection rule does not work.
<![LOG[[Win32App] Start detectionManager SideCarFileDetectionManager]LOG]!><time="12:01:09.3039743" date="11-20-2018" component="IntuneManagementExtension" context="" type="1" thread="3" file="">
<![LOG[[Win32App] Path doesn't exists: C:\Program Files\Box\Box Sync\Box Sync applicationDetected: False]LOG]!><time="12:01:09.3072059" date="11-20-2018" component="IntuneManagementExtension" context="" type="2" thread="3" file="">
<![LOG[[Win32App] Checked under Path: C:\Program Files\Box\Box Sync, filePath:C:\Program Files\Box\Box Sync\Box Sync, agent was checking under expanded: C:\Program Files\Box\Box Sync\Box Sync, applicationDetected: False]LOG]!><time="12:01:09.3079395" date="11-20-2018" component="IntuneManagementExtension" context="" type="1" thread="3" file="">
the path is correct c:\program files\box\box sync- Nov 20, 2018
It looks like your detection rule definition is wrong. The agent looks for C:\Program Files\Box\Box Sync\Box Sync.
I think this comes from the wrong entry in the field Path.
You should enter in Path: C:\Program Files\Box
and you should enter in File or folder: Box Sync
This will result in the full path: C:\Program Files\Box\Box Sync and not the wrong one from above.
best,
Oliver
- AnonymousNov 20, 2018Yes! it works :D
Thank you as always!
The only thing it did not was to remove the application icon but removed it from the system.