Solved Action Center Changer (.bat) Win10 or Win11


dacrone

Well-known member
Pro User
VIP
Local time
12:48 PM
Posts
2,268
OS
Windows 11 Pro
For anyone interested, here is a batch I made to choose the Windows 10 or Windows 11 Action Center. It will execute your choice and restart explorer to apply the change. nothing fancy... i'll make a powershell gui when i have some free time. copy the below code and paste in notepad. save file as NAME.bat (make sure you remove the .txt extension by choosing "All type (*.*)" from the save as dropdown.

1736116334483.webp

Code:
@echo off

:init
setlocal DisableDelayedExpansion
set "batchPath=%~0"
for %%k in (%0) do set batchName=%%~nk
set "vbsGetPrivileges=%temp%\OEgetPriv_%batchName%.vbs"
setlocal EnableDelayedExpansion

: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)

ECHO Set UAC = CreateObject^("Shell.Application"^) > "%vbsGetPrivileges%"
ECHO args = "ELEV " >> "%vbsGetPrivileges%"
ECHO For Each strArg in WScript.Arguments >> "%vbsGetPrivileges%"
ECHO args = args ^& strArg ^& " "  >> "%vbsGetPrivileges%"
ECHO Next >> "%vbsGetPrivileges%"
ECHO UAC.ShellExecute "!batchPath!", args, "", "runas", 1 >> "%vbsGetPrivileges%"
"%SystemRoot%\System32\WScript.exe" "%vbsGetPrivileges%" %*
exit /B

:gotPrivileges
setlocal & pushd .
cd /d %~dp0
if '%1'=='ELEV' (del "%vbsGetPrivileges%" 1>nul 2>nul  &  shift /1)

REM Run shell as admin (example) - put here code as you like
ECHO %batchName% Arguments: %1 %2 %3 %4 %5 %6 %7 %8 %9
@echo Off
Echo ========== Choose Your Action Center! (Requires Restart) ==========
Echo Windows 10: 0
Echo Windows 11: 1
Echo.
Echo Cancel:     2
Echo.
Set /p vibor="Selection: "

if "%vibor%"=="0" (
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Control Center" /v UseLiteLayout /t REG_DWORD /d 1 /f
) else if "%vibor%"=="1" (
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Control Center" /v UseLiteLayout /t REG_DWORD /d 0 /f
) else if "%vibor%"=="2" (
GOTO :EOF
)
taskkill /f /im explorer.exe
start explorer
@echo off

win 10

1736116745664.webp

win 11

1736116703524.webp
 
Last edited:

My Computer

System One

  • OS
    Windows 11 Pro
FYI -- You only need to restart Explorer, and not Windows.
Code:
taskkill /f /im explorer.exe
start explorer
i'll take your word for it. edited the code. thats weird because i just tested again on my 24h2 pc and still had to reboot to apply, but then its also insider so maybe its just a hiccup or something. thanks.
 

My Computer

System One

  • OS
    Windows 11 Pro
i'll take your word for it. edited the code. thats weird because i just tested again on my 24h2 pc and still had to reboot to apply, but then its also insider so maybe its just a hiccup or something. thanks.
I have 27766.1000. Explorer restarts, but it takes a long time. Wouldn't it be easier to do an Administrator check, right:
Code:
@echo off
setlocal EnableExtensions EnableDelayedExpansion

:: ================= Checking Whether the Script is Running as an Administrator ================
reg query "HKU\S-1-5-19\Environment" >nul 2>&1
:: ============================== If not, then Run as an Administrator  ========================
if not %errorlevel% EQU 0 (
    cls
    powershell.exe -windowstyle hidden -noprofile "Start-Process '%~dpnx0' -Verb RunAs"
    echo Running as an Administrator...
    exit
)
cls
:: ==============================================================================================
ECHO ========== Choose Your Action Center! (Requires Restart) ==========
ECHO Windows 10: 0
ECHO Windows 11: 1
ECHO Cancel:     2
set /p "vibor=Selection: "

if "%vibor%" == "0" (
    reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Control Center" /v UseLiteLayout /t REG_DWORD /d 1 /f
) else if "%vibor%" == "1" (
    reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Control Center" /v UseLiteLayout /t REG_DWORD /d 0 /f
) else if "%vibor%" == "2" (
    goto :EOF
)
taskkill /f /im explorer.exe
start explorer
But the PowerShell GUI would be interesting. I'm very weak in it, that's putting it mildly. You may also need to add cd /d %~dp0
to the code. I didn't check it because everything runs on my computer as an Administrator.
 
