-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathWin 10 Enable Secure Microsoft Edge Settings.bat
141 lines (135 loc) · 5.84 KB
/
Win 10 Enable Secure Microsoft Edge Settings.bat
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
:checkPrivileges
NET FILE 1>NUL 2>NUL
if '%errorlevel%' == '0' ( goto gotPrivileges ) else ( goto getPrivileges )
:getPrivileges
if '%1'=='ELEV' (echo ELEV & shift /1 & goto gotPrivileges)
setlocal DisableDelayedExpansion
set "batchPath=%~0"
setlocal EnableDelayedExpansion
ECHO Set UAC = CreateObject^("Shell.Application"^) > "%temp%\OEgetPrivileges.vbs"
ECHO args = "ELEV " >> "%temp%\OEgetPrivileges.vbs"
ECHO For Each strArg in WScript.Arguments >> "%temp%\OEgetPrivileges.vbs"
ECHO args = args ^& strArg ^& " " >> "%temp%\OEgetPrivileges.vbs"
ECHO Next >> "%temp%\OEgetPrivileges.vbs"
ECHO UAC.ShellExecute "!batchPath!", args, "", "runas", 1 >> "%temp%\OEgetPrivileges.vbs"
"%SystemRoot%\System32\WScript.exe" "%temp%\OEgetPrivileges.vbs" %*
exit /B
:gotPrivileges
if '%1'=='ELEV' shift /1
setlocal & pushd .
cd /d %~dp0
:START
@ECHO off
for /f "delims= " %%a in ('"wmic useraccount where name='%username%' get sid"') do (
if not "%%a"=="SID" (
set myvar=%%a
goto :loop_end
)
)
set myvar2=""
:loop_end
set "line01=Windows Registry Editor Version 5.00"
set "line02= "
set "line03=[HKEY_USERS\%myvar%\SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Storage\microsoft.microsoftedge_8wekyb3d8bbwe\MicrosoftEdge\Main]"
set "line04="Cookies"=dword:00000001"
set "line05= "
set "line06=[HKEY_USERS\%myvar%_Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Storage\microsoft.microsoftedge_8wekyb3d8bbwe\MicrosoftEdge\Main]"
set "line07="Cookies"=dword:00000001"
set "line08= "
set "line09=[HKEY_USERS\%myvar%\SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Storage\microsoft.microsoftedge_8wekyb3d8bbwe\MicrosoftEdge\ServiceUI]"
set "line10="EnableCortana"=dword:00000000"
set "line11= "
set "line12=[HKEY_USERS\%myvar%_Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Storage\microsoft.microsoftedge_8wekyb3d8bbwe\MicrosoftEdge\ServiceUI]"
set "line13="EnableCortana"=dword:00000000"
set "line14= "
set "line15=[HKEY_USERS\%myvar%\SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Storage\microsoft.microsoftedge_8wekyb3d8bbwe\MicrosoftEdge\Addons]"
set "line16="FlashPlayerEnabled"=dword:00000000"
set "line17= "
set "line18=[HKEY_USERS\%myvar%_Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Storage\microsoft.microsoftedge_8wekyb3d8bbwe\MicrosoftEdge\Addons]"
set "line19="FlashPlayerEnabled"=dword:00000000"
set "line20= "
set "line21=[HKEY_USERS\%myvar%\SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Storage\microsoft.microsoftedge_8wekyb3d8bbwe\MicrosoftEdge\User\Default\SearchScopes]"
set "line22="ShowSearchSuggestionsGlobal"=dword:00000000"
set "line23= "
set "line24=[HKEY_USERS\%myvar%_Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Storage\microsoft.microsoftedge_8wekyb3d8bbwe\MicrosoftEdge\User\Default\SearchScopes]"
set "line25="ShowSearchSuggestionsGlobal"=dword:00000000"
set "line26= "
set "line27=[HKEY_USERS\%myvar%\SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Storage\microsoft.microsoftedge_8wekyb3d8bbwe\MicrosoftEdge\ContinuousBrowsing]"
set "line28="Enabled"=dword:00000001"
set "line29= "
set "line30=[HKEY_USERS\%myvar%_Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Storage\microsoft.microsoftedge_8wekyb3d8bbwe\MicrosoftEdge\ContinuousBrowsing]"
set "line31="Enabled"=dword:00000001"
set "line32= "
set "line33=[HKEY_USERS\%myvar%\SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Storage\microsoft.microsoftedge_8wekyb3d8bbwe\MicrosoftEdge\ServiceUI]"
set "line34="NewTabPageDisplayOption"=dword:00000002"
set "line35= "
set "line36=[HKEY_USERS\%myvar%_Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Storage\microsoft.microsoftedge_8wekyb3d8bbwe\MicrosoftEdge\ServiceUI]"
set "line37="NewTabPageDisplayOption"=dword:00000002"
set "line38= "
set "line39=[HKEY_USERS\%myvar%\SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Storage\microsoft.microsoftedge_8wekyb3d8bbwe\MicrosoftEdge\Main]"
set "line40="FormSuggest Passwords"="no""
set "line41= "
set "line42=[HKEY_USERS\%myvar%_Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Storage\microsoft.microsoftedge_8wekyb3d8bbwe\MicrosoftEdge\Main]"
set "line43="FormSuggest Passwords"="no""
set "line44= "
set "line45=[HKEY_USERS\%myvar%\SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Storage\microsoft.microsoftedge_8wekyb3d8bbwe\MicrosoftEdge\Extensions]"
set "line46="EnableExtensionDevelopment"=dword:00000001"
set "line47= "
set "line48=[HKEY_USERS\%myvar%_Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Storage\microsoft.microsoftedge_8wekyb3d8bbwe\MicrosoftEdge\Extensions]"
set "line49="EnableExtensionDevelopment"=dword:00000001"
set "line50= "
setlocal EnableDelayedExpansion
(
echo !line01!
echo/
echo !line03!
echo !line04!
echo/
echo !line06!
echo !line07!
echo/
echo !line09!
echo !line10!
echo/
echo !line12!
echo !line13!
echo/
echo !line15!
echo !line16!
echo/
echo !line18!
echo !line19!
echo/
echo !line21!
echo !line22!
echo/
echo !line24!
echo !line25!
echo/
echo !line27!
echo !line28!
echo/
echo !line30!
echo !line31!
echo/
echo !line33!
echo !line34!
echo/
echo !line36!
echo !line37!
echo/
echo !line39!
echo !line40!
echo/
echo !line42!
echo !line43!
echo/
echo !line45!
echo !line46!
echo/
echo !line48!
echo !line49!
echo/
) > "Win 10 Edge sichere Einstellungen.reg"
REGEDIT.EXE /S "%~dp0Win 10 Edge sichere Einstellungen.reg"
del /F /Q "%~dp0Win 10 Edge sichere Einstellungen.reg"