question

JoeH-0944 avatar image
0 Votes"
JoeH-0944 asked EswarKoneti-MVP commented

Detection rule for Intune per-user win32 app install

What do you usually use for a detection rule for a win32 application that installs using user install behavior into the user's profile? I tried looking for a file using %localappdata%, but even though the application was installed in the currently logged in user's profile, Intune resolved %localappdata% to the system profile (C:\Windows\system32\config\systemprofile).

mem-intune-application-management
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi,
you can try to use the following syntax for per-user app detection method:

C:\users\%username%\AppData\Local\yammerdesktop

you can refer this blog post for more information https://systemcenterdudes.com/endpoint-manager-yammer-app/

Regards,
Eswar
www.eskonr.com
If the response is helpful, please click "Accept Answer" and upvote it.

0 Votes 0 ·

1 Answer

Crystal-MSFT avatar image
0 Votes"
Crystal-MSFT answered Crystal-MSFT commented

@JoeH-0944, For the detection rule, we can choose either of MSI, File, Registry. Any one can work. We can see more details in the following link:
https://docs.microsoft.com/en-us/mem/intune/apps/apps-win32-add#step-4-detection-rules

From your description, I know the variable did not point eh user you want. This is because when the detection method runs, it will run in the SYSTEM context..at which point the variable means nothing because the system is the "logged on" user. A similar issue in the following link:
https://social.technet.microsoft.com/Forums/en-US/3fd796c4-45f0-42cf-bc3d-bccd6caf73a8/detection-method-using-userprofile-in-the-path?forum=configmanagerapps

Given the situation, we suggest to try other method like registry.

Hope it can help.


If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@JoeH-0944,, How's everything going? If there's any update on our issue, feel free to let us know.

0 Votes 0 ·