Any tweak exist to ungroup taskbar icons so they all show up without having to click the up arrow icon?
open regedit, go to HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced, create a 32 dword, name it TaskbarGlomLevel, and set its value to 2
You can try this: Code: reg.exe add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx" /v TITLE /d "Installing my scripts" /f >nul 2>&1 reg.exe add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\0001" /ve /d "1st script" /f >nul 2>&1 reg.exe add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\0001" /v "0001" /d \""Path\script1.cmd\"" /f >nul 2>&1 reg.exe add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\0002" /ve /d "2nd script" /f >nul 2>&1 reg.exe add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\0002" /v "0001" /d \""Path\script2.cmd\"" /f >nul 2>&1 Edit: typo Patch ->Path
Thanks for the help I need to add all these registry keys to the image ? EDIT : I looked, but I didn't understand how to specify my .cmd file with these commands (I only have one .cmd file). Which contains several commands and a .reg file. Otherwise with this command, would it be ok ? cmd.exe D:\myscript.cmd Add to HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce ?
Modifying install.wim is no problem, I do it every month with the LCU, etc. But I can't say the same for scripts when it gets too technical I already have a SetupComplete.cmd file in sources\$OEM$ for "Before Logon" My script must be used for "After Logon" (once the user is "created") And I just want to know if it is possible to do it with just 1 command line and not add each command (and each .reg file converted to command line) In short, a command line (or a possible shortcut placed on the desktop) which launches this .cmd file just after installing Windows
So, my first answer was correct. Use "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx" key to launch your script. It will be executed at firstlogon.
Ok thanks And what should I add ? In your first post, there are keys for two scripts, I only have one (what I didn't understand)
I use the $OEM$ folder inside the Sources folder. See the attached package, with illustrative images. You can place your files: - .CMD and BAT inside the BAT folder - .REG inside the REG folder - .EXE inside the APP folder Add the lines below to your setupcomplete.cmd SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx REG ADD %KEY%\010 /V 1 /D "%SYSTEMDRIVE%\Windows\Setup\RunOnceEx.cmd" /f This way the RunonceEx.cmd script will be executed after the first login and will execute all your commands... Good luck! psw: mdl2025
Is there a way to change the display order of SSDs in Task Manager ? On a PC, I have the D at the top and the C at the bottom Thanks Other than changing the port on the motherboard
Interesting share, just a snipe from MRP project part of code remove AI \ Copy Pilot should be run from batch file only i didn't check it, just share it here Code: reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore\Deprovisioned\MicrosoftWindows.Client.AIX_cw5n1h2txyewy" /f >NUL 2>&1 reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore\Deprovisioned\MicrosoftWindows.Client.AIX_cw5n1h2txyewy" /ve /t REG_SZ /d "" /f >NUL 2>&1 reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore\Deprovisioned\MicrosoftWindows.Client.AIX_cw5n1h2txyewy" /f >NUL 2>&1 reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore\Deprovisioned\MicrosoftWindows.Client.AIX_cw5n1h2txyewy" /ve /t REG_SZ /d "" /f >NUL 2>&1 powershell-Command "Get-AppxProvisionedPackage -Online | Where-Object {$_.packagename -like '*Client.AIX*'} | Remove-AppxProvisionedPackage -Online" >NUL 2>&1 powershell-noprofile -executionpolicy bypass -command "Get-WmiObject -Query 'select * from Win32_Product where Name like \"%%%%Client.AIX%%%%\"' | ForEach-Object { ($_).Uninstall()}" >NUL 2>&1 powershell-noprofile -executionpolicy bypass -command "Get-AppxPackage -Name *Client.AIX* -AllUsers | Foreach {Remove-AppxPackage $_.PackageFullName -AllUsers}" >NUL 2>&1 powershell-noprofile -executionpolicy bypass -command "Get-ProvisionedAppxPackage -Online | Where-Object { $_.PackageName -match 'Client.AIX' } | ForEach-Object { Remove-ProvisionedAppxPackage -Online -AllUsers -PackageName $_.PackageName }" >NUL 2>&1 powershell-noprofile -executionpolicy bypass -command "Get-ProvisionedAppxPackage -Online | Where-Object { $_.PackageName -match 'Client.CoPilot' } | ForEach-Object { Remove-ProvisionedAppxPackage -Online -AllUsers -PackageName $_.PackageName }" >NUL 2>&1 powershell-noprofile -executionpolicy bypass -command "Get-ProvisionedAppxPackage -Online | Where-Object { $_.PackageName -match 'Ai.Copilot.Provider' } | ForEach-Object { Remove-ProvisionedAppxPackage -Online -AllUsers -PackageName $_.PackageName }" >NUL 2>&1 powershell-noprofile -executionpolicy bypass -command "Get-ProvisionedAppxPackage -Online | Where-Object { $_.PackageName -match 'Copilot' } | ForEach-Object { Remove-ProvisionedAppxPackage -Online -AllUsers -PackageName $_.PackageName }" >NUL 2>&1 powershell-noprofile -executionpolicy bypass -command "Remove-Item -Path "$env:LOCALAPPDATA\CoreAIPlatform*" -Force -Recurse -ErrorAction SilentlyContinue" >NUL 2>&1 reg add "HKCU\SOFTWARE\Policies\Microsoft\Windows\WindowsAI" /v "DisableAIDataAnalysis" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsAI" /v "DisableAIDataAnalysis" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKCU\Software\Policies\Microsoft\Windows\WindowsCopilot" /v "TurnOffWindowsCopilot" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsCopilot" /v "TurnOffWindowsCopilot" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v "AllowTemporaryEnterpriseFeatureControl" /t REG_DWORD /d "0" /f >nul 2>&1 reg delete "HKLM\SOFTWARE\Policies\Microsoft\Windows\Appx" /v "MdmHosts" /f >nul 2>&1 powershell-Command "Remove-ItemProperty -Path "HKLM:\Software\Policies\Microsoft\Windows\Appx" -Name "MdmHosts" -Force" >NUL 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Appx" /f >nul 2>&1 powershell-Command "Set-ItemProperty -Path "HKLM:\Software\Policies\Microsoft\Windows\Appx" -Name "RestrictAppDataToSystemVolume" -Type DWORD -Value "1" -Force" >NUL 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\MDM" /v "DisableRegistration" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\MDM" /v "AutoEnrollMDM" /t REG_DWORD /d "0" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Explorer" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Explorer" /v "HideCopilotButton" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Microsoft\PolicyManager\default\Start\HideCopilotButton" /v "value" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "ShowCopilotButton" /t REG_DWORD /d "0" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Explorer" /v "DisableSearchBoxSuggestions" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsCopilot" /v "TurnOffWindowsCopilot" /t REG_DWORD /d "1" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Edge" /v "HubsSidebarEnabled" /t REG_DWORD /d "0" /f >nul 2>&1 reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "ShowCopilotButton" /t REG_DWORD /d "0" /f >nul 2>&1 reg add "HKCU\Software\Microsoft\input\Settings" /v "InsightsEnabled" /t REG_DWORD /d "0" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Edge" /v "CopilotCDPPageContext" /t REG_DWORD /d "0" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Edge" /v "CopilotPageContext" /t REG_DWORD /d "0" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Edge" /v "DiscoverPageContextEnabled" /t REG_DWORD /d "0" /f >nul 2>&1 powershell-ExecutionPolicy Unrestricted -Command "$data = '0';reg add 'HKLM\Software\Microsoft\Windows\Shell\Copilot\BingChat' /v 'IsUserEligible' /t 'REG_DWORD' /d "^""$data"^"" /f" >nul 2>&1 powershell-ExecutionPolicy Unrestricted -Command "$data = '0';reg add 'HKCU\Software\Microsoft\Windows\Shell\Copilot\BingChat' /v 'IsUserEligible' /t 'REG_DWORD' /d "^""$data"^"" /f" >nul 2>&1 powershell-ExecutionPolicy Unrestricted -Command "$data = '0';reg add 'HKLM\Software\Microsoft\Windows\CurrentVersion\Notifications\Settings' /v 'AutoOpenCopilotLargeScreens' /t 'REG_DWORD' /d "^""$data"^"" /f" >nul 2>&1 powershell-ExecutionPolicy Unrestricted -Command "$data = '0';reg add 'HKCU\Software\Microsoft\Windows\CurrentVersion\Notifications\Settings' /v 'AutoOpenCopilotLargeScreens' /t 'REG_DWORD' /d "^""$data"^"" /f" >nul 2>&1 pause
this is my origional code for AI Privacy Code: >nul 2>&1 dism.exe /online /disable-feature /FeatureName:recall /noRestart >nul 2>&1 reg add "HKCU\Software\Microsoft\Windows\Shell\Copilot" /f /v IsCopilotAvailable /t reg_dword /d 00000000 >nul 2>&1 reg add "HKCU\Software\Microsoft\Windows\Shell\Copilot\BingChat" /f /v IsUserEligible /t reg_dword /d 00000000 >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsAI" /f /v DisableAIDataAnalysis /t reg_dword /d 00000001 >nul 2>&1 reg add "HKCU\Software\Policies\Microsoft\Windows\WindowsCopilot" /f /v TurnOffWindowsCopilot /t reg_dword /d 00000001 >nul 2>&1 reg add "HKCU\Software\Microsoft\Windows\Shell\Copilot" /f /v CopilotDisabledReason /t REG_SZ /d "FeatureIsDisabled"