Script to clear all browser cache

Comments

1 comment

  • Adrian Yong

    I found this on some script sites....but I cannot seem to deploy it via PDQ Deploy Enterprise.....the script works fine if run locally

    $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\$_"
    }
    }

    0
    Comment actions Permalink

Please sign in to leave a comment.