< Back

Remove-WebBrowserCachedData

Sun Jan 12, 2020 6:37 pm

NAME Remove-WebBrowserCachedData



SYNOPSIS

This will remove internet browers user data





SYNTAX

Remove-WebBrowserCachedData [[-BrowserType] <String[]>] [-WhatIf] [-Confirm] [<CommonParameters>]





DESCRIPTION

This script removes all of the user data stored by the browser/s, It first needs

to stop all of the current browser processes before it can remove the user data.

It will then attempt to remove all of the user data from the chosen browser/s.

This script will choose all three browsers if none are chosen from the BrowserType

parameter.





PARAMETERS

-BrowserType <String[]>

This parameter has three options Chrome, Firefox and IExplore. These can be entered

as an array seperated by commas as per the examples in this help.



Required? false

Position? 1

Default value @('Chrome','FireFox','IExplore')

Accept pipeline input? false

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Confirm [<SwitchParameter>]



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



NOTES





General notes

Created by: Brent Denny

Created on: 9 Aug 2019

Updated on: 12 Aug 2019



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Remove-WebBrowserCachedData



Deletes the user data from Chrome, Firefox and IE (the default targets all three browsers)









-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Remove-WebBrowserCachedData -BrowserType IExplore,Chrome



Deletes the user data from Chrome and IE only









-------------------------- EXAMPLE 3 --------------------------



PS C:\\>Remove-WebBrowserCachedData -BrowserType Chrome



Deletes the user data from Chrome only











RELATED LINKS