Forum Discussion
RobYoung
Sep 23, 2021Iron Contributor
Cleanup Intune profiles and policies
We have come across an issue where a desktop support person was logging into each windows device that they were deploying which assigned them as the primary user on the device. I ran a script to swi...
Sep 24, 2021
Hi,
Hi, good morning
Intune profiles--> Windows profiles.. When a user logs in a device... and even when the user is removed the old profile just sits and stays there on the device...
If there is data in it you want to remove, create a powershell script which tries to find the specific user folder first... if it exists... it removes it... (as the userprofile also contains the policies/register settings.. they are also removed)
Or did I get the question wrong 🙂 ?
Hi, good morning
Intune profiles--> Windows profiles.. When a user logs in a device... and even when the user is removed the old profile just sits and stays there on the device...
If there is data in it you want to remove, create a powershell script which tries to find the specific user folder first... if it exists... it removes it... (as the userprofile also contains the policies/register settings.. they are also removed)
Or did I get the question wrong 🙂 ?
- RobYoungSep 24, 2021Iron ContributorI didnt think the user profile on the machine was associated with the intune Device Compliance, Device COnfig, and ES Config. I went ahead and pulled the previous user profile off the machine and performed a sync, but the policies and configurations are still applying.
- Sep 24, 2021It depends on what was configured..
Device policies...
User policies
Could you take a look at what registry keys are still present inside the policymanager registry key?- RobYoungSep 28, 2021Iron ContributorFigured out the best way to handle this. Delete the Windows Device from AAD and MEM and wait for it to re-sync. cleans up the any MEM policies and profiles. Just made it a practice for our desktop team to do this before they deploy new or redeploy any Windows device.