AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Avg clear cash command2/24/2023 ![]() ![]() Like this (assuming Windows Vista or higher):įor /d %%b in (%SystemDrive%\Users\*) do del /Q "%%b\AppData\Local\Google\User Data\Default\cache\*"īut, that only works in the case that there is only one Chrome user set up and it's using the Default profile. ![]() If you want to clear the cache in all user profiles, you'd want to use a For statement. "f you run a script using %userprofile% under GFI that will be filled in with "C:\Windows\system32\config\systemprofile" as the GFI scripts get run under the LocalSystem account. I actually was reading up on other fourms where they give this advice, but I am unable to apply it as my scripting knowledge is weak: Can this script be altered to overcome this hurdle? My problem is that if I used an RMM tool such as AVG/AVAST Managed Workplace or GFI Max Focus, to run my script, the %USERNAME% variable of my script gets the LocalSystem user profile and the script hangs, as opposed to getting the names of the actual human users who have user profiles on the target machine. ![]() Set ChromeDataDir=C:\Users\%USERNAME%\Local Settings\Application Data\Google\Chrome\User Data\Default Set ChromeDataDir=C:\Users\%USERNAME%\AppData\Local\Google\Chrome\User Data\Default The script closes any open instances of Google Chrome in Windows OS and deletes all cached files the Chrome web-browser has created for that Windows user who has executed the script. I have successfully tested a script (batch file) by local execution. ![]()
0 Comments
Read More
Leave a Reply. |