How to clear browser cache & cookies via Intune policy which will remove the cookies before no.of hours or days? Like I wanted to delete cache & cookies of before 3 days or last 48 hours or it should be cleared every that number of hours which we set in p

Vinod Survase 4,746 Reputation points
2024-03-04T12:58:59.97+00:00

How to clear browser cache & cookies via Intune policy which will remove the cookies before no.of hours or days? Like I wanted to delete cache & cookies of before 3 days or last 48 hours or it should be cleared every that number of hours which we set in policy.

Microsoft Intune Security
Microsoft Intune Security
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.Security: The precautions taken to guard against crime, attack, sabotage, espionage, or another threat.
435 questions
Microsoft Intune Configuration
Microsoft Intune Configuration
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.Configuration: The process of arranging or setting up computer systems, hardware, or software.
1,923 questions
Microsoft Intune Application management
Microsoft Intune Application management
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.Application management: The process of creating, configuring, managing, and monitoring applications.
960 questions
Microsoft Intune Enrollment
Microsoft Intune Enrollment
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.Enrollment: The process of requesting, receiving, and installing a certificate.
1,374 questions
Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
5,207 questions
{count} votes

1 answer

Sort by: Most helpful
  1. ZhoumingDuan-MSFT 13,735 Reputation points Microsoft Vendor
    2024-03-05T01:58:42.64+00:00

    @Vinod Survase,Thanks for posting in Q&A.

    From your description, I know you are looking for a way to clear browser cache & cookies via Intune.

    Based on my researching, there is no related feature in Intune can achieve this, however, we can create a script to clear browser cache & cookies.

    Here are some steps you can refer.

    1.Create a .ps1 file and upload into Intune.

    2.In the script settings page, configure as follows.

    User's image

    3.Assign it to user group and deploy it.

    Here is a link with detailed content of script.

    https://gist.github.com/mark05e/745afaf5604487b804ede2cdc38a977f

    Non-official, just for reference.

    Hope it will help.

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    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.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.