Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
dheerajbhaskar committed Nov 8, 2016
0 parents commit bfebce3
Show file tree
Hide file tree
Showing 25 changed files with 1,238 additions and 0 deletions.
28 changes: 28 additions & 0 deletions Clean Win10 Start menu/1. BeforeLogoff.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
: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
xcopy /Y "%~dp0LayoutModification.xml" "C:\"
cd %~dp0
LGPO.exe /u "%~dp0\registry.pol"
51 changes: 51 additions & 0 deletions Clean Win10 Start menu/2. AfterLogin.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
: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
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\Policies\Microsoft\Windows\Explorer]"
set "line04="LockedStartLayout"=dword:00000000"
set "line05= "

setlocal EnableDelayedExpansion
(
echo !line01!
echo/
echo !line03!
echo !line04!
echo/

) > "Win 10 LayoutModification.reg"
REGEDIT.EXE /S "%~dp0Win 10 LayoutModification.reg"
del /F /Q "%~dp0Win 10 LayoutModification.reg"
del /F /Q "C:\LayoutModification.xml"
Binary file added Clean Win10 Start menu/LGPO.exe
Binary file not shown.
29 changes: 29 additions & 0 deletions Clean Win10 Start menu/LayoutModification.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<LayoutModificationTemplate Version="1" xmlns="http://schemas.microsoft.com/Start/2014/LayoutModification">
<LayoutOptions StartTileGroupCellWidth="6" />
<DefaultLayoutOverride>
<StartLayoutCollection>
<defaultlayout:StartLayout GroupCellWidth="6" xmlns:defaultlayout="http://schemas.microsoft.com/Start/2014/FullDefaultLayout">
<start:Group Name="Alles auf einen Blick" xmlns:start="http://schemas.microsoft.com/Start/2014/StartLayout">
<start:Tile Size="2x2" Column="4" Row="0" AppUserModelID="microsoft.windowscommunicationsapps_8wekyb3d8bbwe!microsoft.windowslive.calendar" />
<start:Tile Size="4x2" Column="0" Row="0" AppUserModelID="microsoft.windowscommunicationsapps_8wekyb3d8bbwe!microsoft.windowslive.mail" />
<start:Tile Size="4x2" Column="2" Row="2" AppUserModelID="Microsoft.MicrosoftEdge_8wekyb3d8bbwe!MicrosoftEdge" />
<start:Tile Size="4x4" Column="2" Row="4" AppUserModelID="Microsoft.BingWeather_8wekyb3d8bbwe!App" />
<start:DesktopApplicationTile Size="2x2" Column="0" Row="8" DesktopApplicationLinkPath="%APPDATA%\Microsoft\Windows\Start Menu\Programs\System Tools\Control Panel.lnk" />
<start:DesktopApplicationTile Size="2x2" Column="4" Row="8" DesktopApplicationLinkPath="%APPDATA%\Microsoft\Windows\Start Menu\Programs\System Tools\Run.lnk" />
<start:Tile Size="2x2" Column="0" Row="6" AppUserModelID="Microsoft.WindowsStore_8wekyb3d8bbwe!App" />
<start:SecondaryTile AppUserModelID="windows.immersivecontrolpanel_cw5n1h2txyewy!microsoft.windows.immersivecontrolpanel" TileID="SystemSettings_L2_SettingsPageRestoreMusUpdate" DisplayName="Windows Update" Size="2x2" Column="2" Row="8" Arguments="page=SettingsPageRestoreMusUpdate" Square150x150LogoUri="ms-appdata:///local/SettingsTiles/UpdateRestore.png" Wide310x150LogoUri="ms-appdata:///local/SettingsTiles/wide.UpdateRestore.png" ShowNameOnSquare150x150Logo="true" ShowNameOnWide310x150Logo="true" BackgroundColor="#00000000" />
</start:Group>
<start:Group Name="Spiele und mehr" xmlns:start="http://schemas.microsoft.com/Start/2014/StartLayout">
<start:Tile Size="2x2" Column="0" Row="4" AppUserModelID="Microsoft.XboxApp_8wekyb3d8bbwe!Microsoft.XboxApp" />
<start:Tile Size="2x2" Column="0" Row="2" AppUserModelID="Microsoft.ZuneMusic_8wekyb3d8bbwe!Microsoft.ZuneMusic" />
<start:Tile Size="2x2" Column="4" Row="0" AppUserModelID="Microsoft.ZuneVideo_8wekyb3d8bbwe!Microsoft.ZuneVideo" />
<start:Tile Size="2x2" Column="2" Row="2" AppUserModelID="Microsoft.WindowsCalculator_8wekyb3d8bbwe!App" />
<start:DesktopApplicationTile Size="2x2" Column="4" Row="2" DesktopApplicationLinkPath="%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Accessories\Paint.lnk" />
</start:Group>
<start:Group Name="" xmlns:start="http://schemas.microsoft.com/Start/2014/StartLayout">
<start:DesktopApplicationTile Size="2x2" Column="0" Row="0" DesktopApplicationLinkPath="%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\System Tools\Task Manager.lnk" />
</start:Group>
</defaultlayout:StartLayout>
</StartLayoutCollection>
</DefaultLayoutOverride>
</LayoutModificationTemplate>
Binary file added Clean Win10 Start menu/registry.pol
Binary file not shown.
Binary file added SetACL.exe
Binary file not shown.
156 changes: 156 additions & 0 deletions Win 10 Advanced Explorer Settings.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,156 @@
: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
for /f "delims= " %%a in ('"wmic useraccount where name='%username%' get sid"') do (
if not "%%a"=="SID" (
set myvar=%%a
goto :loop_end
)
)

