repo size reduction
This commit is contained in:
BIN
skripte/Win11Debloat-master.zip
Normal file
BIN
skripte/Win11Debloat-master.zip
Normal file
Binary file not shown.
BIN
skripte/Windows10Debloater-master.zip
Normal file
BIN
skripte/Windows10Debloater-master.zip
Normal file
Binary file not shown.
16
skripte/Windows10Debloater.cmd
Normal file
16
skripte/Windows10Debloater.cmd
Normal file
@@ -0,0 +1,16 @@
|
||||
rem -----------------------------------------------------------------
|
||||
rem Installiere Windows10Debloater
|
||||
rem -----------------------------------------------------------------
|
||||
|
||||
rem --- Option: Download in ein temporäres Verzeichnis
|
||||
rem --- Kann für z.B. für GLPI abgeschaltet werden
|
||||
set SAVEPATH=%SYSTEMDRIVE%\TEMP\install
|
||||
MKDIR %SAVEPATH% & CD /D %SAVEPATH%
|
||||
|
||||
rem --- Lade Debloater .ZIP
|
||||
set BASEURL=https://support.ostrachhelp.de/OstrachHELP/setup_windows/raw/branch/main/skripte
|
||||
set PROG=Windows10Debloater-master.zip
|
||||
curl -k -L %BASEURL%/%PROG% -o %PROG%
|
||||
powershell.exe -command "Expand-Archive -Force -Path %PROG% -DestinationPath . "
|
||||
CD Windows10Debloater-master
|
||||
powershell.exe -ExecutionPolicy Unrestricted -File "Win11Debloat.ps1" -RunDefaults
|
17
skripte/Windows11Debloater.cmd
Normal file
17
skripte/Windows11Debloater.cmd
Normal file
@@ -0,0 +1,17 @@
|
||||
rem -----------------------------------------------------------------
|
||||
rem Installiere Windows11Debloater
|
||||
rem https://github.com/Raphire/Win11Debloat
|
||||
rem -----------------------------------------------------------------
|
||||
|
||||
rem --- Option: Download in ein temporäres Verzeichnis
|
||||
rem --- Kann für z.B. für GLPI abgeschaltet werden
|
||||
set SAVEPATH=%SYSTEMDRIVE%\TEMP\install
|
||||
MKDIR %SAVEPATH% & CD /D %SAVEPATH%
|
||||
|
||||
rem --- Lade Debloater .ZIP
|
||||
set BASEURL=https://support.ostrachhelp.de/OstrachHELP/setup_windows/raw/branch/main/skripte
|
||||
set PROG=Win11Debloat-master.zip
|
||||
curl -kLO %BASEURL%/%PROG%
|
||||
powershell.exe -command "Expand-Archive -Force -Path %PROG% -DestinationPath . "
|
||||
CD Win11Debloat-master
|
||||
powershell.exe -ExecutionPolicy Unrestricted -File "Win11Debloat.ps1" -Silent -RunDefaults -RemoveGamingApps -RemoveCommApps -RemoveW11Outlook -DisableBing -DisableTelemetry -DisableLockscreenTips -TaskbarAlignLeft -RevertContextMenu -ShowKnownFileExt -HideSearchTb -HideTaskview -DisableCopilot -DisableWidgets -HideChat -DisableSuggestions -HideDupliDrive
|
139
skripte/script_hardening_win10.cmd
Normal file
139
skripte/script_hardening_win10.cmd
Normal file
@@ -0,0 +1,139 @@
|
||||
@echo off
|
||||
:: Stand 2024-07-17
|
||||
echo --------------------------------------------------------------------------
|
||||
echo hardening Windows 10
|
||||
echo --------------------------------------------------------------------------
|
||||
|
||||
:: The command below creates the restore point, you can do it manually, too.
|
||||
powershell.exe enable-computerrestore -drive c:\
|
||||
powershell.exe vssadmin resize shadowstorage /on=c: /for=c: /maxsize=5000MB
|
||||
:: checkpoint-computer -description "beforehardening"
|
||||
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SystemRestore" /v SystemRestorePointCreationFrequency /t REG_DWORD /d 20 /f
|
||||
powershell.exe -ExecutionPolicy Bypass -Command "Checkpoint-Computer -Description 'BeforeSecurityHardening' -RestorePointType 'MODIFY_SETTINGS'"
|
||||
|
||||
:: Disable CMD.exe
|
||||
reg add "HKCU\Software\Policies\Microsoft\Windows\System" /v DisableCMD /t REG_DWORD /d 0x2 /f
|
||||
|
||||
:: Block remote commands https://docs.microsoft.com/en-us/windows/win32/com/enabledcom
|
||||
reg add "HKEY_LOCAL_MACHINE\Software\Microsoft\OLE" /v EnableDCOM /t REG_SZ /d N /F
|
||||
|
||||
:: Disable autorun/autoplay on all drives
|
||||
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Explorer" /v NoAutoplayfornonVolume /t REG_DWORD /d 1 /f
|
||||
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\Explorer" /v NoDriveTypeAutoRun /t REG_DWORD /d 255 /f
|
||||
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v NoAutorun /t REG_DWORD /d 1 /f
|
||||
|
||||
:: Disable IPv6
|
||||
:: https://support.microsoft.com/en-us/help/929852/guidance-for-configuring-ipv6-in-windows-for-advanced-users
|
||||
reg add "HKLM\SYSTEM\CurrentControlSet\services\tcpip6\parameters" /v DisabledComponents /t REG_DWORD /d 0xFF /f
|
||||
|
||||
:: Stop NetBIOS over TCP/IP
|
||||
wmic /interactive:off nicconfig where TcpipNetbiosOptions=0 call SetTcpipNetbios 2
|
||||
wmic /interactive:off nicconfig where TcpipNetbiosOptions=1 call SetTcpipNetbios 2
|
||||
:: Disable NTLMv1
|
||||
powershell.exe Disable-WindowsOptionalFeature -Online -FeatureName smb1protocol
|
||||
reg add "HKLM\SYSTEM\CurrentControlSet\Services\mrxsmb10" /v Start /t REG_DWORD /d 4 /f
|
||||
|
||||
:: Disable (c|w)script.exe to prevent the system from running VBS scripts
|
||||
:: ---------------------
|
||||
reg add "HKCU\SOFTWARE\Microsoft\Windows Script Host\Settings" /v Enabled /t REG_DWORD /d 0 /f
|
||||
reg add "HKCU\SOFTWARE\Microsoft\Windows Script Host\Settings" /v ActiveDebugging /t REG_SZ /d 1 /f
|
||||
reg add "HKCU\SOFTWARE\Microsoft\Windows Script Host\Settings" /v DisplayLogo /t REG_SZ /d 1 /f
|
||||
reg add "HKCU\SOFTWARE\Microsoft\Windows Script Host\Settings" /v SilentTerminate /t REG_SZ /d 0 /f
|
||||
reg add "HKCU\SOFTWARE\Microsoft\Windows Script Host\Settings" /v UseWINSAFER /t REG_SZ /d 1 /f
|
||||
|
||||
:: Disables DNS multicast, smart mutli-homed resolution, netbios, powershellv2, printer driver download and printing over http, icmp redirect
|
||||
:: Enables UAC and sets to always notify, Safe DLL loading (DLL Hijacking prevention), saving zone information, explorer DEP, explorer shell protocol protected mode
|
||||
:: ---------------------
|
||||
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\DNSClient" /v EnableMulticast /t REG_DWORD /d 0 /f
|
||||
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\DNSClient" /v DisableSmartNameResolution /t REG_DWORD /d 1 /f
|
||||
reg add "HKLM\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters" /v DisableParallelAandAAAA /t REG_DWORD /d 1 /f
|
||||
reg add "HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters" /v SMB1 /t REG_DWORD /d 0 /f
|
||||
reg add "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" /v IGMPLevel /t REG_DWORD /d 0 /f
|
||||
reg add "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" /v DisableIPSourceRouting /t REG_DWORD /d 2 /f
|
||||
reg add "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" /v EnableICMPRedirect /t REG_DWORD /d 0 /f
|
||||
reg add "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters" /v DisableIPSourceRouting /t REG_DWORD /d 2 /f
|
||||
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v EnableLUA /t REG_DWORD /d 1 /f
|
||||
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v EnableVirtualization /t REG_DWORD /d 1 /f
|
||||
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v ConsentPromptBehaviorAdmin /t REG_DWORD /d 2 /f
|
||||
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager" /v SafeDLLSearchMode /t REG_DWORD /d 1 /f
|
||||
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager" /v ProtectionMode /t REG_DWORD /d 1 /f
|
||||
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Attachments" /v SaveZoneInformation /t REG_DWORD /d 2 /f
|
||||
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Explorer" /v NoDataExecutionPrevention /t REG_DWORD /d 0 /f
|
||||
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Explorer" /v NoHeapTerminationOnCorruption /t REG_DWORD /d 0 /f
|
||||
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v PreXPSP2ShellProtocolBehavior /t REG_DWORD /d 0 /f
|
||||
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Printers" /v DisableWebPnPDownload /t REG_DWORD /d 1 /f
|
||||
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Printers" /v DisableHTTPPrinting /t REG_DWORD /d 1 /f
|
||||
reg add "HKLM\SOFTWARE\Microsoft\WcmSvc\wifinetworkmanager\config" /v AutoConnectAllowedOEM /t REG_DWORD /d 0 /f
|
||||
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WcmSvc\GroupPolicy" /v fMinimizeConnections /t REG_DWORD /d 1 /f
|
||||
reg add "HKLM\SYSTEM\CurrentControlSet\Services\Netbt\Parameters" /v NoNameReleaseOnDemand /t REG_DWORD /d 1 /f
|
||||
wmic /interactive:off nicconfig where (TcpipNetbiosOptions=0 OR TcpipNetbiosOptions=1) call SetTcpipNetbios 2
|
||||
powershell.exe Disable-WindowsOptionalFeature -Online -FeatureName MicrosoftWindowsPowerShellV2 -norestart
|
||||
powershell.exe Disable-WindowsOptionalFeature -Online -FeatureName MicrosoftWindowsPowerShellV2Root -norestart
|
||||
|
||||
::#######################################################################
|
||||
:: Harden lsass to help protect against credential dumping (Mimikatz)
|
||||
:: Configures lsass.exe as a protected process and disables wdigest
|
||||
:: Enables delegation of non-exported credentials which enables support for Restricted Admin Mode or Remote Credential Guard
|
||||
:: https://technet.microsoft.com/en-us/library/dn408187(v=ws.11).aspx
|
||||
:: https://medium.com/blue-team/preventing-mimikatz-attacks-ed283e7ebdd5
|
||||
:: ---------------------
|
||||
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\LSASS.exe" /v AuditLevel /t REG_DWORD /d 00000008 /f
|
||||
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Lsa" /v RunAsPPL /t REG_DWORD /d 00000001 /f
|
||||
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Lsa" /v DisableRestrictedAdmin /t REG_DWORD /d 00000000 /f
|
||||
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Lsa" /v DisableRestrictedAdminOutboundCreds /t REG_DWORD /d 00000001 /f
|
||||
reg add "HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\WDigest" /v UseLogonCredential /t REG_DWORD /d 0 /f
|
||||
reg add "HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\WDigest" /v Negotiate /t REG_DWORD /d 0 /f
|
||||
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\CredentialsDelegation" /v AllowProtectedCreds /t REG_DWORD /d 1 /f
|
||||
|
||||
:: Uninstall common extra apps found on a lot of Win10 installs
|
||||
:: Obviously do a quick review to ensure it isn't removing any apps you or your user need to use.
|
||||
:: https://docs.microsoft.com/en-us/windows/application-management/apps-in-windows-10
|
||||
:: PowerShell command to reinstall all pre-installed apps below
|
||||
:: Get-AppxPackage -AllUsers| Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
|
||||
powershell.exe -command "Get-AppxPackage *Microsoft.BingWeather* -AllUsers | Remove-AppxPackage"
|
||||
powershell.exe -command "Get-AppxPackage *Microsoft.DesktopAppInstaller* -AllUsers | Remove-AppxPackage"
|
||||
powershell.exe -command "Get-AppxPackage *Microsoft.GetHelp* -AllUsers | Remove-AppxPackage"
|
||||
powershell.exe -command "Get-AppxPackage *Microsoft.Getstarted* -AllUsers | Remove-AppxPackage"
|
||||
powershell.exe -command "Get-AppxPackage *Microsoft.Messaging* -AllUsers | Remove-AppxPackage"
|
||||
powershell.exe -command "Get-AppxPackage *Microsoft.Microsoft3DViewer* -AllUsers | Remove-AppxPackage"
|
||||
powershell.exe -command "Get-AppxPackage *Microsoft.MicrosoftOfficeHub* -AllUsers | Remove-AppxPackage"
|
||||
powershell.exe -command "Get-AppxPackage *Microsoft.MicrosoftSolitaireCollection* -AllUsers | Remove-AppxPackage"
|
||||
powershell.exe -command "Get-AppxPackage *Microsoft.MicrosoftStickyNotes* -AllUsers | Remove-AppxPackage"
|
||||
powershell.exe -command "Get-AppxPackage *Microsoft.MixedReality.Portal* -AllUsers | Remove-AppxPackage"
|
||||
powershell.exe -command "Get-AppxPackage *Microsoft.Office.OneNote* -AllUsers | Remove-AppxPackage"
|
||||
powershell.exe -command "Get-AppxPackage *Microsoft.OneConnect* -AllUsers | Remove-AppxPackage"
|
||||
powershell.exe -command "Get-AppxPackage *Microsoft.Print3D* -AllUsers | Remove-AppxPackage"
|
||||
powershell.exe -command "Get-AppxPackage *Microsoft.SkypeApp* -AllUsers | Remove-AppxPackage"
|
||||
powershell.exe -command "Get-AppxPackage *Microsoft.Wallet* -AllUsers | Remove-AppxPackage"
|
||||
powershell.exe -command "Get-AppxPackage *Microsoft.WebMediaExtensions* -AllUsers | Remove-AppxPackage"
|
||||
powershell.exe -command "Get-AppxPackage *Microsoft.WebpImageExtension* -AllUsers | Remove-AppxPackage"
|
||||
powershell.exe -command "Get-AppxPackage *Microsoft.WindowsAlarms* -AllUsers | Remove-AppxPackage"
|
||||
powershell.exe -command "Get-AppxPackage *Microsoft.WindowsCamera* -AllUsers | Remove-AppxPackage"
|
||||
powershell.exe -command "Get-AppxPackage *microsoft.windowscommunicationsapps* -AllUsers | Remove-AppxPackage"
|
||||
powershell.exe -command "Get-AppxPackage *Microsoft.WindowsFeedbackHub* -AllUsers | Remove-AppxPackage"
|
||||
powershell.exe -command "Get-AppxPackage *Microsoft.WindowsMaps* -AllUsers | Remove-AppxPackage"
|
||||
powershell.exe -command "Get-AppxPackage *Microsoft.WindowsSoundRecorder* -AllUsers | Remove-AppxPackage"
|
||||
powershell.exe -command "Get-AppxPackage *Microsoft.Xbox.TCUI* -AllUsers | Remove-AppxPackage"
|
||||
powershell.exe -command "Get-AppxPackage *Microsoft.XboxApp* -AllUsers | Remove-AppxPackage"
|
||||
powershell.exe -command "Get-AppxPackage *Microsoft.XboxGameOverlay* -AllUsers | Remove-AppxPackage"
|
||||
powershell.exe -command "Get-AppxPackage *Microsoft.XboxGamingOverlay* -AllUsers | Remove-AppxPackage"
|
||||
powershell.exe -command "Get-AppxPackage *Microsoft.XboxIdentityProvider* -AllUsers | Remove-AppxPackage"
|
||||
powershell.exe -command "Get-AppxPackage *Microsoft.XboxSpeechToTextOverlay* -AllUsers | Remove-AppxPackage"
|
||||
powershell.exe -command "Get-AppxPackage *Microsoft.YourPhone* -AllUsers | Remove-AppxPackage"
|
||||
powershell.exe -command "Get-AppxPackage *Microsoft.ZuneMusic* -AllUsers | Remove-AppxPackage"
|
||||
powershell.exe -command "Get-AppxPackage *Microsoft.ZuneVideo* -AllUsers | Remove-AppxPackage"
|
||||
powershell.exe -command "Get-AppxPackage *Microsoft.WindowsFeedback* -AllUsers | Remove-AppxPackage"
|
||||
powershell.exe -command "Get-AppxPackage *Windows.ContactSupport* -AllUsers | Remove-AppxPackage"
|
||||
powershell.exe -command "Get-AppxPackage *PandoraMedia* -AllUsers | Remove-AppxPackage"
|
||||
powershell.exe -command "Get-AppxPackage *AdobeSystemIncorporated. AdobePhotoshop* -AllUsers | Remove-AppxPackage"
|
||||
powershell.exe -command "Get-AppxPackage *Duolingo* -AllUsers | Remove-AppxPackage"
|
||||
powershell.exe -command "Get-AppxPackage *Microsoft.BingNews* -AllUsers | Remove-AppxPackage"
|
||||
powershell.exe -command "Get-AppxPackage *Microsoft.Office.Sway* -AllUsers | Remove-AppxPackage"
|
||||
powershell.exe -command "Get-AppxPackage *Microsoft.Advertising.Xaml* -AllUsers | Remove-AppxPackage"
|
||||
powershell.exe -command "Get-AppxPackage *Microsoft.Services.Store.Engagement* -AllUsers | Remove-AppxPackage"
|
||||
powershell.exe -command "Get-AppxPackage *ActiproSoftware* -AllUsers | Remove-AppxPackage"
|
||||
powershell.exe -command "Get-AppxPackage *EclipseManager* -AllUsers | Remove-AppxPackage"
|
||||
powershell.exe -command "Get-AppxPackage *SpotifyAB.SpotifyMusic* -AllUsers | Remove-AppxPackage"
|
||||
powershell.exe -command "Get-AppxPackage *king.com.* -AllUsers | Remove-AppxPackage"
|
||||
powershell.exe -command "Get-AppxPackage *Microsoft.NET.Native.Framework.1.* -AllUsers | Remove-AppxPackage"
|
||||
|
28
skripte/script_onedrive_deinstallieren.cmd
Normal file
28
skripte/script_onedrive_deinstallieren.cmd
Normal file
@@ -0,0 +1,28 @@
|
||||
|
||||
set x86="%SYSTEMROOT%\System32\OneDriveSetup.exe"
|
||||
set x64="%SYSTEMROOT%\SysWOW64\OneDriveSetup.exe"
|
||||
|
||||
echo OneDrive beenden
|
||||
taskkill /f /im OneDrive.exe
|
||||
ping 127.0.0.1 -n 3
|
||||
|
||||
echo OneDrive deinstallieren
|
||||
if exist %x64% (
|
||||
%x64% /uninstall
|
||||
) else (
|
||||
%x86% /uninstall
|
||||
)
|
||||
ping 127.0.0.1 -n 3
|
||||
|
||||
echo OneDrive letzte Reste entfernen
|
||||
rd "%USERPROFILE%\OneDrive" /Q /S
|
||||
rd "C:\OneDriveTemp" /Q /S
|
||||
rd "%LOCALAPPDATA%\Microsoft\OneDrive" /Q /S
|
||||
rd "%PROGRAMDATA%\Microsoft OneDrive" /Q /S
|
||||
del "%appdata%\Microsoft\Windows\Start Menu\programs\OneDrive.lnk"
|
||||
|
||||
echo OneDrive aus Datei Explorer entfernen
|
||||
REG DELETE "HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" /f
|
||||
REG DELETE "HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" /f
|
||||
REG DELETE "HKEY_CURRENT_USER\Software\Classes\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}\ShellFolder" /f
|
||||
REG DELETE "HKEY_CURRENT_USER\Software\Classes\Wow6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}\ShellFolder" /f
|
78
skripte/script_win10_std_einstellungen.cmd
Normal file
78
skripte/script_win10_std_einstellungen.cmd
Normal file
@@ -0,0 +1,78 @@
|
||||
@echo off
|
||||
@rem Stand 2022-09-22
|
||||
echo --------------------------------------------------------------------------
|
||||
echo I Windows Standardeinstellungen laden... I
|
||||
echo --------------------------------------------------------------------------
|
||||
|
||||
rem Registry Eintrag:
|
||||
rem reg add HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v WindowsSettings /f /d "c:\temp\WindowsSettings.cmd > c:\temp\%USERNAME%_WindowsSettings.log"
|
||||
rem GLPI: reg add HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v WindowsSettings /f /d "c:\temp\WindowsSettings.cmd > c:\temp\%%USERNAME%%_WindowsSettings.log"
|
||||
ping 127.0.0.1 > NUL
|
||||
|
||||
rem ---- OneDrive deaktivieren ------------------------------------------------
|
||||
taskkill /f /im OneDrive.exe
|
||||
REG DELETE "HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" /f
|
||||
REG DELETE "HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" /f
|
||||
REG DELETE "HKEY_CURRENT_USER\Software\Classes\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}\ShellFolder" /f
|
||||
REG DELETE "HKEY_CURRENT_USER\Software\Classes\Wow6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}\ShellFolder" /f
|
||||
REG DELETE "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run" /v "OneDrive" /f
|
||||
|
||||
rem ---- Dateinamenerweiterungen einschalten
|
||||
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v HideFileExt /t REG_DWORD /d 0 /f
|
||||
|
||||
rem ---- Energieeinstellungen
|
||||
powercfg /change standby-timeout-ac 0
|
||||
powercfg /change standby-timeout-dc 10
|
||||
powercfg /change hibernate-timeout-ac 0
|
||||
powercfg /change hibernate-timeout-dc 10
|
||||
powercfg /change monitor-timeout-ac 30
|
||||
powercfg /change monitor-timeout-dc 10
|
||||
powercfg /change disk-timeout-ac 0
|
||||
powercfg /change disk-timeout-dc 20
|
||||
|
||||
rem ---- Fensterrahmen einblenden
|
||||
rem reg add "HKCU\Control Panel\Desktop" /v UserPreferencesMask /t REG_BINARY /d 9032078010000000 /f
|
||||
rem reg add "HKCU\Control Panel\Desktop\WindowMetrics" /v BorderWidth /t REG_SZ /d "-15" /f
|
||||
rem reg add "HKCU\Control Panel\Desktop\WindowMetrics" /v PaddedBorderWidth /t REG_SZ /d "-15" /f
|
||||
|
||||
rem ---- FastBoot ausschalten
|
||||
reg add "HKLM\System\CurrentControlSet\Control\Session Manager\Power" /v HiberbootEnabled /t REG_DWORD /d 0 /f
|
||||
|
||||
rem ---- Energiesparplan auf Höchstleistung setzen
|
||||
powercfg /SETACTIVE /SCHEME_MIN
|
||||
|
||||
rem ---- Beim Zuklappen des Bildschirms nichts unternehmen
|
||||
powercfg /SETDCVALUEINDEX SCHEME_MIN SUB_BUTTONS LIDACTION 0
|
||||
powercfg /SETACVALUEINDEX SCHEME_MIN SUB_BUTTONS LIDACTION 0
|
||||
|
||||
rem ---- Beim drücken des Netzschalters herunterfahren
|
||||
powercfg /SETDCVALUEINDEX SCHEME_MIN SUB_BUTTONS PBUTTONACTION 3
|
||||
powercfg /SETACVALUEINDEX SCHEME_MIN SUB_BUTTONS PBUTTONACTION 3
|
||||
|
||||
rem ---- Beim drücken der Energiespartaste energie sparen
|
||||
powercfg /SETDCVALUEINDEX SCHEME_MIN SUB_BUTTONS SleepButtonAction 1
|
||||
powercfg /SETACVALUEINDEX SCHEME_MIN SUB_BUTTONS SleepButtonAction 1
|
||||
|
||||
rem ---- Cortana & Taskansicht ausschalten
|
||||
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Search" /v SearchboxTaskbarMode /t REG_DWORD /d 0 /f
|
||||
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v ShowCortanaButton /t REG_DWORD /d 0 /f
|
||||
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v ShowTaskViewButton /t REG_DWORD /d 0 /f
|
||||
|
||||
rem ---- Schaltet den Newsfeed in der Taskleiste ab
|
||||
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Feeds" /v ShellFeedsTaskbarViewMode /t REG_DWORD /d 2 /f
|
||||
|
||||
rem ---- Zeige alle Symbole in der Taskleiste
|
||||
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer" /v EnableAutoTray /t REG_DWORD /d 0 /f
|
||||
|
||||
rem ---- Live Kacheln im Startmenue abschalten
|
||||
reg add "HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\CurrentVersion\PushNotifications" /v NoTileApplicationNotification /t REG_DWORD /d 1 /f
|
||||
|
||||
rem ---- 3D-Objects Ordner im Explorer ausblenden
|
||||
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace" /v {0DB7E03F-FC29-4DC6-9020-FF41B59E513A} /f
|
||||
|
||||
rem ---- Schalte Newsfeed in der Taskleiste bei Windows 10 21H1 ab
|
||||
reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Feeds" /v ShellFeedsTaskbarViewMode /t REG_DWORD /d 2 /f
|
||||
|
||||
rem ---- Logoff!
|
||||
rem shutdown -L
|
||||
|
86
skripte/script_win11_std_einstellungen.cmd
Normal file
86
skripte/script_win11_std_einstellungen.cmd
Normal file
@@ -0,0 +1,86 @@
|
||||
@echo off
|
||||
@rem Stand 2023-12-03
|
||||
echo --------------------------------------------------------------------------
|
||||
echo I Windows Standardeinstellungen laden... I
|
||||
echo --------------------------------------------------------------------------
|
||||
|
||||
rem Registry Eintrag:
|
||||
rem reg add HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v WindowsSettings /f /d "c:\temp\WindowsSettings.cmd > c:\temp\%USERNAME%_WindowsSettings.log"
|
||||
rem GLPI: reg add HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v WindowsSettings /f /d "c:\temp\WindowsSettings.cmd > c:\temp\%%USERNAME%%_WindowsSettings.log"
|
||||
ping 127.0.0.1 > NUL
|
||||
|
||||
rem ---- Windows 11 Tweaks ----------------------------------------------------
|
||||
rem
|
||||
rem --- Startmenü links
|
||||
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v TaskbarAl /t REG_DWORD /d 0 /f
|
||||
rem --- Wetter-/Newswidget abschalten
|
||||
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v TaskbarDa /t REG_DWORD /d 0 /f
|
||||
rem --- Altes Kontextmenue
|
||||
reg add "HKEY_CURRENT_USER\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /v Standard /t REG_SZ /f
|
||||
rem --- keine Bing Vorschläge im Startmenü
|
||||
reg add "HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\Windows\Explorer" /v DisableSearchBoxSuggestions /t REG_DWORD /d 1 /F
|
||||
rem --- Telemetrie reduzieren
|
||||
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\DataCollection" /v AllowTelemetry /t REG_DWORD /d 1 /F
|
||||
rem --- Cortana abschalten
|
||||
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsSearch" /v AllowCortana /t REG_DWORD /d 0 /F
|
||||
rem --- Snipping Tool deaktivieren bzw. PrintScr Taste freigeben
|
||||
reg add "HKEY_CURRENT_USER\Software\Policies\Microsoft\TabletPC" /v DisableSnippingTool /t REG_DWORD /d 1 /F
|
||||
|
||||
rem --- Bypass TPM-Check
|
||||
rem reg add "HKEY_LOCAL_MACHINE\SYSTEM\Setup\MoSetup" /v AllowUpgradesWithUnsupportedTPMOrCPU /t REG_DWORD /d 1
|
||||
|
||||
rem ---- OneDrive deaktivieren ------------------------------------------------
|
||||
taskkill /f /im OneDrive.exe
|
||||
REG DELETE "HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" /f
|
||||
REG DELETE "HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" /f
|
||||
REG DELETE "HKEY_CURRENT_USER\Software\Classes\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}\ShellFolder" /f
|
||||
REG DELETE "HKEY_CURRENT_USER\Software\Classes\Wow6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}\ShellFolder" /f
|
||||
REG DELETE "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run" /v "OneDrive" /f
|
||||
|
||||
rem ---- Dateinamenerweiterungen einschalten OK!
|
||||
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v HideFileExt /t REG_DWORD /d 0 /f
|
||||
|
||||
rem ---- Energieeinstellungen OK!
|
||||
powercfg /change standby-timeout-ac 0
|
||||
powercfg /change standby-timeout-dc 10
|
||||
powercfg /change hibernate-timeout-ac 0
|
||||
powercfg /change hibernate-timeout-dc 10
|
||||
powercfg /change monitor-timeout-ac 30
|
||||
powercfg /change monitor-timeout-dc 10
|
||||
powercfg /change disk-timeout-ac 0
|
||||
powercfg /change disk-timeout-dc 20
|
||||
|
||||
rem ---- FastBoot ausschalten OK!
|
||||
reg add "HKLM\System\CurrentControlSet\Control\Session Manager\Power" /v HiberbootEnabled /t REG_DWORD /d 0 /f
|
||||
|
||||
rem ---- Energiesparplan auf Höchstleistung setzen OK!
|
||||
powercfg /SETACTIVE /SCHEME_MIN
|
||||
|
||||
rem ---- Beim Zuklappen des Bildschirms nichts unternehmen OK!
|
||||
powercfg /SETDCVALUEINDEX SCHEME_MIN SUB_BUTTONS LIDACTION 0
|
||||
powercfg /SETACVALUEINDEX SCHEME_MIN SUB_BUTTONS LIDACTION 0
|
||||
|
||||
rem ---- Beim drücken des Netzschalters herunterfahren OK!
|
||||
powercfg /SETDCVALUEINDEX SCHEME_MIN SUB_BUTTONS PBUTTONACTION 3
|
||||
powercfg /SETACVALUEINDEX SCHEME_MIN SUB_BUTTONS PBUTTONACTION 3
|
||||
|
||||
rem ---- Cortana & Taskansicht ausschalten OK!
|
||||
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Search" /v SearchboxTaskbarMode /t REG_DWORD /d 0 /f
|
||||
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v ShowCortanaButton /t REG_DWORD /d 0 /f
|
||||
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v ShowTaskViewButton /t REG_DWORD /d 0 /f
|
||||
|
||||
rem ---- Zeige alle Symbole in der Taskleiste OK!
|
||||
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer" /v EnableAutoTray /t REG_DWORD /d 0 /f
|
||||
|
||||
rem ---- Live Kacheln im Startmenue abschalten OK!
|
||||
reg add "HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\CurrentVersion\PushNotifications" /v NoTileApplicationNotification /t REG_DWORD /d 1 /f
|
||||
|
||||
rem ---- 3D-Objects Ordner im Explorer ausblenden - REG nicht gefunden
|
||||
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace" /v {0DB7E03F-FC29-4DC6-9020-FF41B59E513A} /f
|
||||
|
||||
rem ---- Schalte Newsfeed in der Taskleiste ab OK!
|
||||
reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Feeds" /v ShellFeedsTaskbarViewMode /t REG_DWORD /d 2 /f
|
||||
|
||||
rem ---- Logoff!
|
||||
rem shutdown -L
|
||||
|
Reference in New Issue
Block a user