-
Notifications
You must be signed in to change notification settings - Fork 3
/
postprocess.bat
75 lines (65 loc) · 2.91 KB
/
postprocess.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
cd %~dp0/Mount/Install/1
attrib +r "Game Files"
attrib +r "Program Files"
attrib +r "Program Files (x86)"
attrib -h "ProgramData"
attrib +r "ProgramData"
attrib +h "ProgramData"
attrib +r "Windows"
attrib +r "Users"
attrib -h "Users/Public"
attrib +r "Users/Public"
attrib +h "Users/Public"
attrib -h "Users/Default"
attrib +r "Users/Default"
attrib +h "Users/Default"
attrib +h "Users/Default/Links"
attrib -h "Users/Default/AppData"
attrib +r "Users/Default/AppData"
attrib +h "Users/Default/NTUSER.DAT"
takeown /F ".\Program Files\ModifiableWindowsApps"
echo Y| cacls "Program Files/ModifiableWindowsApps" /p Administrators:f
takeown /F ".\Program Files\WindowsApps"
echo Y| cacls "Program Files/WindowsApps" /p Administrators:f
attrib -h -s "Program Files/Windows Sidebar"
attrib -h -s "Program Files (x86)/Windows Sidebar"
attrib +h "Program Files/Common Files"
attrib +h "Program Files/ModifiableWindowsApps"
attrib +h "Program Files/PowerShell"
attrib +h "Program Files/Windows Defender"
attrib +h "Program Files/Windows NT"
attrib +s +h "Program Files/Windows Sidebar"
attrib +h "Program Files/WindowsApps"
attrib +h "Program Files/WindowsPowerShell"
attrib +h "Program Files (x86)/Common Files"
attrib +h "Program Files (x86)/Microsoft"
attrib +h "Program Files (x86)/Microsoft.NET"
attrib +h "Program Files (x86)/PowerShell"
attrib +h "Program Files (x86)/Windows Defender"
attrib +h "Program Files (x86)/Windows NT"
attrib +s +h "Program Files (x86)/Windows Sidebar"
attrib +h "Program Files (x86)/WindowsPowerShell"
attrib +s +h "Game Files/desktop.ini"
attrib +s +h "Program Files/desktop.ini"
attrib +s +h "Program Files (x86)/desktop.ini"
attrib +s +h "ProgramData/desktop.ini"
attrib +s +h "ProgramData/Microsoft/Windows/Start Menu/Programs/desktop.ini"
attrib +s +h "Users/desktop.ini"
attrib +s +h "Users/Default/desktop.ini"
attrib +s +h "Users/Default/AppData/desktop.ini"
attrib +s +h "Users/Public/desktop.ini"
attrib +s +h "Windows/desktop.ini"
takeown /R /F ".\Program Files (x86)\Internet Explorer"
echo Y| cacls "Program Files (x86)/Internet Explorer" /p Administrators:f
rmdir /S /Q "PerfLogs"
rmdir /S /Q "Program Files (x86)/Internet Explorer"
rmdir /S /Q "Users/Default/AppData/Roaming/Microsoft/Windows/Start Menu/Programs/Windows PowerShell"
move /Y "ProgramData\Microsoft\Windows\Start Menu\Programs\Administrative Tools" "Users\Default\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\"
rmdir /S /Q "ProgramData\Microsoft\Windows\Start Menu\Programs\Accessibility"
rmdir /S /Q "ProgramData\Microsoft\Windows\Start Menu\Programs\Accessories"
rmdir /S /Q "ProgramData\Microsoft\Windows\Start Menu\Programs\Maintenance"
rmdir /S /Q "ProgramData\Microsoft\Windows\Start Menu\Programs\Startup"
rmdir /S /Q "ProgramData\Microsoft\Windows\Start Menu\Programs\System Tools"
rmdir /S /Q "ProgramData\Microsoft\Windows\Start Menu\Programs\Windows PowerShell"
rmdir /S /Q "ProgramData\Microsoft\Windows\Start Menu\Programs\PowerShell"
pause