Menu

[ea00bd]: / util-winTricks / Clear-IECachedData.ps1  Maximize  Restore  History

Download this file

93 lines (75 with data), 2.1 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<#
.SYNOPSIS
Clears Internet Explorer Cached Data
.DESCRIPTION
A detailed description of the Clear-IECachedData function.
.PARAMETER AddOnSettings
Delete Files and Settings Stored by Add-Ons
.PARAMETER All
Delete All
.PARAMETER Cookies
Delete Cookies
.PARAMETER FormData
Delete Form Data
.PARAMETER History
Delete History
.PARAMETER Passwords
Delete Passwords
.PARAMETER PipelineVariable
A description of the PipelineVariable parameter.
.PARAMETER TempIEFiles
Delete Temporary Internet Files
.EXAMPLE 1
PS C:\> Clear-IECachedData -TempIEFiles
.EXAMPLE 2
PS C:\> Clear-IECachedData -Cookies
.EXAMPLE 3
PS C:\> Clear-IECachedData -History
.EXAMPLE 4
PS C:\> Clear-IECachedData -FormData
.EXAMPLE 5
PS C:\> Clear-IECachedData -Passwords
.EXAMPLE 6
PS C:\> Clear-IECachedData -All
.EXAMPLE 7
PS C:\> Clear-IECachedData -AddOnSettings
.NOTES
Feedback: Chendrayan.exchange@hotmail.com
#>
function Clear-IECachedData
{
[CmdletBinding(ConfirmImpact = 'None')]
param
(
[Parameter(Mandatory = $false,
HelpMessage = ' Delete Temporary Internet Files')]
[switch]
$TempIEFiles,
[Parameter(HelpMessage = 'Delete Cookies')]
[switch]
$Cookies,
[Parameter(HelpMessage = 'Delete History')]
[switch]
$History,
[Parameter(HelpMessage = 'Delete Form Data')]
[switch]
$FormData,
[Parameter(HelpMessage = 'Delete Passwords')]
[switch]
$Passwords,
[Parameter(HelpMessage = 'Delete All')]
[switch]
$All,
[Parameter(HelpMessage = 'Delete Files and Settings Stored by Add-Ons')]
[switch]
$AddOnSettings
)
if ($TempIEFiles) { RunDll32.exe InetCpl.cpl, ClearMyTracksByProcess 8}
if ($Cookies) { RunDll32.exe InetCpl.cpl, ClearMyTracksByProcess 2}
if ($History) { RunDll32.exe InetCpl.cpl, ClearMyTracksByProcess 1}
if ($FormData) { RunDll32.exe InetCpl.cpl, ClearMyTracksByProcess 16}
if ($Passwords) { RunDll32.exe InetCpl.cpl, ClearMyTracksByProcess 32 }
if ($All) { RunDll32.exe InetCpl.cpl, ClearMyTracksByProcess 255}
if ($AddOnSettings) { RunDll32.exe InetCpl.cpl, ClearMyTracksByProcess 4351 }
}
Clear-IECachedData -Cookies
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.