Forum Discussion
GreenixIT
Dec 28, 2020Copper Contributor
Trying to clear Chrome cache and cookies using Intune
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 Intu...
Moe_Kinani
Jan 04, 2021Bronze Contributor
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\$_"
}
}
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\$_"
}
}