Re: Programme automatisch installieren nach Installation
Verfasst: 20.09.2023, 15:10
habs hinbekommen!
Sieht sehr gut aus. Bis auf die fehlende WINRAR BETA ist alles drin, was Scoty so möchte. Ist halt die Winrar 6.23. Ich persönlich würde mir sowieso keine Beta Versionen installieren.
Die Installation ist 100% unattend. Also obacht. Die Festplatte wird gnadenlos gelöscht und partitioniert.
Hier und da habe ich noch ein paar eigene Ideen eingebracht.
Hier die autounattend.xml:
und hier die firstlogon.cmd:
zur Vollständigkeit noch die Win11_Registry-Tricks.reg_
Sieht sehr gut aus. Bis auf die fehlende WINRAR BETA ist alles drin, was Scoty so möchte. Ist halt die Winrar 6.23. Ich persönlich würde mir sowieso keine Beta Versionen installieren.
Die Installation ist 100% unattend. Also obacht. Die Festplatte wird gnadenlos gelöscht und partitioniert.
Hier und da habe ich noch ein paar eigene Ideen eingebracht.
Hier die autounattend.xml:
Code: Alles auswählen
<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<settings pass="oobeSystem">
<component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<InputLocale>0407:00000407</InputLocale>
<SystemLocale>de-DE</SystemLocale>
<UILanguage>de-DE</UILanguage>
<UILanguageFallback>en-US</UILanguageFallback>
<UserLocale>de-DE</UserLocale>
</component>
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<TimeZone>W. Europe Standard Time</TimeZone>
<AutoLogon>
<Enabled>true</Enabled>
<LogonCount>9999999</LogonCount>
<Username>Martin</Username>
<Password>
<PlainText>false</PlainText>
<Value>UABhAHMAcwB3AG8AcgBkAA==</Value>
</Password>
</AutoLogon>
<OOBE>
<HideEULAPage>true</HideEULAPage>
<HideLocalAccountScreen>true</HideLocalAccountScreen>
<HideOnlineAccountScreens>true</HideOnlineAccountScreens>
<HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
<NetworkLocation>Home</NetworkLocation>
<ProtectYourPC>3</ProtectYourPC>
</OOBE>
<UserAccounts>
<LocalAccounts>
<LocalAccount wcm:action="add">
<Description>Martin</Description>
<DisplayName>Martin</DisplayName>
<Group>Administrators;Power Users</Group>
<Name>Martin</Name>
<Password>
<PlainText>false</PlainText>
<Value>UABhAHMAcwB3AG8AcgBkAA==</Value>
</Password>
</LocalAccount>
</LocalAccounts>
</UserAccounts>
<FirstLogonCommands>
<SynchronousCommand wcm:action="add">
<Order>1</Order>
<Description>FirstLogon</Description>
<RequiresUserInput>false</RequiresUserInput>
<CommandLine>"c:\windows\setup\scripts\FirstLogon.cmd"</CommandLine>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<Order>2</Order>
<CommandLine>net user "Martin" /logonpasswordchg:yes</CommandLine>
</SynchronousCommand>
</FirstLogonCommands>
</component>
</settings>
<settings pass="specialize">
<component name="Microsoft-Windows-Deployment" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<RunSynchronous>
<RunSynchronousCommand wcm:action="add">
<Order>1</Order>
<Path>reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OOBE /v BypassNRO /t REG_DWORD /d 1 /f</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>2</Order>
<Path>%windir%\System32\reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v "EnableLUA" /t "REG_DWORD" /d "0" /f</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>3</Order>
<Path>%windir%\System32\reg.exe ADD HKLM\SYSTEM\CurrentControlSet\Control\FileSystem /v LongPathsEnabled /t REG_DWORD /d 1 /f</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>4</Order>
<Path>%windir%\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -Command "Set-ExecutionPolicy -Scope 'LocalMachine' -ExecutionPolicy 'RemoteSigned' -Force;"</Path>
</RunSynchronousCommand>
</RunSynchronous>
</component>
</settings>
<settings pass="windowsPE">
<component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<InputLocale>0407:00000407</InputLocale>
<SystemLocale>de-DE</SystemLocale>
<UILanguage>de-DE</UILanguage>
<UILanguageFallback>en-US</UILanguageFallback>
<UserLocale>de-DE</UserLocale>
<SetupUILanguage>
<UILanguage>de-DE</UILanguage>
</SetupUILanguage>
</component>
<component name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Diagnostics>
<OptIn>false</OptIn>
</Diagnostics>
<DynamicUpdate>
<Enable>false</Enable>
<WillShowUI>OnError</WillShowUI>
</DynamicUpdate>
<ImageInstall>
<OSImage>
<InstallFrom>
<MetaData wcm:action="add">
<Key>/IMAGE/Name</Key>
<Value>Windows 11 Pro</Value>
</MetaData>
</InstallFrom>
<InstallTo>
<DiskID>0</DiskID>
<PartitionID>3</PartitionID>
</InstallTo>
</OSImage>
</ImageInstall>
<UserData>
<ProductKey>
<Key>VK7JG-NPHTM-C97JM-9MPGT-3V66T</Key>
</ProductKey>
<AcceptEula>true</AcceptEula>
</UserData>
<RunSynchronous>
<RunSynchronousCommand>
<Order>1</Order>
<Path>cmd.exe /c echo SELECT DISK 0 >> X:\diskpart.txt</Path>
</RunSynchronousCommand>
<RunSynchronousCommand>
<Order>2</Order>
<Path>cmd.exe /c echo CLEAN >> X:\diskpart.txt</Path>
</RunSynchronousCommand>
<RunSynchronousCommand>
<Order>3</Order>
<Path>cmd.exe /c echo CONVERT GPT >> X:\diskpart.txt</Path>
</RunSynchronousCommand>
<RunSynchronousCommand>
<Order>4</Order>
<Path>cmd.exe /c echo CREATE PARTITION EFI SIZE=100 >> X:\diskpart.txt</Path>
</RunSynchronousCommand>
<RunSynchronousCommand>
<Order>5</Order>
<Path>cmd.exe /c echo FORMAT QUICK FS=FAT32 LABEL="System" >> X:\diskpart.txt</Path>
</RunSynchronousCommand>
<RunSynchronousCommand>
<Order>6</Order>
<Path>cmd.exe /c echo CREATE PARTITION MSR SIZE=16 >> X:\diskpart.txt</Path>
</RunSynchronousCommand>
<RunSynchronousCommand>
<Order>7</Order>
<Path>cmd.exe /c echo CREATE PARTITION PRIMARY >> X:\diskpart.txt</Path>
</RunSynchronousCommand>
<RunSynchronousCommand>
<Order>8</Order>
<Path>cmd.exe /c echo SHRINK MINIMUM=500 >> X:\diskpart.txt</Path>
</RunSynchronousCommand>
<RunSynchronousCommand>
<Order>9</Order>
<Path>cmd.exe /c echo FORMAT QUICK FS=NTFS LABEL="Windows" >> X:\diskpart.txt</Path>
</RunSynchronousCommand>
<RunSynchronousCommand>
<Order>10</Order>
<Path>cmd.exe /c echo CREATE PARTITION PRIMARY >> X:\diskpart.txt</Path>
</RunSynchronousCommand>
<RunSynchronousCommand>
<Order>11</Order>
<Path>cmd.exe /c echo FORMAT QUICK FS=NTFS LABEL="Recovery" >> X:\diskpart.txt</Path>
</RunSynchronousCommand>
<RunSynchronousCommand>
<Order>12</Order>
<Path>cmd.exe /c echo SET ID="de94bba4-06d1-4d40-a16a-bfd50179d6ac" >> X:\diskpart.txt</Path>
</RunSynchronousCommand>
<RunSynchronousCommand>
<Order>13</Order>
<Path>cmd.exe /c echo GPT ATTRIBUTES=0x8000000000000001 >> X:\diskpart.txt</Path>
</RunSynchronousCommand>
<RunSynchronousCommand>
<Order>14</Order>
<Path>cmd.exe /c diskpart /s X:\diskpart.txt >> X:\diskpart.log</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>15</Order>
<Path>reg add HKLM\System\Setup\LabConfig /v BypassTPMCheck /t reg_dword /d 0x00000001 /f</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>16</Order>
<Path>reg add HKLM\System\Setup\LabConfig /v BypassSecureBootCheck /t reg_dword /d 0x00000001 /f</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>17</Order>
<Path>reg add HKLM\System\Setup\LabConfig /v BypassRAMCheck /t reg_dword /d 0x00000001 /f</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>18</Order>
<Path>reg add HKLM\System\Setup\LabConfig /v BypassCPUCheck /t reg_dword /d 0x00000001 /f</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>19</Order>
<Path>reg add HKLM\System\Setup\LabConfig /v BypassStorageCheck /t reg_dword /d 0x00000001 /f</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>20</Order>
<Path>reg add HKLM\SYSTEM\Setup\MoSetup /v AllowUpgradesWithUnsupportedTPMOrCPU /t reg_dword /d 0x00000001 /f</Path>
</RunSynchronousCommand>
</RunSynchronous>
</component>
</settings>
</unattend>
Code: Alles auswählen
:Admin
cls
:: BatchGotAdmin
:-------------------------------------
REM --> Check for permissions
IF "%PROCESSOR_ARCHITECTURE%" EQU "amd64" (
>nul 2>&1 "%SYSTEMROOT%\SysWOW64\cacls.exe" "%SYSTEMROOT%\SysWOW64\config\system"
) ELSE (
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
)
REM --> If error flag set, we do not have admin.
if '%errorlevel%' NEQ '0' (
echo Requesting administrative privileges...
goto UACPrompt
) else ( goto gotAdmin )
:UACPrompt
echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
set params= %*
echo UAC.ShellExecute "cmd.exe", "/c ""%~s0"" %params:"=""%", "", "runas", 1 >> "%temp%\getadmin.vbs"
"%temp%\getadmin.vbs"
del "%temp%\getadmin.vbs"
exit /B
:gotAdmin
powershell Add-AppPackage -Register "'C:\Program Files\WindowsApps\*Microsoft.DesktopAppInstaller*neutral_split.language-de_8wekyb3d8bbwe\AppxManifest.xml'" -DisableDevelopmentMode
cls
echo Teste Internetverbindung, bitte warten...
PING -n 1 www.google.com|find "Antwort von " >NUL
IF NOT ERRORLEVEL 1 goto :SUPER
IF ERRORLEVEL 1 goto :PECH
:Super
echo --- VC_redist.x64
powershell winget install --id "Microsoft.VCRedist.2015+.x64" -h --accept-package-agreements --accept-source-agreements >nul
echo --- windowsdesktop-runtime
powershell winget install --id "Microsoft.DotNet.DesktopRuntime.7" -h --accept-package-agreements --accept-source-agreements >nul
echo --- Firefox
winget install --id=Mozilla.Firefox -h --override "INSTALL_MAINTENANCE_SERVICE=false /quiet"
echo --- Thunderbird
winget install --id=Mozilla.Thunderbird -h --override "INSTALL_MAINTENANCE_SERVICE=false /quiet"
echo --- Winrar
powershell winget install --id "RARLab.WinRAR" -h --accept-package-agreements --accept-source-agreements >nul
cls
Echo.
Echo uninstalling Crap Apps
echo.
powershell winget uninstall --id "Microsoft.BingWeather_8wekyb3d8bbwe" -h --accept-source-agreements >nul
powershell winget uninstall --id "Microsoft.BingNews_8wekyb3d8bbwe" -h --accept-source-agreements >nul
powershell winget uninstall --id "Clipchamp.Clipchamp_yxz26nhyzhsrt" -h --accept-source-agreements >nul
powershell winget uninstall --id "Microsoft.GamingApp_8wekyb3d8bbwe" -h --accept-source-agreements >nul
powershell winget uninstall --id "Microsoft.GetHelp_8wekyb3d8bbwe" -h --accept-source-agreements >nul
powershell winget uninstall --id "Microsoft.Getstarted_8wekyb3d8bbwe" -h --accept-source-agreements >nul
powershell winget uninstall --id "Microsoft.MicrosoftOfficeHub_8wekyb3d8bbwe" -h --accept-source-agreements >nul
powershell winget uninstall --id "Microsoft.MicrosoftSolitaireCollection_8wekyb3d8bbwe" -h --accept-source-agreements >nul
powershell winget uninstall --id "MicrosoftTeams_8wekyb3d8bbwe" -h --accept-source-agreements >nul
powershell winget uninstall --id "Microsoft.OneDrive" -h --accept-source-agreements >nul
powershell winget uninstall --id "Microsoft.People_8wekyb3d8bbwe" -h --accept-source-agreements >nul
powershell winget uninstall --id "Microsoft.PowerAutomateDesktop_8wekyb3d8bbwe" -h --accept-source-agreements >nul
powershell winget uninstall --id "Microsoft.Todos_8wekyb3d8bbwe" -h --accept-source-agreements >nul
powershell winget uninstall --id "Microsoft.WindowsFeedbackHub_8wekyb3d8bbwe" -h --accept-source-agreements >nul
powershell winget uninstall --id "Microsoft.Xbox.TCUI_8wekyb3d8bbwe" -h --accept-source-agreements >nul
powershell winget uninstall --id "Microsoft.XboxGameOverlay_8wekyb3d8bbwe" -h --accept-source-agreements >nul
powershell winget uninstall --id "Microsoft.XboxGamingOverlay_8wekyb3d8bbwe" -h --accept-source-agreements >nul
powershell winget uninstall --id "Microsoft.XboxIdentityProvider_8wekyb3d8bbwe" -h --accept-source-agreements >nul
powershell winget uninstall --id "Microsoft.XboxSpeechToTextOverlay_8wekyb3d8bbwe" -h --accept-source-agreements >nul
powershell winget uninstall --id "Microsoft.YourPhone_8wekyb3d8bbwe" -h --accept-source-agreements >nul
powershell winget uninstall --id "MicrosoftCorporationII.MicrosoftFamily_8wekyb3d8bbwe" -h --accept-source-agreements >nul
powershell winget uninstall --id "MicrosoftCorporationII.QuickAssist_8wekyb3d8bbwe" -h --accept-source-agreements >nul
powershell winget uninstall --id "Microsoft.549981C3F5F10_8wekyb3d8bbwe" -h --accept-source-agreements >nul
powershell winget uninstall --id "Microsoft.DevHome" -h --accept-source-agreements >nul
powershell winget uninstall --id "Microsoft.Windows.DevHomeGitHubExtension_8wekyb3d8bbwe" -h --accept-source-agreements >nul
powershell winget uninstall --id "Microsoft.OutlookForWindows_8wekyb3d8bbwe" -h --accept-source-agreements >nul
cls
:Pech
echo --- Winrar key kopieren
copy /Y /V "%WINDIR%\Setup\Files\rarreg.key" "C:\Program Files\WinRAR"
echo --- Edge Icon entfernen
del "%homepath%\desktop\Microsoft Edge.lnk" /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "ContentDeliveryAllowed" /t REG_DWORD /d "0" /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "FeatureManagementEnabled" /t REG_DWORD /d "0" /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "OemPreInstalledAppsEnabled" /t REG_DWORD /d "0" /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "PreInstalledAppsEnabled" /t REG_DWORD /d "0" /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "PreInstalledAppsEverEnabled" /t REG_DWORD /d "0" /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SilentInstalledAppsEnabled" /t REG_DWORD /d "0" /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SoftLandingEnabled" /t REG_DWORD /d "0" /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContentEnabled" /t REG_DWORD /d "0" /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContent-310093Enabled" /t REG_DWORD /d "0" /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContent-338388Enabled" /t REG_DWORD /d "0" /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContent-338389Enabled" /t REG_DWORD /d "0" /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContent-338393Enabled" /t REG_DWORD /d "0" /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContent-353694Enabled" /t REG_DWORD /d "0" /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContent-353696Enabled" /t REG_DWORD /d "0" /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContentEnabled" /t REG_DWORD /d "0" /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SystemPaneSuggestionsEnabled" /t REG_DWORD /d "0" /f
reg add "HKLM\Software\Policies\Microsoft\PushToInstall" /v "DisablePushToInstall" /t REG_DWORD /d "1" /f
reg add "HKLM\Software\Policies\Microsoft\MRT" /v "DontOfferThroughWUAU" /t REG_DWORD /d "1" /f
reg import C:\windows\setup\scripts\Win11_Registry-Tricks.reg
reg add "HKCU\Software\Classes\CLSID\{e88865ea-0e1c-4e20-9aa6-edcd0212c87c}" /v "System.IsPinnedToNameSpaceTree" /t REG_DWORD /d "0" /f
reg add "HKCU\SOFTWARE\Classes\WOW6432Node\CLSID\{e88865ea-0e1c-4e20-9aa6-edcd0212c87c}" /v "System.IsPinnedToNameSpaceTree" /t REG_DWORD /d "0" /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel" /v "{e88865ea-0e1c-4e20-9aa6-edcd0212c87c}" /t REG_DWORD /d "1" /f
taskkill /F /IM explorer.exe & start explorer
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v "EnableLUA" /t "REG_DWORD" /d "1" /f
timeout /t 5
cd /d "%~dp0"
rd /q /s "%WINDIR%\Setup\Files"
cd \
(goto) 2>nul&rd /s /q "%~dp0"
exit
Code: Alles auswählen
Windows Registry Editor Version 5.00
;Datei Als Administrator ausführen
[HKEY_CLASSES_ROOT\regfile\shell\RunAs\command]
@="regedit.exe \"%1\""
[HKEY_CLASSES_ROOT\.cmd\ShellNew]
"NullFile"=""
"ItemName"=hex(2):40,00,43,00,3a,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,00,\
73,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,61,00,63,\
00,70,00,70,00,61,00,67,00,65,00,2e,00,64,00,6c,00,6c,00,2c,00,2d,00,36,00,\
30,00,30,00,33,00,00,00
[HKEY_CLASSES_ROOT\.reg\ShellNew]
"NullFile"=""
"ItemName"=hex(2):40,00,43,00,3a,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,00,\
73,00,5c,00,72,00,65,00,67,00,65,00,64,00,69,00,74,00,2e,00,65,00,78,00,65,\
00,2c,00,2d,00,33,00,30,00,39,00,00,00
;Menüpunkt Endgültig löschen im Kontextmenü hinzufügen
[HKEY_CLASSES_ROOT\AllFilesystemObjects\shell\PermanentDelete]
"ExplorerCommandHandler"="{E9571AB2-AD92-4ec6-8924-4E5AD33790F5}"
"Icon"="%windir%\\System32\\shell32.dll,-240"
"Position"="Bottom"
;Windows Terminal als Administrator
[HKEY_CLASSES_ROOT\Directory\shell\OpenWTHereAsAdmin]
"HasLUAShield"=""
"MUIVerb"="Open in Windows Terminal as administrator"
"Extended"=-
"SubCommands"=""
[HKEY_CLASSES_ROOT\Directory\Shell\OpenWTHereAsAdmin\shell\001flyout]
"MUIVerb"="Default Profile"
"HasLUAShield"=""
[HKEY_CLASSES_ROOT\Directory\Shell\OpenWTHereAsAdmin\shell\001flyout\command]
@="powershell.exe -WindowStyle Hidden \"Start-Process -Verb RunAs cmd.exe -ArgumentList @('/c','start wt.exe','-d','\"\"\"%V\"\"\"')\""
[HKEY_CLASSES_ROOT\Directory\Shell\OpenWTHereAsAdmin\shell\002flyout]
"MUIVerb"="Command Prompt"
"Icon"="imageres.dll,-5324"
[HKEY_CLASSES_ROOT\Directory\Shell\OpenWTHereAsAdmin\shell\002flyout\command]
@="powershell.exe -WindowStyle Hidden \"Start-Process -Verb RunAs cmd.exe -ArgumentList @('/c','start wt.exe','-p','\"\"\"Command Prompt\"\"\"','-d','\"\"\"%V\"\"\"')\""
[HKEY_CLASSES_ROOT\Directory\Shell\OpenWTHereAsAdmin\shell\003flyout]
"MUIVerb"="PowerShell"
"HasLUAShield"=""
"Icon"="powershell.exe"
[HKEY_CLASSES_ROOT\Directory\Shell\OpenWTHereAsAdmin\shell\003flyout\command]
@="powershell.exe -WindowStyle Hidden \"Start-Process -Verb RunAs cmd.exe -ArgumentList @('/c','start wt.exe','-p','\"\"\"Windows PowerShell\"\"\"','-d','\"\"\"%1\"\"\"')\""
[HKEY_CLASSES_ROOT\Directory\Background\shell\OpenWTHereAsAdmin]
"HasLUAShield"=""
"MUIVerb"="Open in Windows Terminal as administrator"
"Extended"=-
"SubCommands"=""
[HKEY_CLASSES_ROOT\Directory\Background\Shell\OpenWTHereAsAdmin\shell\001flyout]
"MUIVerb"="Default Profile"
"HasLUAShield"=""
[HKEY_CLASSES_ROOT\Directory\Background\Shell\OpenWTHereAsAdmin\shell\001flyout\command]
@="powershell.exe -WindowStyle Hidden \"Start-Process -Verb RunAs cmd.exe -ArgumentList @('/c','start wt.exe','-d','\"\"\"%V\"\"\"')\""
[HKEY_CLASSES_ROOT\Directory\Background\Shell\OpenWTHereAsAdmin\shell\002flyout]
"MUIVerb"="Command Prompt"
"Icon"="imageres.dll,-5324"
[HKEY_CLASSES_ROOT\Directory\Background\Shell\OpenWTHereAsAdmin\shell\002flyout\command]
@="powershell.exe -WindowStyle Hidden \"Start-Process -Verb RunAs cmd.exe -ArgumentList @('/c','start wt.exe','-p','\"\"\"Command Prompt\"\"\"','-d','\"\"\"%V\"\"\"')\""
[HKEY_CLASSES_ROOT\Directory\Background\Shell\OpenWTHereAsAdmin\shell\003flyout]
"MUIVerb"="PowerShell"
"HasLUAShield"=""
"Icon"="powershell.exe"
[HKEY_CLASSES_ROOT\Directory\Background\Shell\OpenWTHereAsAdmin\shell\003flyout\command]
@="powershell.exe -WindowStyle Hidden \"Start-Process -Verb RunAs cmd.exe -ArgumentList @('/c','start wt.exe','-p','\"\"\"Windows PowerShell\"\"\"','-d','\"\"\"%V\"\"\"')\""
;kein Lockscreen
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Personalization]
"NoLockScreen"=dword:00000001
;Datei in Besitz nehmen
[HKEY_CLASSES_ROOT\*\shell\runas]
@="Take Ownership"
"NoWorkingDirectory"=""
[HKEY_CLASSES_ROOT\*\shell\runas\command]
@="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administratoren:F"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administratoren:F"
[HKEY_CLASSES_ROOT\Directory\shell\runas]
@="Take Ownership"
"NoWorkingDirectory"=""
[HKEY_CLASSES_ROOT\Directory\shell\runas\command]
@="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant administratoren:F /t"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant administratoren:F /t"
;Windows tools
[HKEY_CLASSES_ROOT\DesktopBackground\Shell\WindowsTools]
"Position"="Bottom"
"Icon"=hex(2):25,00,73,00,79,00,73,00,74,00,65,00,6d,00,72,00,6f,00,6f,00,74,\
00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,69,00,\
6d,00,61,00,67,00,65,00,72,00,65,00,73,00,2e,00,64,00,6c,00,6c,00,2c,00,2d,\
00,31,00,31,00,34,00,00,00
"MUIVerb"="Windows Tools"
[HKEY_CLASSES_ROOT\DesktopBackground\Shell\WindowsTools\command]
@="explorer.exe shell:::{D20EA4E1-3957-11d2-A40B-0C5020524153}"
;Kontextmenü
[-HKEY_CURRENT_USER\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}]
; Bearbeiten mit Notepad++ in Windows 11 contextmenu
[HKEY_CLASSES_ROOT\*\shell\pintohome]
"MUIVerb"="Mit Notepad++ bearbeiten"
[HKEY_CLASSES_ROOT\*\shell\pintohome\command]
@="\"D:\\Software_Tools\\Notepad++\\notepad++.exe\" \"%L\""
;Notepad++ als Standard
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\notepad.exe]
"UseFilter"=dword:00000001
"Debugger"="\"D:\\Software_Tools\\Notepad++\\notepad++.exe\" -notepadStyleCmdline -z"
;Firewall
[HKEY_CLASSES_ROOT\exefile\shell\firewallblock]
@="Setze Firewall Blockierung"
"HasLUAShield"=""
[HKEY_CLASSES_ROOT\exefile\shell\firewallblock\command]
@="\"C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe\" -Executionpolicy ByPass -WindowStyle Hidden -NoLogo -Command \"start powershell -Verb runas -ArgumentList \\\"-NoLogo -WindowStyle Hidden -command `\\\"New-NetFirewallRule -DisplayName ([System.IO.Path]::GetFilenameWithoutExtension('%1')) -Name '%1' -Enabled True -Direction Outbound -Action Block -Program '%1'`\\\"\\\"\""
[HKEY_CLASSES_ROOT\exefile\shell\firewallremove]
@="Entferne Firewall Blockierung"
"HasLUAShield"=""
[HKEY_CLASSES_ROOT\exefile\shell\firewallremove\command]
@="\"C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe\" -Executionpolicy ByPass -WindowStyle Hidden -NoLogo -Command \"start powershell -Verb runas -ArgumentList \\\"-NoLogo -WindowStyle Hidden -command `\\\"Remove-NetFirewallRule -Name '%1'`\\\"\\\"\""
;Entferne Verknüpfungs Pfeile
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons]
"29"="%Windir%\\Blank.ico"
;Doppelte Laufwerke entfernen
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\DelegateFolders\{F5FB2C77-0E2F-4A16-A381-3E560C68BC83}]
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\DelegateFolders\-{F5FB2C77-0E2F-4A16-A381-3E560C68BC83}]
@="Removable Drives"
[-HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\DelegateFolders\{F5FB2C77-0E2F-4A16-A381-3E560C68BC83}]
[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\DelegateFolders\-{F5FB2C77-0E2F-4A16-A381-3E560C68BC83}]
@="Removable Drives"
;Haus Icon weg
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel]
"{F874310E-B6B7-47DC-BC84-B9E6B38F5903}"=dword:00000001
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu]
"{F874310E-B6B7-47DC-BC84-B9E6B38F5903}"=dword:00000001
[HKLM \Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel]
"{F874310E-B6B7-47DC-BC84-B9E6B38F5903}"=dword:00000001
[HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu]
"{F874310E-B6B7-47DC-BC84-B9E6B38F5903}"=dword:00000001
[HKLM\Software\WOW6432Node\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel]
"{F874310E-B6B7-47DC-BC84-B9E6B38F5903}"=dword:00000001
[HKLM\Software\WOW6432Node\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu]
"{F874310E-B6B7-47DC-BC84-B9E6B38F5903}"=dword:00000001
;Ordner anzeigen im Explorer
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{d3162b92-9365-467a-956b-92703aca08af}]
"HideIfEnabled"=-
;Pin to Quick access
[-HKEY_CLASSES_ROOT\AllFilesystemObjects\shell\pintohome]
[HKEY_CLASSES_ROOT\AllFilesystemObjects\shell\pintohome]
"CommandStateHandler"="{b455f46e-e4af-4035-b0a4-cf18d2f6f28e}"
"CommandStateSync"=""
"MUIVerb"="@shell32.dll,-51377"
[HKEY_CLASSES_ROOT\AllFilesystemObjects\shell\pintohome\command]
"DelegateExecute"="{b455f46e-e4af-4035-b0a4-cf18d2f6f28e}"
[-HKEY_CLASSES_ROOT\Drive\shell\pintohome]
[HKEY_CLASSES_ROOT\Drive\shell\pintohome]
"CommandStateHandler"="{b455f46e-e4af-4035-b0a4-cf18d2f6f28e}"
"CommandStateSync"=""
"MUIVerb"="@shell32.dll,-51377"
"NeverDefault"=""
[HKEY_CLASSES_ROOT\Drive\shell\pintohome\command]
"DelegateExecute"="{b455f46e-e4af-4035-b0a4-cf18d2f6f28e}"
[-HKEY_CLASSES_ROOT\Folder\shell\pintohome]
[HKEY_CLASSES_ROOT\Folder\shell\pintohome]
"AppliesTo"="System.ParsingName:<>\"::{679f85cb-0220-4080-b29b-5540cc05aab6}\" AND System.ParsingName:<>\"::{645FF040-5081-101B-9F08-00AA002F954E}\" AND System.IsFolder:=System.StructuredQueryType.Boolean#True"
"MUIVerb"="@shell32.dll,-51377"
[HKEY_CLASSES_ROOT\Folder\shell\pintohome\command]
"DelegateExecute"="{b455f46e-e4af-4035-b0a4-cf18d2f6f28e}"
[-HKEY_CLASSES_ROOT\Network\shell\pintohome]
[HKEY_CLASSES_ROOT\Network\shell\pintohome]
"CommandStateHandler"="{b455f46e-e4af-4035-b0a4-cf18d2f6f28e}"
"CommandStateSync"=""
"MUIVerb"="@shell32.dll,-51377"
"NeverDefault"=""
[HKEY_CLASSES_ROOT\Network\shell\pintohome\command]
"DelegateExecute"="{b455f46e-e4af-4035-b0a4-cf18d2f6f28e}"
;Uhrzeit International
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation]
"RealTimeIsUniversal"=dword:00000001
;Windows Treiber Updates deaktivieren
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate]
"ExcludeWUDriversInQualityUpdate"=dword:00000001
[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Policies\Microsoft\Windows\WindowsUpdate]
"ExcludeWUDriversInQualityUpdate"=dword:00000001
;Autstart beschleunigen
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Serialize]
"StartupDelayInMSec"=dword:00000000
;Start Symbol Links
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
"TaskbarAL"=dword:00000000
;zeige versteckte Dateien und SystemOrdner
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
"Hidden"=dword:00000001
"HideFileExt"=dword:00000000
"ShowSuperHidden"=dword:00000000
;Datei Erweiterung anzeigen
[HKEY_CLASSES_ROOT\.bat\ShellNew]
"NullFile"=""
"ItemName"=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,\
6f,00,74,00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,\
00,61,00,63,00,70,00,70,00,61,00,67,00,65,00,2e,00,64,00,6c,00,6c,00,2c,00,\
2d,00,36,00,30,00,30,00,32,00,00,00
[HKEY_CLASSES_ROOT\.cmd\ShellNew]
"NullFile"=""
"ItemName"=hex(2):40,00,43,00,3a,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,00,\
73,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,61,00,63,\
00,70,00,70,00,61,00,67,00,65,00,2e,00,64,00,6c,00,6c,00,2c,00,2d,00,36,00,\
30,00,30,00,33,00,00,00
[HKEY_CLASSES_ROOT\.reg\ShellNew]
"NullFile"=""
"ItemName"=hex(2):40,00,43,00,3a,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,00,\
73,00,5c,00,72,00,65,00,67,00,65,00,64,00,69,00,74,00,2e,00,65,00,78,00,65,\
00,2c,00,2d,00,33,00,30,00,39,00,00,00
;Ordner entfernen schnellzugriff
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer]
"HubMode"=dword:00000001
;Entgültig löschen
[HKEY_CLASSES_ROOT\AllFilesystemObjects\shell\PermanentDelete]
"ExplorerCommandHandler"="{E9571AB2-AD92-4ec6-8924-4E5AD33790F5}"
"Icon"="%windir%\\System32\\shell32.dll,-240"
"Position"="Bottom"
;Medien Ornder freigabe
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Shares]
"Filme"=hex(7):43,00,41,00,54,00,69,00,6d,00,65,00,6f,00,75,00,74,00,3d,00,30,\
00,00,00,43,00,53,00,43,00,46,00,6c,00,61,00,67,00,73,00,3d,00,32,00,30,00,\
34,00,38,00,00,00,4d,00,61,00,78,00,55,00,73,00,65,00,73,00,3d,00,34,00,32,\
00,39,00,34,00,39,00,36,00,37,00,32,00,39,00,35,00,00,00,50,00,61,00,74,00,\
68,00,3d,00,46,00,3a,00,5c,00,46,00,69,00,6c,00,6d,00,65,00,00,00,50,00,65,\
00,72,00,6d,00,69,00,73,00,73,00,69,00,6f,00,6e,00,73,00,3d,00,38,00,36,00,\
30,00,00,00,52,00,65,00,6d,00,61,00,72,00,6b,00,3d,00,00,00,53,00,68,00,61,\
00,72,00,65,00,4e,00,61,00,6d,00,65,00,3d,00,46,00,69,00,6c,00,6d,00,65,00,\
00,00,54,00,79,00,70,00,65,00,3d,00,30,00,00,00,00,00
"Serien"=hex(7):43,00,41,00,54,00,69,00,6d,00,65,00,6f,00,75,00,74,00,3d,00,30,\
00,00,00,43,00,53,00,43,00,46,00,6c,00,61,00,67,00,73,00,3d,00,32,00,30,00,\
34,00,38,00,00,00,4d,00,61,00,78,00,55,00,73,00,65,00,73,00,3d,00,34,00,32,\
00,39,00,34,00,39,00,36,00,37,00,32,00,39,00,35,00,00,00,50,00,61,00,74,00,\
68,00,3d,00,46,00,3a,00,5c,00,53,00,65,00,72,00,69,00,65,00,6e,00,00,00,50,\
00,65,00,72,00,6d,00,69,00,73,00,73,00,69,00,6f,00,6e,00,73,00,3d,00,38,00,\
36,00,30,00,00,00,52,00,65,00,6d,00,61,00,72,00,6b,00,3d,00,00,00,53,00,68,\
00,61,00,72,00,65,00,4e,00,61,00,6d,00,65,00,3d,00,53,00,65,00,72,00,69,00,\
65,00,6e,00,00,00,54,00,79,00,70,00,65,00,3d,00,30,00,00,00,00,00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Shares\Security]
"Filme"=hex:01,00,04,80,48,00,00,00,64,00,00,00,00,00,00,00,14,00,00,00,02,00,\
34,00,02,00,00,00,00,03,18,00,ff,01,1f,00,01,02,00,00,00,00,00,05,20,00,00,\
00,20,02,00,00,00,03,14,00,ff,01,1f,00,01,01,00,00,00,00,00,01,00,00,00,00,\
01,05,00,00,00,00,00,05,15,00,00,00,5e,ff,70,d0,16,92,f4,98,61,e8,f1,a7,e8,\
03,00,00,01,05,00,00,00,00,00,05,15,00,00,00,5e,ff,70,d0,16,92,f4,98,61,e8,\
f1,a7,01,02,00,00
"Serien"=hex:01,00,04,80,48,00,00,00,64,00,00,00,00,00,00,00,14,00,00,00,02,00,\
34,00,02,00,00,00,00,03,18,00,ff,01,1f,00,01,02,00,00,00,00,00,05,20,00,00,\
00,20,02,00,00,00,03,14,00,ff,01,1f,00,01,01,00,00,00,00,00,01,00,00,00,00,\
01,05,00,00,00,00,00,05,15,00,00,00,5e,ff,70,d0,16,92,f4,98,61,e8,f1,a7,e8,\
03,00,00,01,05,00,00,00,00,00,05,15,00,00,00,5e,ff,70,d0,16,92,f4,98,61,e8,\
f1,a7,01,02,00,00
;Edge keine Verknüpfung
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\EdgeUpdate]
"CreateDesktopShortcut{56EB18F8-B008-4CBD-B6D2-8C97FE7E9062}"=dword:00000000
;add-long-paths-enabled
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem]
"LongPathsEnabled"=dword:00000001
;FileBot context mneü
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\shell\FileBotCommands]
"MUIVerb"="FileBot"
"SubCommands"="FileBotRenameMovie;FileBotRenameSeriesTheMovieDB;FileBotRenameSeriesTheTVDB"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\FileBotCommands]
"MUIVerb"="FileBot"
"SubCommands"="FileBotRenameMovie;FileBotRenameSeriesTheMovieDB;FileBotRenameSeriesTheTVDB;FileBotFetchArtwork"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\FileBotRenameMovie]
@="Rename Movie"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\FileBotRenameMovie\command]
@="cmd /c filebot --lang German -rename -r \"%1\" --db TheMovieDB -non-strict --format \"{plex.name}\" --apply reveal --log-file context.log"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\FileBotRenameSeriesTheMovieDB]
@="Rename TV TheMovieDB"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\FileBotRenameSeriesTheMovieDB\command]
@="cmd /c filebot --lang German -rename -r \"%1\" --db TheMovieDB::TV -non-strict --format \"{plex.name}\" --apply reveal --log-file context.log"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\FileBotRenameSeriesTheTVDB]
@="Rename TV TheTVDB"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\FileBotRenameSeriesTheTVDB\command]
@="cmd /c filebot --lang German -rename -r \"%1\" --db TheTVDB -non-strict --format \"{plex.name}\" --apply reveal --log-file context.log"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\FileBotFetchArtwork]
@="Fetch Artwork"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\FileBotFetchArtwork\command]
@="cmd /c filebot --lang German -mediainfo -r \"%1\" -non-strict --apply artwork cover nfo url --log-file context.log"
;häufig genutzte Befehle in Ausführen
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU]
"MRUList"="abcdefgh"
"a"="taskmgr\\1"
"b"="calc\\1"
"c"="regedit\\1"
"d"="shutdown -r -f -t 0\\1"
"e"="winver\\1"
"f"="cmd\\1"
"g"="Powershell\\1"
"h"="taskkill /im msedge.exe /f\\1"