Bhavin78
IS-IT--Management
- Oct 26, 2004
- 320
How TO Delete Internet Temporary Files using Group Policy or Script?
I would prefer to use AD Group Policy, if thats not possible what's the VB script I can use to put in logoff script?
I tried below script but, it's not working
On Error Resume Next
Dim WSHShell, WSHNetwork, objDomain, DomainString, UserString, UserObj, Path
Set WSHShell = CreateObject("WScript.Shell")
Set WSHNetwork = CreateObject("WScript.Network")
Dim tempiepath
tempiepath = "HKCU\Software\Microsoft\Windows\"
WSHShell.RegWrite tempiepath & "ShellNoRoam\MUICache\@inetcplc.dll,-4750","Empty Temporary Internet Files folder when browser is closed","REG_SZ"
WSHShell.RegWrite tempiepath & "CurrentVersion\Internet Settings\Cache\Persistent","0","REG_DWORD"
Set tempiepath = nothing
I would prefer to use AD Group Policy, if thats not possible what's the VB script I can use to put in logoff script?
I tried below script but, it's not working
On Error Resume Next
Dim WSHShell, WSHNetwork, objDomain, DomainString, UserString, UserObj, Path
Set WSHShell = CreateObject("WScript.Shell")
Set WSHNetwork = CreateObject("WScript.Network")
Dim tempiepath
tempiepath = "HKCU\Software\Microsoft\Windows\"
WSHShell.RegWrite tempiepath & "ShellNoRoam\MUICache\@inetcplc.dll,-4750","Empty Temporary Internet Files folder when browser is closed","REG_SZ"
WSHShell.RegWrite tempiepath & "CurrentVersion\Internet Settings\Cache\Persistent","0","REG_DWORD"
Set tempiepath = nothing