Last edited:

My Computer

System One

  • OS
    Windows 11 Stable, Release Preview, Beta, Dev, Canary
    Computer type
    PC/Desktop
    Manufacturer/Model
    Micro-Star International Co., Ltd. MS-7D54
    CPU
    AMD Ryzen 9 PRO 5950X
    Motherboard
    MSI MAG X570S Tomahawk Max WiFi (MS-7D54) (2 PCI-E x1, 2 PCI-E x16, 2 M.2, 4 DDR4 DIMM, Audio, Video, 2.5GbE LAN, WiFi)
    Memory
    128 Gb
    Graphics Card(s)
    Intel(R) Arc(TM) A380 Graphics (2 ГБ)
    Sound Card
    Устройство с поддержкой High Definition Audio
    Monitor(s) Displays
    HP X34 [34" LCD] (6CM1300J5J) {2021}
    Screen Resolution
    3440x1440
    Hard Drives
    KINGSTON SFYRD2000G (2000 ГБ, PCI-E 4.0 x4)
    PSU
    Be Quiet! Dark Rock Pro 4
    Case
    Cooler Master HAF XB EVO
    Internet Speed
    1000 Mb/s
    Browser
    Chrome
    Antivirus
    Windows Defender
So now I have W10 Action Center and W11 Control Center on top of each other and no Calendar!!! 🤷‍♂️

8737.webp
 

My Computers

System One System Two

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    ASUS ROG Strix
  • Operating System
    Windows 11
    Computer type
    Laptop
    Manufacturer/Model
    ASUS VivoBook
You can always get ChatGPT to check the code.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 24H2 26100.2894
    Computer type
    Laptop
    Manufacturer/Model
    Acer Swift SF114-34
    CPU
    Pentium Silver N6000 1.10GHz
    Memory
    4GB
    Screen Resolution
    1920 x 1080
    Hard Drives
    SSD
    Cooling
    fanless
    Internet Speed
    150 Mbps
    Browser
    Brave
    Antivirus
    Webroot Secure Anywhere
    Other Info
    System 3

    ASUS T100TA Transformer
    Processor Intel Atom Z3740 @ 1.33GHz
    Installed RAM 2.00 GB (1.89 GB usable)
    System type 32-bit operating system, x64-based processor

    Edition Windows 10 Home
    Version 22H2 build 19045.3570
  • Operating System
    Windows 11 Pro 23H2 22631.2506
    Computer type
    Laptop
    Manufacturer/Model
    HP Mini 210-1090NR PC (bought in late 2009!)
    CPU
    Atom N450 1.66GHz
    Memory
    2GB
    Browser
    Brave
    Antivirus
    Webroot
So now I have W10 Action Center and W11 Control Center on top of each other and no Calendar!!!
I ran the code posted by dacron and what I posted is no problem, except that the Notification Center disappears after 1-2 seconds.

Original.webp
UpDated My.webp
 

My Computer

System One

  • OS
    Windows 11 Stable, Release Preview, Beta, Dev, Canary
    Computer type
    PC/Desktop
    Manufacturer/Model
    Micro-Star International Co., Ltd. MS-7D54
    CPU
    AMD Ryzen 9 PRO 5950X
    Motherboard
    MSI MAG X570S Tomahawk Max WiFi (MS-7D54) (2 PCI-E x1, 2 PCI-E x16, 2 M.2, 4 DDR4 DIMM, Audio, Video, 2.5GbE LAN, WiFi)
    Memory
    128 Gb
    Graphics Card(s)
    Intel(R) Arc(TM) A380 Graphics (2 ГБ)
    Sound Card
    Устройство с поддержкой High Definition Audio
    Monitor(s) Displays
    HP X34 [34" LCD] (6CM1300J5J) {2021}
    Screen Resolution
    3440x1440
    Hard Drives
    KINGSTON SFYRD2000G (2000 ГБ, PCI-E 4.0 x4)
    PSU
    Be Quiet! Dark Rock Pro 4
    Case
    Cooler Master HAF XB EVO
    Internet Speed
    1000 Mb/s
    Browser
    Chrome
    Antivirus
    Windows Defender

My Computers

System One System Two

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    ASUS ROG Strix
  • Operating System
    Windows 11
    Computer type
    Laptop
    Manufacturer/Model
    ASUS VivoBook
So now I have W10 Action Center and W11 Control Center on top of each other and no Calendar!!! 🤷‍♂️

View attachment 121235
:lmao: tf did you do?! ran it on an unmodified 23h2 and 24h2 and both work just fine.

all it does is change this reg key, to either a 0 or 1

HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Control Center

value 0 = Win 11
value 1 = Win 10
 

My Computer

System One

  • OS
    Windows 11 Pro

My Computer

System One

  • OS
    Windows 11 Stable, Release Preview, Beta, Dev, Canary
    Computer type
    PC/Desktop
    Manufacturer/Model
    Micro-Star International Co., Ltd. MS-7D54
    CPU
    AMD Ryzen 9 PRO 5950X
    Motherboard
    MSI MAG X570S Tomahawk Max WiFi (MS-7D54) (2 PCI-E x1, 2 PCI-E x16, 2 M.2, 4 DDR4 DIMM, Audio, Video, 2.5GbE LAN, WiFi)
    Memory
    128 Gb
    Graphics Card(s)
    Intel(R) Arc(TM) A380 Graphics (2 ГБ)
    Sound Card
    Устройство с поддержкой High Definition Audio
    Monitor(s) Displays
    HP X34 [34" LCD] (6CM1300J5J) {2021}
    Screen Resolution
    3440x1440
    Hard Drives
    KINGSTON SFYRD2000G (2000 ГБ, PCI-E 4.0 x4)
    PSU
    Be Quiet! Dark Rock Pro 4
    Case
    Cooler Master HAF XB EVO
    Internet Speed
    1000 Mb/s
    Browser
    Chrome
    Antivirus
    Windows Defender
I don't have a modified version either. But he obviously meant it.:
yeah i'm tracking. realized after that he was referring to the windows 10 action center with being able to overlay the windows 11 CONTROL center. those 2 are separate things. the only way to avoid that is to disable the windows 11 action center or invoke windows 10 flyouts for volume, wifi, etc. in windows 10 the control flyouts were individual, not conjoined like they are in windows 11, so in windows 11 it will overlay if clicked in succession.
 

My Computer

System One

  • OS
    Windows 11 Pro

My Computers

System One System Two

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    ASUS ROG Strix
  • Operating System
    Windows 11
    Computer type
    Laptop
    Manufacturer/Model
    ASUS VivoBook
LOL you tied your calendar to the control center?
No..., I clicked on the Clock with your mod enabled, and swiped my mouse left for Control Center, (aka Action Center), and they landed on top of each other.
In other words, with your mod enabled, there's no access to the Calendar!
 

My Computers

System One System Two

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    ASUS ROG Strix
  • Operating System
    Windows 11
    Computer type
    Laptop
    Manufacturer/Model
    ASUS VivoBook
ahh thought you meant you hot-keyed both actions to 1 mouse click. but yeah the action center will take over the windows 11 calendar because they both click from the same spot (unless you use EP or SAB to enable Win 10 flyouts, as that will separate the click points). this is pretty much just for those that want the win 10 style taskbar or flyouts. in fact, @Tihiy may want to add this to the Win 10 style corner flyout in SAB so that when selected, Win + N doesnt bring out the win 11 calendar/notifications style
 

My Computer

System One

  • OS
    Windows 11 Pro
to keep the win 10 notification center, keep win 11 control center and be able to access the calendar, install this:


you can enable only the calendar tray flyout.
 

My Computer

System One

  • OS
    Windows 11 Pro
to keep the win 10 notification center, keep win 11 control center and be able to access the calendar, install this...
I'm content with the W11 version of both, except the no edit on 24H2...

9078.webp

MS is so Click N Scroll happy!!! :facepalm:

8742.webp
 

My Computers

System One System Two

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    ASUS ROG Strix
  • Operating System
    Windows 11
    Computer type
    Laptop
    Manufacturer/Model
    ASUS VivoBook

My Computer

System One

  • OS
    Windows 11 Pro
I'm content with the W11 version of both, except the no edit on 24H2...

View attachment 121265
forget Microsoft... we'll make it how it should be lmao.

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Explorer

DWORD "SimplifyQuickSettings"
value 1 set it to

1736185160009.webp (yeah... stole your pic lol)

but i'll figure out how to pin more manually via reg
 

My Computer

System One

  • OS
    Windows 11 Pro

Latest Support Threads

Back
Top Bottom