M
M
Max Maximov2014-03-12 10:27:54
Browsers
Max Maximov, 2014-03-12 10:27:54

How to clear the browser cache on a network with a domain?

Greetings!
There is a domain on Win2008R2, on 22 computers. Client machines are mainly on Win8x64 and Win7x64. All users sit on different browsers: Chrome, Opera, FireFox, IE.
All users automatically need to clear the cache, history, etc. when logging out.
Is it possible to automate this process with the help of domain policies? If there are no such difficulties with IE, then with other browsers I have no idea what to do.
At the moment I found a stub in the form of a batch file for Chrome:

pushd "%LOCALAPPDATA%\Google\Chrome\User Data\Default" 2>NUL && (

    set /p "=* Google Chrome... "<NUL
    call :kill chrome

    for /f "delims=" %%I in (
        'dir /b ^| find /v /i "bookmarks" ^| find /v /i "extension" ^| find /v /i "preferences"'
    ) do (
        if exist "%%~fI\" (
            rmdir /q /s "%%~fI"
        ) else del /f "%%~fI" >NUL
    )

    popd
    echo Done.
)

Which is launched through domain policies. But I noticed that it does not always work, and in some cases it simply does not work.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nikolai Turnaviotov, 2014-03-18
@foxmuldercp

chrome/ff/opera/etc are not corporate-controlled, so it's easier to put everyone behind IE10-11 and use group policies.
PS IE11 is very nice, I've been using it since January

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question