Trying to clear Chrome cache and cookies using Intune

%3CLINGO-SUB%20id%3D%22lingo-sub-2018968%22%20slang%3D%22en-US%22%3ETrying%20to%20clear%20Chrome%20cache%20and%20cookies%20using%20Intune%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2018968%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20guys!%20First%20time%20posting%20because%20I%20am%20at%20a%20loss%20and%20am%20trying%20to%20figure%20out%20how%20to%20do%20this.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20need%20to%20clear%20the%20Cache%20and%20Cookies%20for%20Google%20Chrome%20on%20the%20computers%20on%20a%20schedule.%20I%20have%20Intune%20deployed%20on%20all%20of%20them%2C%20but%20I%20can%20not%20for%20the%20life%20of%20me%20find%20a%20way.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20reason%20behind%20this%20is%20needing%20to%20clear%20them%20for%20the%20sake%20of%20our%20call%20center%20software%20that%20gets%20a%20bit%20clogged%20up%20when%20the%20cache%20grows%20to%20big.%20It's%20just%20one%20troubleshooting%20step%20for%20a%20bigger%20problem.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDoes%20anyone%20know%20of%20a%20way%20that%20I%20can%20clear%20the%20cache%20from%20chrome%20using%20intune%20on%20a%20schedule%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2018968%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EChrome%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EIntune%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMobile%20Device%20Management%20(MDM)%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2028496%22%20slang%3D%22en-US%22%3ERe%3A%20Trying%20to%20clear%20Chrome%20cache%20and%20cookies%20using%20Intune%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2028496%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F805922%22%20target%3D%22_blank%22%3E%40GreenixIT%3C%2FA%3E%26nbsp%3BYou%20can%20make%20use%20of%20the%20Google%20Chrome%20ADMX%20files%20and%20ingest%20them%20in%20Intune%20(%3CA%20href%3D%22https%3A%2F%2Fwww.inthecloud247.com%2Fmanage-google-chrome-settings-with-microsoft-intune%2F%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3ERead%20more%3C%2FA%3E)(%3CA%20href%3D%22https%3A%2F%2Fhmaslowski.com%2Fhome%2Ff%2Fmanage-google-chrome-browser-with-microsoft-endpoint-manager%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EReadMore%3C%2FA%3E)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20second%20option%20would%20be%20to%20create%20a%20scheduled%20task%20(via%20PowerShell%20script%20or%20MSI)%20that%20kicks%20off%20a%20script%20that%20loops%20through%20all%20profiles%20deleting%20the%20cache%20and%20cookie%20folders.%20(not%20recommended)%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2030318%22%20slang%3D%22en-US%22%3ERe%3A%20Trying%20to%20clear%20Chrome%20cache%20and%20cookies%20using%20Intune%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2030318%22%20slang%3D%22en-US%22%3EHi%20GreenixIT%2C%3CBR%20%2F%3E%3CBR%20%2F%3EAs%20just%20Jan%20mentioned%2C%20there%20are%20different%20ways%20to%20do%20it.%20I%20have%20dome%20it%20before%20with%20Intune%20PowerShell%20scripts%20using%20below-%3CBR%20%2F%3E%3CBR%20%2F%3EHope%20this%20helps!%3CBR%20%2F%3EMoe%3CBR%20%2F%3E%3CBR%20%2F%3E%24Items%20%3D%20%40('Archived%20History'%2C%3CBR%20%2F%3E'Cache%5C*'%2C%3CBR%20%2F%3E'Cookies'%2C%3CBR%20%2F%3E'History'%2C%3CBR%20%2F%3E'Login%20Data'%2C%3CBR%20%2F%3E'Top%20Sites'%2C%3CBR%20%2F%3E'Visited%20Links'%2C%3CBR%20%2F%3E'Web%20Data')%3CBR%20%2F%3E%24Folder%20%3D%20%22%24(%24env%3ALOCALAPPDATA)%5CGoogle%5CChrome%5CUser%20Data%5CDefault%22%3CBR%20%2F%3E%24Items%20%7C%20%25%20%7B%3CBR%20%2F%3Eif%20(Test-Path%20%22%24Folder%5C%24_%22)%20%7B%3CBR%20%2F%3ERemove-Item%20%22%24Folder%5C%24_%22%3CBR%20%2F%3E%7D%3CBR%20%2F%3E%7D%3C%2FLINGO-BODY%3E
New Contributor

Hi guys! First time posting because I am at a loss and am trying to figure out how to do this. 

 

I need to clear the Cache and Cookies for Google Chrome on the computers on a schedule. I have Intune deployed on all of them, but I can not for the life of me find a way. 

 

The reason behind this is needing to clear them for the sake of our call center software that gets a bit clogged up when the cache grows to big. It's just one troubleshooting step for a bigger problem. 

 

Does anyone know of a way that I can clear the cache from chrome using intune on a schedule?

2 Replies

@GreenixIT You can make use of the Google Chrome ADMX files and ingest them in Intune (Read more)(ReadMore)

 

The second option would be to create a scheduled task (via PowerShell script or MSI) that kicks off a script that loops through all profiles deleting the cache and cookie folders. (not recommended)

Hi GreenixIT,

As just Jan mentioned, there are different ways to do it. I have dome it before with Intune PowerShell scripts using below-

Hope this helps!
Moe

$Items = @('Archived History',
'Cache\*',
'Cookies',
'History',
'Login Data',
'Top Sites',
'Visited Links',
'Web Data')
$Folder = "$($env:LOCALAPPDATA)\Google\Chrome\User Data\Default"
$Items | % {
if (Test-Path "$Folder\$_") {
Remove-Item "$Folder\$_"
}
}