:loop_end
set "line01=Windows Registry Editor Version 5.00"
set "line02="
set "line03=[HKEY_USERS\%myvar%\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer]"
set "line04="ShowRecent"=dword:00000000"
set "line05="ShowFrequent"=dword:00000000"
set "line06="EnableAutoTray"=dword:00000000"
set "line07="
set "line08=[HKEY_USERS\%myvar%\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced]"
set "line09="FolderContentsInfoTip"=dword:00000000"
set "line10="HideFileExt"=dword:00000000"
set "line11="ShowSuperHidden"=dword:00000001"
set "line12="AlwaysShowMenus"=dword:00000001"
set "line13="AutoCheckSelect"=dword:00000001"
set "line14="Hidden"=dword:00000001"
set "line15="Start_TrackDocs"=dword:00000000"
set "line16="DisablePreviewDesktop"=dword:00000000"
set "line17="TaskbarAnimations"=dword:00000000"
set "line18="ShowTaskViewButton"=dword:00000000"
set "line19="TaskbarGlomLevel"=dword:00000001"
set "line20="
set "line21=[HKEY_USERS\%myvar%\SOFTWARE\Microsoft\Windows\CurrentVersion\PushNotifications]"
set "line22="ToastEnabled"=dword:00000000"
set "line23="
set "line24=[HKEY_USERS\%myvar%\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager]"
set "line25="SoftLandingEnabled"=dword:00000000"
set "line26="SystemPaneSuggestionsEnabled"=dword:00000000"
set "line27="
set "line28=[HKEY_USERS\%myvar%\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers]"
set "line29="DisableAutoplay"=dword:00000001"
set "line30="
set "line31=[HKEY_USERS\%myvar%\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize]"
set "line32="ColorPrevalence"=dword:00000001"
set "line33="
set "line34=[HKEY_USERS\%myvar%\SOFTWARE\Microsoft\Windows\DWM]"
set "line35="ColorPrevalence"=dword:00000001"
set "line36="
set "line37=[HKEY_USERS\%myvar%\Control Panel\International\User Profile]"
set "line38="HttpAcceptLanguageOptOut"=dword:00000001"
set "line39="
set "line40=[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\SmartGlass]"
set "line41="UserAuthPolicy"=dword:00000000"
set "line42="
set "line43=[HKEY_USERS\%myvar%\Control Panel\Desktop\WindowMetrics]"
set "line44="MinAnimate"=dword:00000000"
set "line45="
set "line46=[HKEY_USERS\%myvar%\SOFTWARE\Microsoft\Windows\CurrentVersion\Search]"
set "line47="SearchboxTaskbarMode"=dword:00000000"
set "line48="
set "line49=[HKEY_USERS\%myvar%\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel]"
set "line50="AllItemsIconView"=dword:00000000"
set "line51="StartupPage"=dword:00000001"
set "line52="
set "line53=[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Config]"
set "line54="DODownloadMode"=dword:00000000"
set "line55="
set "line56=[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\SQMClient\Windows]"
set "line57="CEIPEnable"=dword:00000000"
set "line58="

