The pipe character is used when you are directing one program's output to another program as an input for further processing. When you are directly running the command in the command prompt you need to | When you are using the | character in batch files for other purpose you need to use it as ^| The subkeys and registry values associated with the HKEY_LOCAL_MACHINE\SOFTWARE\Classes key contain information about an application that is needed to support COM functionality. This information includes such topics as supported data formats, compatibility information, programmatic identifiers, DCOM, and con Is a subkey of HKEY_LOCAL_MACHINE\Software. The information that is stored here makes sure that the correct program opens when you open a file by using Windows Explorer. This key is sometimes abbreviated as HKCR. Starting with Windows 2000, this information is stored under both the HKEY_LOCAL_MACHINE and HKEY_CURRENT_USER keys. The HKEY_LOCAL_MACHINE\Software\Classes key contains default settings that can apply to all users on the local computer. The HKEY_CURRENT_USER\Software\Classes key contains settings that override the default settings and apply only to the interactive user. The HKEY_CLASSES_ROOT key provides a view of the registry that merges the information from these two sources. HKEY_CLASSES_ROOT also provides this merged view for programs that are designed for earlier versions of Windows. To change the settings for the interactive user, changes must be made under HKEY_CURRENT_USER\Software\Classes instead of under HKEY_CLASSES_ROOT. To change the default settings, changes must be made under HKEY_LOCAL_MACHINE\Software\Classes. If you write keys to a key under HKEY_CLASSES_ROOT, the system stores the information under HKEY_LOCAL_MACHINE\Software\Classes. If you write values to a key under HKEY_CLASSES_ROOT, and the key already exists under HKEY_CURRENT_USER\Software\Classes, the system will store the information there instead of under HKEY_LOCAL_MACHINE\Software\Classes. Writing to HKLM\TK_SOFTWARE\Classes will write into HKLM\TK_SOFTWARE\Classes\
Code: ####Starting Applying Tweaks################################################### ------------------------------------------------------------------------------- Image : Install.wim Image Index : 1 Image Architecture : x64 Image Version : 10.0.22000.194.0 ------------------------------------------------------------------------------- ####Applying Disable Windows 11 Installer Hardware Check####################### ------------------------------------------------------------------------------- Mounting Image Registry... Un-Mounting Image Registry... Ошибка в синтаксисе команды. ===========================[Install.wim, Index : 1]============================ Mounting Image Registry... Importing Registry Settings to Image Registry... Un-Mounting Image Registry... ------------------------------------------------------------------------------- ####Finished Applying Tweaks################################################### ------------------------------------------------------------------------------- =============================================================================== Для продолжения нажмите любую клавишу . . . ####Applying Disable Windows 11 Installer Hardware Check####################### ------------------------------------------------------------------------------- Mounting Image Registry... Un-Mounting Image Registry... Ошибка в синтаксисе команды. Confuses fat. Latest versions of files.
The problem was that C: \ Toolkit_v11.8 was on the path C: \ Toolkit_v11.8, as always I had. So the last files Toolkit.cmd and ToolKitHelper.exe conflict with my main system Windows 10 Pro 21H1 19043.1237 x64 ru, which has not happened for 4 days. Moved the entire project to drive E: \ Toolkit_v11.8 no problem, MicrosoftWindows.Client.WebExperience deletes without errors. An interesting case, for the first time. Thank you all for your help and feedback.
With previous version of ToolKitHelper.exe it was skipping the deletion of Apps folder and that's why it was not giving error, now with new workaround it's working properly.
When deleting "WindowsInsiderHub" the record remains. All files are latest Tool Kit Helper and Toolkit
Yes in Windows 11 MS has changed the page name for Windows Insider Hub, using the old page name totally hides the Windows update section. Don't worry when the WindowsInsiderHub is removed it's totally non-functional. Will update once MS updates the info about the settings pages for Windows 11.
@MSMG Maybe I do something wrong.... I tested with 11.7 and 11.8 and I got same result. I used the files that are in Packs / I downloaded twice just in case / same. Spoiler: screen capture
What ever present in the VC++ Pack by abbodi1406 has been ported to Toolkit pack format, will check what's causing the error.
Why not keep the "Manual Setup" as it was before? Since only removes files and folders directly from the DVD folder and nothing inside the Mount folder of the install.wim. It could even be a direct option in the ":RemoveWindowsComponentsMenu" with: Code: if errorlevel x call :RemoveWindowsManualSetup Knowing it does not require dism or toolkithelper, removal is super fast.
I never used nsudo to execute toolkit cmd rather i use powerrun by sordum & i havent faced any error since i started using msmg toolkit . powerrun is already integerated to context menu as "Run as TI" . i directly right click on toolkit.cmd & run as ti from context menu . It always worked like a charm for me in every use.
So... Writing to "HKLM\TK_SOFTWARE\Classes" will write into HKEY_LOCAL_MACHINE\Software\Classes. Registy entries via manual file application, already tested and knowing that they work correctly. I decided to put some "HKCR\" entries directly in the Custom Toolkit code as "HKLM\TK_SOFTWARE\Classes" for testing. These serve to translate the context menus from PowerShell7 to pt-BR, but it did not work. Tested in an image build 22000.194. Soon after installation, I tested again with the reg file and it worked right. Any other suggestion?
Sorry small correction, Writing to HKLM\TK_SOFTWARE\Classes will write into HKCR or Writing to HKEY_LOCAL_MACHINE\TK_SOFTWARE\Classes will write into HKEY_CLASSES_ROOT What's the registry tweak you tried?
Using the C# the coding is less for cleaning the DVD folder, Will think of reverting back to old method since many people use ToolKitHelper directly outside the Toolkit.
Code: if "!T_GeneralTweaks!" equ "+" ( for %%l in ( pt-BR pt-PT ) do ( if /i "%ImageDefaultLanguage%" equ "%%l" set "TweakLanguage=1" ) ) for %%i in (!ImageIndexNo!) do ( if exist "%InstallMount%\%%i" ( echo. if not %%i gtr 9 echo.===========================[Install.wim, Index : %%i]============================ if %%i gtr 9 echo.==========================[Install.wim, Index : %%i]============================ call :GetImageEdition "%InstallWim%", %%i if exist "%InstallMount%\%%i\Windows\System32\wsl.exe" ( echo.Microsoft-Windows-Subsystem-Linux is enabled. set "TweakWSL=1" ) echo. echo.------------------------------------------------------------------------------- echo.##### Applying Registry Tweaks ################################################ echo.------------------------------------------------------------------------------- echo. echo.Mounting Image Registry... call :MountImageRegistry "%InstallMount%\%%i" echo.Importing Registry Settings to Image Registry... reg.exe add "HKLM\TK_SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce" /v "DeleteAllUserPinnedIcons" /t REG_SZ /d "DEL /F /S /Q /A "%%AppData%%\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar\*"" /f >nul 2>&1 reg.exe delete "HKLM\TK_NTUSER\Software\Microsoft\Windows\CurrentVersion\Explorer\Taskband" /f >nul 2>&1 reg.exe delete "HKLM\TK_DEFAULT\Software\Microsoft\Windows\CurrentVersion\Explorer\Taskband" /f >nul 2>&1 if "%SelectedSourceOS%" equ "w11" reg.exe add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows" /v "HideRecentlyAddedApps" /t REG_DWORD /d "1" /f >nul 2>&1 if "!T_GeneralTweaks!" equ "+" ( echo. echo.##### General Tweaks ##### reg.exe delete "HKLM\TK_SOFTWARE\Classes\Directory\shell\PromptMenu" /f >nul 2>&1 reg.exe delete "HKLM\TK_SOFTWARE\Classes\Directory\Background\shell\PromptMenu" /f >nul 2>&1 reg.exe delete "HKLM\TK_SOFTWARE\Classes\Drive\shell\PromptMenu" /f >nul 2>&1 reg.exe delete "HKLM\TK_SOFTWARE\Classes\Directory\ContextMenus\PromptMenu" /f >nul 2>&1 reg.exe delete "HKLM\TK_SOFTWARE\Classes\Directory\shell\WindowsSubsystem4Linux" /f >nul 2>&1 reg.exe delete "HKLM\TK_SOFTWARE\Classes\Directory\Background\shell\WindowsSubsystem4Linux" /f >nul 2>&1 reg.exe delete "HKLM\TK_SOFTWARE\Classes\Drive\shell\WindowsSubsystem4Linux" /f >nul 2>&1 reg.exe delete "HKLM\TK_SOFTWARE\Classes\Directory\ContextMenus\WindowsSubsystem4Linux" /f >nul 2>&1 reg.exe add "HKLM\TK_SOFTWARE\Classes\Directory\Background\shell\PromptMenu" /v "Icon" /t reg_SZ /d "cmd.exe" /f >nul 2>&1 reg.exe add "HKLM\TK_SOFTWARE\Classes\Directory\Background\shell\PromptMenu" /v "ExtendedSubCommandsKey" /t reg_SZ /d "Directory\ContextMenus\PromptMenu" /f >nul 2>&1 reg.exe add "HKLM\TK_SOFTWARE\Classes\Directory\Background\shell\PromptMenu" /v "NoWorkingDirectory" /t reg_SZ /d "" /f >nul 2>&1 reg.exe add "HKLM\TK_SOFTWARE\Classes\Directory\shell\PromptMenu" /v "Icon" /t reg_SZ /d "cmd.exe" /f >nul 2>&1 reg.exe add "HKLM\TK_SOFTWARE\Classes\Directory\shell\PromptMenu" /v "ExtendedSubCommandsKey" /t reg_SZ /d "Directory\ContextMenus\PromptMenu" /f >nul 2>&1 reg.exe add "HKLM\TK_SOFTWARE\Classes\Directory\shell\PromptMenu" /v "NoWorkingDirectory" /t reg_SZ /d "" /f >nul 2>&1 reg.exe add "HKLM\TK_SOFTWARE\Classes\Drive\shell\PromptMenu" /v "Icon" /t reg_SZ /d "cmd.exe" /f >nul 2>&1 reg.exe add "HKLM\TK_SOFTWARE\Classes\Drive\shell\PromptMenu" /v "ExtendedSubCommandsKey" /t reg_SZ /d "Directory\ContextMenus\PromptMenu" /f >nul 2>&1 reg.exe add "HKLM\TK_SOFTWARE\Classes\Drive\shell\PromptMenu" /v "NoWorkingDirectory" /t reg_SZ /d "" /f >nul 2>&1 reg.exe add "HKLM\TK_SOFTWARE\Classes\Directory\ContextMenus\PromptMenu\shell\open" /v "Icon" /t reg_SZ /d "cmd.exe" /f >nul 2>&1 reg.exe add "HKLM\TK_SOFTWARE\Classes\Directory\ContextMenus\PromptMenu\shell\open\command" /ve /t reg_SZ /d "cmd.exe /s /k pushd \"%%V\"" /f >nul 2>&1 reg.exe add "HKLM\TK_SOFTWARE\Classes\Directory\ContextMenus\PromptMenu\shell\runas" /v "Icon" /t reg_SZ /d "cmd.exe" /f >nul 2>&1 reg.exe add "HKLM\TK_SOFTWARE\Classes\Directory\ContextMenus\PromptMenu\shell\runas" /v "HasLUAShield" /t reg_SZ /d "" /f >nul 2>&1 reg.exe add "HKLM\TK_SOFTWARE\Classes\Directory\ContextMenus\PromptMenu\shell\runas\command" /ve /t reg_SZ /d "cmd.exe /s /k pushd \"%%V\"" /f >nul 2>&1 reg.exe add "HKLM\TK_SOFTWARE\Classes\Directory\Background\shell\WindowsSubsystem4Linux" /v "Icon" /t reg_SZ /d "wsl.exe" /f >nul 2>&1 reg.exe add "HKLM\TK_SOFTWARE\Classes\Directory\Background\shell\WindowsSubsystem4Linux" /v "ExtendedSubCommandsKey" /t reg_SZ /d "Directory\ContextMenus\WindowsSubsystem4Linux" /f >nul 2>&1 reg.exe add "HKLM\TK_SOFTWARE\Classes\Directory\Background\shell\WindowsSubsystem4Linux" /v "NoWorkingDirectory" /t reg_SZ /d "" /f >nul 2>&1 if "!TweakWSL!" equ "1" ( reg.exe add "HKLM\TK_SOFTWARE\Classes\Directory\shell\WindowsSubsystem4Linux" /v "Icon" /t reg_SZ /d "wsl.exe" /f >nul 2>&1 reg.exe add "HKLM\TK_SOFTWARE\Classes\Directory\shell\WindowsSubsystem4Linux" /v "ExtendedSubCommandsKey" /t reg_SZ /d "Directory\ContextMenus\WindowsSubsystem4Linux" /f >nul 2>&1 reg.exe add "HKLM\TK_SOFTWARE\Classes\Directory\shell\WindowsSubsystem4Linux" /v "NoWorkingDirectory" /t reg_SZ /d "" /f >nul 2>&1 reg.exe add "HKLM\TK_SOFTWARE\Classes\Drive\shell\WindowsSubsystem4Linux" /v "Icon" /t reg_SZ /d "wsl.exe" /f >nul 2>&1 reg.exe add "HKLM\TK_SOFTWARE\Classes\Drive\shell\WindowsSubsystem4Linux" /v "ExtendedSubCommandsKey" /t reg_SZ /d "Directory\ContextMenus\WindowsSubsystem4Linux" /f >nul 2>&1 reg.exe add "HKLM\TK_SOFTWARE\Classes\Drive\shell\WindowsSubsystem4Linux" /v "NoWorkingDirectory" /t reg_SZ /d "" /f >nul 2>&1 reg.exe add "HKLM\TK_SOFTWARE\Classes\Directory\ContextMenus\WindowsSubsystem4Linux\shell\open" /v "Icon" /t reg_SZ /d "wsl.exe" /f >nul 2>&1 reg.exe add "HKLM\TK_SOFTWARE\Classes\Directory\ContextMenus\WindowsSubsystem4Linux\shell\open\command" /ve /t reg_SZ /d "wsl.exe --cd \"%%V\"" /f >nul 2>&1 reg.exe add "HKLM\TK_SOFTWARE\Classes\Directory\ContextMenus\WindowsSubsystem4Linux\shell\runas" /v "Icon" /t reg_SZ /d "wsl.exe" /f >nul 2>&1 reg.exe add "HKLM\TK_SOFTWARE\Classes\Directory\ContextMenus\WindowsSubsystem4Linux\shell\runas" /v "HasLUAShield" /t reg_SZ /d "" /f >nul 2>&1 reg.exe add "HKLM\TK_SOFTWARE\Classes\Directory\ContextMenus\WindowsSubsystem4Linux\shell\runas\command" /ve /t reg_SZ /d "wsl.exe --cd \"%%V\"" /f >nul 2>&1 ) if "!TweakLanguage!" equ "" ( reg.exe add "HKLM\TK_SOFTWARE\Classes\Directory\Background\shell\PromptMenu" /v "MUIVerb" /t reg_SZ /d "&Command Prompt" /f >nul 2>&1 reg.exe add "HKLM\TK_SOFTWARE\Classes\Directory\shell\PromptMenu" /v "MUIVerb" /t reg_SZ /d "&Command Prompt" /f >nul 2>&1 reg.exe add "HKLM\TK_SOFTWARE\Classes\Drive\shell\PromptMenu" /v "MUIVerb" /t reg_SZ /d "&Command Prompt" /f >nul 2>&1 reg.exe add "HKLM\TK_SOFTWARE\Classes\Directory\ContextMenus\PromptMenu\shell\open" /v "MUIVerb" /t reg_SZ /d "Open &here" /f >nul 2>&1 reg.exe add "HKLM\TK_SOFTWARE\Classes\Directory\ContextMenus\PromptMenu\shell\runas" /v "MUIVerb" /t reg_SZ /d "Open here as &Administrator" /f >nul 2>&1 if "!TweakWSL!" equ "1" ( reg.exe add "HKLM\TK_SOFTWARE\Classes\Directory\Background\shell\WindowsSubsystem4Linux" /v "MUIVerb" /t reg_SZ /d "&Windows Subsystem for Linux" /f >nul 2>&1 reg.exe add "HKLM\TK_SOFTWARE\Classes\Directory\shell\WindowsSubsystem4Linux" /v "MUIVerb" /t reg_SZ /d "&Windows Subsystem for Linux" /f >nul 2>&1 reg.exe add "HKLM\TK_SOFTWARE\Classes\Drive\shell\WindowsSubsystem4Linux" /v "MUIVerb" /t reg_SZ /d "&Windows Subsystem for Linux" /f >nul 2>&1 reg.exe add "HKLM\TK_SOFTWARE\Classes\Directory\ContextMenus\WindowsSubsystem4Linux\shell\open" /v "MUIVerb" /t reg_SZ /d "Open &here" /f >nul 2>&1 reg.exe add "HKLM\TK_SOFTWARE\Classes\Directory\ContextMenus\WindowsSubsystem4Linux\shell\runas" /v "MUIVerb" /t reg_SZ /d "Open here as &Administrator" /f >nul 2>&1 ) ) else ( reg.exe add "HKLM\TK_SOFTWARE\Classes\Directory\Background\shell\PromptMenu" /v "MUIVerb" /t reg_SZ /d "&Prompt de Comando" /f >nul 2>&1 reg.exe add "HKLM\TK_SOFTWARE\Classes\Directory\shell\PromptMenu" /v "MUIVerb" /t reg_SZ /d "&Prompt de Comando" /f >nul 2>&1 reg.exe add "HKLM\TK_SOFTWARE\Classes\Drive\shell\PromptMenu" /v "MUIVerb" /t reg_SZ /d "&Prompt de Comando" /f >nul 2>&1 reg.exe add "HKLM\TK_SOFTWARE\Classes\Directory\ContextMenus\PromptMenu\shell\open" /v "MUIVerb" /t reg_SZ /d "Abrir &aqui" /f >nul 2>&1 reg.exe add "HKLM\TK_SOFTWARE\Classes\Directory\ContextMenus\PromptMenu\shell\runas" /v "MUIVerb" /t reg_SZ /d "Abrir aqui como &Administrador" /f >nul 2>&1 if "!TweakWSL!" equ "1" ( reg.exe add "HKLM\TK_SOFTWARE\Classes\Directory\Background\shell\WindowsSubsystem4Linux" /v "MUIVerb" /t reg_SZ /d "&Subsistema do Windows para Linux" /f >nul 2>&1 reg.exe add "HKLM\TK_SOFTWARE\Classes\Directory\shell\WindowsSubsystem4Linux" /v "MUIVerb" /t reg_SZ /d "&Subsistema do Windows para Linux" /f >nul 2>&1 reg.exe add "HKLM\TK_SOFTWARE\Classes\Drive\shell\WindowsSubsystem4Linux" /v "MUIVerb" /t reg_SZ /d "&Subsistema do Windows para Linux" /f >nul 2>&1 reg.exe add "HKLM\TK_SOFTWARE\Classes\Directory\ContextMenus\WindowsSubsystem4Linux\shell\open" /v "MUIVerb" /t reg_SZ /d "Abrir &aqui" /f >nul 2>&1 reg.exe add "HKLM\TK_SOFTWARE\Classes\Directory\ContextMenus\WindowsSubsystem4Linux\shell\runas" /v "MUIVerb" /t reg_SZ /d "Abrir aqui como &Administrador" /f >nul 2>&1 ) reg.exe add "HKLM\TK_SOFTWARE\Classes\Directory\ContextMenus\PowerShell7x64\shell\openpwsh" /v "MUIVerb" /t reg_SZ /d "Abrir &aqui" /f >nul 2>&1 reg.exe add "HKLM\TK_SOFTWARE\Classes\Directory\ContextMenus\PowerShell7x64\shell\runas" /v "MUIVerb" /t reg_SZ /d "Abrir aqui como &Administrador" /f >nul 2>&1 reg.exe add "HKLM\TK_SOFTWARE\Classes\Directory\ContextMenus\PowerShell7x86\shell\openpwsh" /v "MUIVerb" /t reg_SZ /d "Abrir &aqui" /f >nul 2>&1 reg.exe add "HKLM\TK_SOFTWARE\Classes\Directory\ContextMenus\PowerShell7x86\shell\runas" /v "MUIVerb" /t reg_SZ /d "Abrir aqui como &Administrador" /f >nul 2>&1 ) ) echo. echo.Un-Mounting Image Registry... call :UnMountImageRegistry set TweakWSL= ) ) Part of the PowerShell I just added to PT-BR and PT-PT because it is not translated here. PromptMenu and WSL are additions to improve the experience of use. It would be very interesting to get the multilingual "MUIVerb"="@shell32.dll,-xxxxx" code to "open here" and the code to "open here as an administrator," but I do not know where to find. The code made available by Abbodi is to open Command Prompt here. There it does not suit for PowerShell and WSL. Note: I maintain the .exe for security issue. Once I created a dism.cmd inside the toolkit folder that gave me a headache... kkkkk where I had a variable pointing to the path of the dism defined at the beginning of the toolkit "%dism%", everything was right, but where it was Only "dism" you gave everything wrong. Edit: now it is working.
Hi guys. Help me to disable online account setup during installation. (in win 10 just add in register "Hide Online Account Screens"=dword:00000001, but seems it doesn't work in windows 11)