You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Delete all settings for Chrome or Edge for a specified user
5
+
6
+
.DESCRIPTION
7
+
This function will delete all of the Chrome or Edge settings for a specified user, it will also save the bookmarks to C:\Temp before deleting and restoring them after.
8
+
9
+
.PARAMETERComputer
10
+
If you want to delete the settings on a remote computer you need to specify the computer name here, not needed if you going to use it on a local computer.
11
+
12
+
.PARAMETERUserName
13
+
Write the username of the user that you want to delete the Edge or Chrome settings for.
14
+
15
+
.PARAMETEREdge
16
+
Use this switch if you want to delete the settings for Edge
17
+
18
+
.PARAMETERChrome
19
+
Use this switch if you want to delete the settings for Chrome
20
+
21
+
.PARAMETERListUsers
22
+
When using this switch it will only return all of the user profiles on the computer
23
+
24
+
.EXAMPLE
25
+
Remove-BrowserSettings -ListUsers
26
+
This will list all of the user profiles that are on the local computer
Write-Host"All $($BrowserProcess) are now stopped"-ForegroundColor Green
93
+
}
94
+
catch {
95
+
Write-Host"Something went wrong when trying to stopp $($BrowserProcess)"-ForegroundColor Red
96
+
Write-Host"$($PSItem.Exception.Message)"-ForegroundColor Red
97
+
Break
98
+
}
99
+
try {
100
+
Write-Host"Starting to delete all browser settings..."
101
+
102
+
# Deleting Chrome/Edge folder in the user profile but before that it copy the bookmarks to C:\Temp and then back to the correct folder so the bookmarks don't get lost.
0 commit comments