Forum Discussion
FSLogix and Intune
It sounds like there might be some inconsistency between the information stored in the FSLogix profile and the actual state of the AVD machine as managed by Intune. One potential solution is to configure FSLogix to perform a cleanup of stale entries during logon or logoff.
You can configure FSLogix to clean up stale entries by modifying the "Profile Container" settings in the FSLogix configuration file (i.e., fslogix\ProfileContainer\ProfileContainerOffice365.xml). Specifically, you can set the "CleanupStaleUserDirectoriesOnLogoff" parameter to "true" to enable automatic cleanup of stale user directories during logoff.
Another potential solution is to use a PowerShell script to perform a cleanup of stale entries. The script could be configured to run at logon or logoff and could check for any discrepancies between the information stored in the FSLogix profile and the actual state of the AVD machine as managed by Intune. If any discrepancies are found, the script could remove the stale entries from the Start menu and taskbar.
To further troubleshoot the issue, you may want to check the event logs on the AVD machines and in the Intune console to see if there are any errors or warnings related to the deployment and removal of apps.
- Rajender_Singh_RawatMar 09, 2023Copper ContributorThank you for your response, Varun.
is it possible to share the exact steps to achieve this?- Varun_GhildiyalMar 09, 2023Iron Contributor
You want me to share powershell script with you , which can be run at scheduled log on?
- Rajender_Singh_RawatMar 09, 2023Copper Contributoryes, if you can please.
I tried a couple of scripts but they do not seem to be working.