setlocal EnableDelayedExpansion
(
echo !line01!
echo/
echo !line03!
echo !line04!
echo !line05!
echo !line06!
echo/
echo !line08!
echo !line09!
echo !line10!
echo !line11!
echo !line12!
echo !line13!
echo !line14!
echo !line15!
echo !line16!
echo !line17!
echo !line18!
echo !line19!
echo/
echo !line21!
echo !line22!
echo/
echo !line24!
echo !line25!
echo !line26!
echo/
echo !line28!
echo !line29!
echo/
echo !line31!
echo !line32!
echo/
echo !line34!
echo !line35!
echo/
echo !line37!
echo !line38!
echo/
echo !line40!
echo !line41!
echo/
echo !line43!
echo !line44!
echo/
echo !line46!
echo !line47!
echo/
echo !line49!
echo !line50!
echo !line51!
echo/
echo !line53!
echo !line54!
echo/
echo !line56!
echo !line57!
echo/

) > "Win 10 Explorer Einstellungen.reg"
REGEDIT.EXE /S "%~dp0Win 10 Explorer Einstellungen.reg"
del /F /Q "%~dp0Win 10 Explorer Einstellungen.reg"
50 changes: 50 additions & 0 deletions Win 10 Disable Automatic App Updates.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
: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
for /f "delims= " %%a in ('"wmic useraccount where name='%username%' get sid"') do (
if not "%%a"=="SID" (
set myvar=%%a
goto :loop_end
)
)

:loop_end
set "line01=Windows Registry Editor Version 5.00"
set "line02="
set "line03=[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsStore\WindowsUpdate]"
set "line04="AutoDownload"=dword:00000002"
set "line05="

setlocal EnableDelayedExpansion
(
echo !line01!
echo/
echo !line03!
echo !line04!
echo/

) > "Win 10 Auto App Updates deaktivieren.reg"
REGEDIT.EXE /S "%~dp0Win 10 Auto App Updates deaktivieren.reg"
del /F /Q "%~dp0Win 10 Auto App Updates deaktivieren.reg"
32 changes: 32 additions & 0 deletions Win 10 Disable Automatic Windows Updates.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
: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
reg add HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU\ /v NoAutoUpdate /t REG_DWORD /d 1 /f
reg add HKLM\SOFTWARE\WOW6432Node\Policies\Microsoft\Windows\WindowsUpdate\AU\ /v NoAutoUpdate /t REG_DWORD /d 1 /f
"%~dp0SetACL.exe" -on "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -ot reg -actn setowner -ownr "n:%USERNAME%"
"%~dp0SetACL.exe" -on "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -ot reg -actn ace -ace "n:%USERNAME%;p:full"
"%~dp0SetACL.exe" -on "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -ot reg -actn ace -ace "n:SYSTEM;p:read"
reg add HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU\ /v NoAutoUpdate /t REG_DWORD /d 1 /f
reg add HKLM\SOFTWARE\WOW6432Node\Policies\Microsoft\Windows\WindowsUpdate\AU\ /v NoAutoUpdate /t REG_DWORD /d 1 /f
33 changes: 33 additions & 0 deletions Win 10 Disable Cortana Completely.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
: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

taskkill /f /IM "SearchUI.exe"
"%~dp0SetACL.exe" -on C:\Windows\SystemApps\Microsoft.Windows.Cortana_cw5n1h2txyewy\SearchUI.exe -ot file -actn setprot -op "dacl:p_nc;sacl:p_nc"
"%~dp0SetACL.exe" -on C:\Windows\SystemApps\Microsoft.Windows.Cortana_cw5n1h2txyewy\SearchUI.exe -ot file -actn setowner -ownr "n:%USERNAME%"
"%~dp0SetACL.exe" -on C:\Windows\SystemApps\Microsoft.Windows.Cortana_cw5n1h2txyewy\SearchUI.exe -ot file -actn ace -ace "n:%USERNAME%;p:full"
"%~dp0SetACL.exe" -on C:\Windows\SystemApps\Microsoft.Windows.Cortana_cw5n1h2txyewy\SearchUI.exe -ot file -actn ace -ace "n:System;p:read"
ren "C:\Windows\SystemApps\Microsoft.Windows.Cortana_cw5n1h2txyewy\SearchUI.exe" "SearchUI.bak"
exit
Loading

0 comments on commit bfebce3

Please sign in to comment.