Commit 81b81ce 1 parent f42e3b9 commit 81b81ce Copy full SHA for 81b81ce
File tree 1 file changed +14
-2
lines changed
1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -4,8 +4,6 @@ echo Author: Rin Minase
4
4
echo Commpany: Minase Conglomerate
5
5
echo .
6
6
echo .
7
- echo Compressing " Windows\WinSxS" or the Windows Side-by-Side Folder
8
- echo .
9
7
echo Preparing compression algorithm in 10 seconds
10
8
timeout /t 10 /nobreak
11
9
@@ -28,6 +26,20 @@ icacls "%windir%" /restore "%windir%\winsxs.acl" /c
28
26
29
27
del " %windir% \winsxs.acl"
30
28
29
+
30
+ icacls " %windir% \System32\DriverStore\FileRepository" /save " %windir% \FileRepository.acl" /t /c
31
+
32
+ takeown /f " %windir% \System32\DriverStore\FileRepository" /r
33
+
34
+ icacls " %windir% \System32\DriverStore\FileRepository" /grant " %userdomain% \%username% " :(F) /t /c
35
+
36
+ compact /c /s:" %windir% \System32\DriverStore\FileRepository" /a /i /f
37
+
38
+ icacls " %windir% \System32\DriverStore" /restore " %windir% \FileRepository.acl" /c
39
+
40
+ del " %windir% \FileRepository.acl"
41
+
42
+
31
43
sc config msiserver start= demand
32
44
sc config TrustedInstaller start= demand
33
45
You can’t perform that action at this time.
0 commit comments