From 1d2c6eaba050ed8ec289d6d9c635a47671f5d59a Mon Sep 17 00:00:00 2001 From: Jeffrey <9938813+Raphire@users.noreply.github.com> Date: Thu, 27 Jun 2024 23:08:43 +0200 Subject: [PATCH] Introduced new Sysprep feature (#81) Allows users to apply script before account creation. All changes are applied to default user account template. --- Get.ps1 | 1 + Menus/Info | 15 +- README.md | 9 +- Regfiles/Sysprep/Align_Taskbar_Left.reg | Bin 0 -> 306 bytes Regfiles/Sysprep/Disable_AI_Recall.reg | 7 + ...able_App_Launch_Tracking_For_All_Users.reg | Bin 0 -> 494 bytes .../Disable_Bing_Cortana_In_Search.reg | Bin 0 -> 696 bytes Regfiles/Sysprep/Disable_Chat_Taskbar.reg | Bin 0 -> 592 bytes Regfiles/Sysprep/Disable_Copilot.reg | 13 + Regfiles/Sysprep/Disable_DVR.reg | 7 + .../Disable_Give_access_to_context_menu.reg | Bin 0 -> 1376 bytes ...e_Include_in_library_from_context_menu.reg | Bin 0 -> 418 bytes Regfiles/Sysprep/Disable_Lockscreen_Tips.reg | Bin 0 -> 608 bytes .../Disable_Share_from_context_menu.reg | Bin 0 -> 214 bytes ...Disable_Show_More_Options_Context_Menu.reg | Bin 0 -> 296 bytes Regfiles/Sysprep/Disable_Telemetry.reg | Bin 0 -> 2930 bytes Regfiles/Sysprep/Disable_Widgets_Taskbar.reg | Bin 0 -> 1092 bytes .../Sysprep/Disable_Windows_Suggestions.reg | Bin 0 -> 4402 bytes Regfiles/Sysprep/Hide_3D_Objects_Folder.reg | Bin 0 -> 646 bytes Regfiles/Sysprep/Hide_Music_Folder.reg | Bin 0 -> 646 bytes Regfiles/Sysprep/Hide_Onedrive_Folder.reg | Bin 0 -> 546 bytes Regfiles/Sysprep/Hide_Search_Taskbar.reg | Bin 0 -> 302 bytes Regfiles/Sysprep/Hide_Taskview_Taskbar.reg | Bin 0 -> 320 bytes ..._from_navigation_pane_of_File_Explorer.reg | Bin 0 -> 376 bytes .../Show_Extensions_For_Known_File_Types.reg | Bin 0 -> 292 bytes Regfiles/Sysprep/Show_Hidden_Folders.reg | Bin 0 -> 296 bytes Regfiles/Sysprep/Show_Search_Box.reg | Bin 0 -> 302 bytes Regfiles/Sysprep/Show_Search_Icon.reg | Bin 0 -> 302 bytes .../Sysprep/Show_Search_Icon_And_Label.reg | Bin 0 -> 302 bytes Win11Debloat.ps1 | 234 ++++++++++++------ 30 files changed, 207 insertions(+), 79 deletions(-) create mode 100644 Regfiles/Sysprep/Align_Taskbar_Left.reg create mode 100644 Regfiles/Sysprep/Disable_AI_Recall.reg create mode 100644 Regfiles/Sysprep/Disable_App_Launch_Tracking_For_All_Users.reg create mode 100644 Regfiles/Sysprep/Disable_Bing_Cortana_In_Search.reg create mode 100644 Regfiles/Sysprep/Disable_Chat_Taskbar.reg create mode 100644 Regfiles/Sysprep/Disable_Copilot.reg create mode 100644 Regfiles/Sysprep/Disable_DVR.reg create mode 100644 Regfiles/Sysprep/Disable_Give_access_to_context_menu.reg create mode 100644 Regfiles/Sysprep/Disable_Include_in_library_from_context_menu.reg create mode 100644 Regfiles/Sysprep/Disable_Lockscreen_Tips.reg create mode 100644 Regfiles/Sysprep/Disable_Share_from_context_menu.reg create mode 100644 Regfiles/Sysprep/Disable_Show_More_Options_Context_Menu.reg create mode 100644 Regfiles/Sysprep/Disable_Telemetry.reg create mode 100644 Regfiles/Sysprep/Disable_Widgets_Taskbar.reg create mode 100644 Regfiles/Sysprep/Disable_Windows_Suggestions.reg create mode 100644 Regfiles/Sysprep/Hide_3D_Objects_Folder.reg create mode 100644 Regfiles/Sysprep/Hide_Music_Folder.reg create mode 100644 Regfiles/Sysprep/Hide_Onedrive_Folder.reg create mode 100644 Regfiles/Sysprep/Hide_Search_Taskbar.reg create mode 100644 Regfiles/Sysprep/Hide_Taskview_Taskbar.reg create mode 100644 Regfiles/Sysprep/Hide_duplicate_removable_drives_from_navigation_pane_of_File_Explorer.reg create mode 100644 Regfiles/Sysprep/Show_Extensions_For_Known_File_Types.reg create mode 100644 Regfiles/Sysprep/Show_Hidden_Folders.reg create mode 100644 Regfiles/Sysprep/Show_Search_Box.reg create mode 100644 Regfiles/Sysprep/Show_Search_Icon.reg create mode 100644 Regfiles/Sysprep/Show_Search_Icon_And_Label.reg diff --git a/Get.ps1 b/Get.ps1 index 1a8a4ad..4faba4c 100644 --- a/Get.ps1 +++ b/Get.ps1 @@ -1,5 +1,6 @@ param ( [switch]$Silent, + [switch]$Sysprep, [switch]$RunAppConfigurator, [switch]$RunDefaults, [switch]$RunWin11Defaults, [switch]$RemoveApps, diff --git a/Menus/Info b/Menus/Info index 670590a..1044618 100644 --- a/Menus/Info +++ b/Menus/Info @@ -23,21 +23,20 @@ through all the settings yourself, or removing apps one by one! Using the custom mode you can ------------------------------------------------------------------------------------------- - Remove bloatware apps, with the option to select exactly what apps to remove or keep. -- Remove all pinned apps from the start menu. This applies to all existing and new users. (Windows 11 build 22621+) +- Remove all pinned apps from the start menu for the current user, or for all existing and new users. (Windows 11 only) - Disable telemetry, diagnostic data, app-launch tracking & targeted ads. - Disable & remove bing search & cortana in Windows search. - Disable tips, tricks, suggestions and ads in start, settings, notifications, windows explorer, and on the lockscreen. -- Disable Windows Copilot. (Windows 11 build 22621+) -- Disable Windows Recall snapshots. (Windows 11 build 22621+) -- Restore the old Windows 10 style context menu. (Windows 11 build 22000+) +- Disable Windows Copilot. (Windows 11 only) +- Disable Windows Recall snapshots. (Windows 11 only) +- Restore the old Windows 10 style context menu. (Windows 11 only) - Show hidden files, folders and drives. - Show file extensions for known file types. - Hide duplicate removable drive entries from the windows explorer sidepane, so only the entry under 'This PC' remains. -- Align taskbar icons to the left. (Windows 11 build 22000+) -- Hide or change the search icon/box on the taskbar. (Windows 11 build 22000+) -- Hide the taskview button from the taskbar. (Windows 11 build 22000+) +- Align taskbar icons to the left. (Windows 11 only) +- Hide or change the search icon/box on the taskbar. (Windows 11 only) +- Hide the taskview button from the taskbar. (Windows 11 only) - Disable the widget service & hide the icon from the taskbar. -- Hide the chat (meet now) icon from the taskbar. (Up to build 22621) - Hide the 3D objects, music or onedrive folder in the windows explorer sidepanel. (Windows 10 only) - Hide the 'Include in library', 'Give access to' and 'Share' options in the context menu. (Windows 10 only) diff --git a/README.md b/README.md index 93d4f5c..84cd470 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ You can pick and choose exactly which modifications you want the script to make, #### App Removal - Remove a wide variety of bloatware apps, with the option to select exactly what apps to remove and keep. -- Remove all pinned apps from the start menu. NOTE: This applies to all existing and new users. (Windows 11 only) +- Remove all pinned apps from the start menu for the current user, or for all existing and new users. (Windows 11 only) #### Telemetry & Suggested Content - Disable telemetry, diagnostic data, app-launch tracking & targeted ads. @@ -45,6 +45,9 @@ You can pick and choose exactly which modifications you want the script to make, - Hide the 3D objects, music or onedrive folder in the Windows explorer sidepanel. (Windows 10 only) - Hide the 'Include in library', 'Give access to' and 'Share' options in the context menu. (Windows 10 only) +#### Advanced Features +- Sysprep mode to apply changes to the Windows Default user profile. + ## Default Mode The default mode applies the changes that are recommended for most users, expand the section below for more info. @@ -274,6 +277,7 @@ The quick and advanced method support parameters to tailor the behaviour of the | Parameter | Description | | :-------: | ----------- | | -Silent | Suppresses all interactive prompts, so the script will run without requiring any user input. | +| -Sysprep | Run the script in Sysprep mode. All changes will be applied to the Windows default user profile and will only affect new user accounts. | | -RunDefaults | Run the script with the default settings. | | -RemoveApps | Remove the default selection of bloatware apps. | | -RemoveAppsCustom | Remove all apps from the 'CustomAppsList' file. IMPORTANT: Run the script with the `-RunAppConfigurator` parameter to create this file first. No apps will be removed if this file does not exist! | @@ -283,7 +287,8 @@ The quick and advanced method support parameters to tailor the behaviour of the | -RemoveDevApps | Remove developer-related apps such as Remote Desktop, DevHome and Power Automate. | | -RemoveGamingApps | Remove the Xbox App and Xbox Gamebar. | | -DisableDVR | Disable Xbox game/screen recording feature & stop gaming overlay popups. | -| -ClearStart | Remove all pinned apps from the start menu. NOTE: This applies to all existing and new users. (Windows 11 update 22H2 or later only) | +| -ClearStart | Remove all pinned apps from the start menu for the current user (Windows 11 update 22H2 or later only) | +| -ClearStartAllUsers | Remove all pinned apps from the start menu for all existing and new users. (Windows 11 update 22H2 or later only) | | -DisableTelemetry | Disable telemetry, diagnostic data & targeted ads. | | -DisableBing | Disable & remove bing search, bing AI & cortana in Windows search. | | -DisableSuggestions | Disable tips, tricks, suggestions and ads in start, settings, notifications and Windows explorer. | diff --git a/Regfiles/Sysprep/Align_Taskbar_Left.reg b/Regfiles/Sysprep/Align_Taskbar_Left.reg new file mode 100644 index 0000000000000000000000000000000000000000..34a1ba7f625906abb1912f211b3460b56c990300 GIT binary patch literal 306 zcmY+9!HU8_5JcZu*nbFqz_J%Ff(Kdl=w%f>I3l`6HzKKb%}(20M}KYM2ymYkh?P6s_w zwyeYsdIiSnw^p@SDHj;&`Db0IdUApHbb)X6Wt`8|zGn$0y>isQP1^1a4BdNiL#}gb gy@(mROvEa4uH*Khnl1zRI%+rc<4x^dulKs|0mxN1lmGw# literal 0 HcmV?d00001 diff --git a/Regfiles/Sysprep/Disable_AI_Recall.reg b/Regfiles/Sysprep/Disable_AI_Recall.reg new file mode 100644 index 0000000..cc44bd6 --- /dev/null +++ b/Regfiles/Sysprep/Disable_AI_Recall.reg @@ -0,0 +1,7 @@ +Windows Registry Editor Version 5.00 + +[hkey_users\default\Software\Policies\Microsoft\Windows\WindowsAI] +"DisableAIDataAnalysis"=dword:00000001 + +[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsAI] +"DisableAIDataAnalysis"=dword:00000001 \ No newline at end of file diff --git a/Regfiles/Sysprep/Disable_App_Launch_Tracking_For_All_Users.reg b/Regfiles/Sysprep/Disable_App_Launch_Tracking_For_All_Users.reg new file mode 100644 index 0000000000000000000000000000000000000000..a1078cf119e316c8291c7f498a77b544835b454f GIT binary patch literal 494 zcmd6j-AY116otR*pmz`-Ao8M{po>F4DE%mDMK~d9M>{A-m}4A#dFwl47xe})472xI zd#}CMeC=N-D0yc?O+|}Ga+YEhTOvD=YuUnVW8UIfKFSv6rTG~roO+HqN_Wf$D{FR4 z__Xd&9n{EKFcn*?6&TvTFsj9(TwoxwR(I~r?F`(fEQ(h@)q%hJhP2(%`X_q4r48C# z*;lDMQ!iKLMt0KQip9W+^JSK`kp5bjgQ0W{PNS~)+w+0xuee|neRl^%(&~+ U2ie9?-#H`q%lyLz`G0=C0oL?YF#rGn literal 0 HcmV?d00001 diff --git a/Regfiles/Sysprep/Disable_Bing_Cortana_In_Search.reg b/Regfiles/Sysprep/Disable_Bing_Cortana_In_Search.reg new file mode 100644 index 0000000000000000000000000000000000000000..b08282bb247f5157d5c3d7ee610285fe9760b289 GIT binary patch literal 696 zcmbV~+e*Vg5QhJ2!FLFG0MQF?6fa^`Dq1U6lwzdRbQ^;ul^jU>^6EERgS21;37gqD z&wR<}$D=aknrN;@r2^f_DaBT*QlTZ5bG#Ya96itj{sM1?o}(XXPy0N(+VSTY+nLWF z>qRr71ElpxxtR>eb{bP9(W}pSLcU>JYNXnGtwT&-rzw#&bt?1$J*V6npY5>RVwq7j z;W(eu^ICzu{Em*bzGKWr3%!$P8`(C`eu{8o?g74b%2Q$&^sm_>^_?pE7=couPMEau z)h0UfG>pjVIoL`j@mUppa?bC3y1HWOA$+dYS4RN}z qAD?wz0d;>!w5%fd8Nr4LjAOgQb{ebyB;3fc3P#fLuKwV;s_+FI#&`7q literal 0 HcmV?d00001 diff --git a/Regfiles/Sysprep/Disable_Chat_Taskbar.reg b/Regfiles/Sysprep/Disable_Chat_Taskbar.reg new file mode 100644 index 0000000000000000000000000000000000000000..d100dcbeaef3eb8e033e42c66eed61d9b0bb44cb GIT binary patch literal 592 zcmc(cK~KU!5QV=piT{D{1Be{FKs*p*!Ubc5;K3zEr9dNTO^X)(y!v$;4)&l&GudQk z-p+gTX1_k~Ny%7|Q&H08j)aZ1l05}SE7zi_S#I8CAzp~4=9&2gea?+DI`NFGwK)e2 zBKE+RSNo4V@-9ci6y#4>^JHzOPGBbY+FNC<5DQGzd-0yz)nK8e61cLzi0?Cdf6f_n zao|n<+C{A!7_0lCLMC(KeHmx$F}GGa=W|q_iubq_uVU|tVf0&jKE?0eo8A1U_gg35 j#SNx9E%n~s#>xA{SM_hq+~(M=C&r!|`>Q{;(ERW>eT8Y7 literal 0 HcmV?d00001 diff --git a/Regfiles/Sysprep/Disable_Copilot.reg b/Regfiles/Sysprep/Disable_Copilot.reg new file mode 100644 index 0000000..e5e508a --- /dev/null +++ b/Regfiles/Sysprep/Disable_Copilot.reg @@ -0,0 +1,13 @@ +Windows Registry Editor Version 5.00 + +; Disable Copilot button on taskbar +[hkey_users\default\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced] +"ShowCopilotButton"=dword:00000000 + +; Disable Copilot service for current user +[hkey_users\default\Software\Policies\Microsoft\Windows\WindowsCopilot] +"TurnOffWindowsCopilot"=dword:00000001 + +; Disable Copilot service for all users +[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsCopilot] +"TurnOffWindowsCopilot"=dword:00000001 \ No newline at end of file diff --git a/Regfiles/Sysprep/Disable_DVR.reg b/Regfiles/Sysprep/Disable_DVR.reg new file mode 100644 index 0000000..3a48e10 --- /dev/null +++ b/Regfiles/Sysprep/Disable_DVR.reg @@ -0,0 +1,7 @@ +Windows Registry Editor Version 5.00 + +[hkey_users\default\System\GameConfigStore] +"GameDVR_Enabled"=dword:00000000 + +[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\GameDVR] +"AllowGameDVR"=dword:00000000 diff --git a/Regfiles/Sysprep/Disable_Give_access_to_context_menu.reg b/Regfiles/Sysprep/Disable_Give_access_to_context_menu.reg new file mode 100644 index 0000000000000000000000000000000000000000..8ea46af6d43eea8939a1ae685e55bd09762912f4 GIT binary patch literal 1376 zcmd6n-D<)>5QWcm!FTYwQ1QkGu+}1|DE1FABK`yoN+O%JZC+mecJWHIAfgS!5@sfQ z_U!DL*=@fRDb`Ghew3=Ho0h}6kOcnN+{pX3eM2tUTJsH8Gh(1TwCJ*lB4 zyZRcbrk1LD!|JRN=pF1`fgV|@7ND)LP`~&!k7>PU)#e*(1KQX#bbq;%1CSQPjAuUA z@Zz&y*l9qU9&VL^`3&MzOYUx9vGFJ7i(#Isb&AUxwKS+*LKW}xX2&eL{_WOYCl)qN zCn08U!pG_F8}$EF$$1X(V8zUE-5LW7$2+ZnyIu0 DRmJt* literal 0 HcmV?d00001 diff --git a/Regfiles/Sysprep/Disable_Include_in_library_from_context_menu.reg b/Regfiles/Sysprep/Disable_Include_in_library_from_context_menu.reg new file mode 100644 index 0000000000000000000000000000000000000000..a6dc01a56746fdf4c0629d659f2aa2fee4dcad66 GIT binary patch literal 418 zcmchS-3o$05QWcm&^!17MK?V_EJo3qV3I^e*bgO$fg0J%SD#C_-NrENo|&C9-@ado za+NyiriW^Iigeb6TCGNvo>Y9gIqHV?w5DIt&Cw-#tf59kUp<#w4K&k&sg3qBvYKc` z_~ah0xg)Ci p^6h?bSttx-7N&sH;62xp?Hx-9U95z9Kv0Q(GpLi1H3J7KfPAsl_RY@ckmZA`U-8E*BU!@Y)i(H8;vXmWas<}w52|XG{_nz z0i>~e);s<{Pp@DbH0vX#y8zP!UjesRb26l8JwAIMYX)P>Re}GD#asMhO})P1OWtly z$)Yx`c8p#l3vzxTZN{^)o6PMOXFGvMr^VPsjuv3LndeX^oO8ct?8zpwAhRJSy5ieY ow?2*ZzV`ci1+)`M=rSk30)-!;V#c0otr={r~^~ literal 0 HcmV?d00001 diff --git a/Regfiles/Sysprep/Disable_Share_from_context_menu.reg b/Regfiles/Sysprep/Disable_Share_from_context_menu.reg new file mode 100644 index 0000000000000000000000000000000000000000..627916355b9fdc42306c9190b42e04e756efce24 GIT binary patch literal 214 zcmW-c!3x4K5JcZu@E>{>6fb^&l!Bl|P*KE65iD&$5=bKI&#RL#EaB~BC!62*gu!yh z@gh*LqoY?Z5b=D}spJ}w6Biuid$~qz#S3Q4r7@#i7pAOOYwAo($%Z9+sZzB{-%1A> tCaS=ow1?F37MD3QW{T80El;K0@`mYFdbyF~v{NFh)Iq+_zv#K<9sa+JCa3@a literal 0 HcmV?d00001 diff --git a/Regfiles/Sysprep/Disable_Show_More_Options_Context_Menu.reg b/Regfiles/Sysprep/Disable_Show_More_Options_Context_Menu.reg new file mode 100644 index 0000000000000000000000000000000000000000..be8d8bf09d41370faf2ed2455f45f275c1cc8604 GIT binary patch literal 296 zcmXw!&1%9x6h_aw(07pTEm7N|3qjB>gsv*+!iXdqHCRkZv?9e!$X z#)?Gk%ULla`&Xi)TB#S)*GcTS^;Cg>m>Mz=|I+4-g?_`Gcwe0sF9FxBnSQF4_@0Q4 p=vEh^NR+B)G(DS~oi_C4-`-l780nP!gtMhT3%}^m<;ivb)fKb7F^d2I literal 0 HcmV?d00001 diff --git a/Regfiles/Sysprep/Disable_Telemetry.reg b/Regfiles/Sysprep/Disable_Telemetry.reg new file mode 100644 index 0000000000000000000000000000000000000000..2f0a458af885a1a5a72bc70c841b39919c295e35 GIT binary patch literal 2930 zcmc(hU2hUm5QgX4#Q(7Ag_p)&c%$*cKn+A{NsBhdHDtSN>qZK=Y)kRSTc7tFP8W~> zB5F4KHRoey-g#%v-2XVY+y>UOp-pUTk)2v*SIEXzT47TpM~vqD4f&7k1LFmwIsXIx zpW9P=#`V}9x%(xu7IRA8uWiJoU2k}1PSUemw?pZ4NcR=;rqy{~&UDCzKKHF9jQgE> zZXeB$Y}w|+nf_1q#lEs`YTcPeSsG)1#@-3CKD)(shMr5lCddlLVmro~lnhKh*ekC-J8TZXa)8bY=UvYZ>=mmfj2FCLI2?s#xaKkKur6nv z=4Q-}c;11oqLK3)V1MQ?n($wOM8vF|RacD3FCm^fX~K8HSHOGGv&h~vTl-4?|HQQI zd=m>&Vj3`9M&f8C4&sPVsIS1F&W=K0_h_7eX`h`3;1t0p#UaB=p)U5OATHcxgU^)x zV>z$2YqBVVqn;n)xN=b1m0`+)d7J0gu12{5K4Vy&a%K2e^87uVhW+Q)wg`$v1+mOQ zNI4R!%NgGIYz!DHrwW%1LRy~cBvExM!G1lC)d{=bioBj3zt)l9%W`E{tRij46LDv{ zwO{HSRJGKNL=Kxit9?EFM!x1?=TE*>H9Z1Hzfz}{PCeC}5DU+ahP|ccf22ETQ4MQU zw-(>Wyld8g;qMrg$0zoNn4Tj)b&@~t4k|o!R;wBZ%U1Ed!dSVc&P>^%th?s+ec85b z5vsyVnE1Y<>d%(@sC=nni@{>7Ib#1=YD-YXslQRO_V8BLHBZc!Ix^PL~}e>M8{YY?1I|F6QX1682eO5I_5dlf&ZQ3 z+pJkq$;Ubx>6QGsx_YNZUMZx$(@;Hp5q&~6sXgSB;Y)~xs?qP6^MtHC7H)J2bxD5W zzmLgXpECr-hu)}fD6DU&fW9+2#8h^ipZttPweY3P+4tScyo$CP&#C)SMnyMp^oTNU)qu-@|1RAF&J|TvCu+)QFmVg+1C(l>ZOXV~=Ezr{6E}u? zzPqu$skORCnNrVgL6!Fuk7>kiKz- literal 0 HcmV?d00001 diff --git a/Regfiles/Sysprep/Disable_Windows_Suggestions.reg b/Regfiles/Sysprep/Disable_Windows_Suggestions.reg new file mode 100644 index 0000000000000000000000000000000000000000..cf23d7f83e576ce59f278612385759c63262c7bf GIT binary patch literal 4402 zcmds4U2oGs5Zq@Z{==y+fCLq&v}!>-L^PmEO;eEq4+K?iz8od7BRh@Bp9f}kd$FA= z0*6RJm6h1OJKyfj?#|8q`uSCc5=mEL$s`pgpQI-Pw52kWL>6eNqj!k681GKLpg%$H z5bqJ*4`p9o;(9EP^!FBREeUl#Clicz_%_u0s;vyIW9eY5jqAw|ndJIIx%TpfCJC#ht5}tQo@&Vm-TS&1-AA9O>(9qT|T|mIYkj|B(fC<*M11`OtkJ9(>Hs50;KH8_ZsmMY7xN3Tj{eS|IYRS{=0H~D0AhpvN4fcghGXyNwF7J+T}!=9SaB%emgyhTmmdni0$g zdSbgIE9;?0aI+oiZ+F2%F!Pa|$mq zZ>;y3G6*xqR2H=x)gQIXT-n5w9Q6`)k8zIaIF6MBJH$e5PVerOIws)BNIj!Db+KXF3b_SZe-! zW}k&rxw!^12CV^cs*-9sX-vO+)oz)~9iY5+uFbD(^Q=5YWK!U0I^Q8a_YvIF3?+sR z=&y^clc%bRxCePX*uZSYILVS%QhB!XNUYCKp4W=}$P-mlcDrvOEIRccu+I$CJNr&_+I7W&8~7R2Hjj&e&e+*^T<$$+^xs(%2U3 c&D-C7gd59Maz%?J%Qun5c7|s){fUi!1F^vrQvd(} literal 0 HcmV?d00001 diff --git a/Regfiles/Sysprep/Hide_3D_Objects_Folder.reg b/Regfiles/Sysprep/Hide_3D_Objects_Folder.reg new file mode 100644 index 0000000000000000000000000000000000000000..05a222401d500cc1bcd6d13062aa3edae79028ce GIT binary patch literal 646 zcmds!!AiqW5Jk^g@E`gEl{U6Ymo>I1+6q+~#3w~+m4N1z)KZK1>*`6|=-!ot$(y-1 zbLVE>=SN0P!99@;D;i8#@F=$8g_5nvKsL9E)(xierEG3pSa;c@<+IC99XB*N;modU zW}I_DO5bzF$TO8YWh@)GlpAtICO)Z=k*agmqxz8tX9n4y{(=f?zbJK4$p3Z|RC#5| zQ|-0#8JxPcC-N-5w&NQeb0@OU!_sVS7I^b7jyd8`l@|MYYZ@sDJ+qEn%7Ix=HZdx8 kDBiZGD?0Gqwy)1Sw|}yaOy3)4c2rH=TJ$C=r~hqFUkY4mnE(I) literal 0 HcmV?d00001 diff --git a/Regfiles/Sysprep/Hide_Music_Folder.reg b/Regfiles/Sysprep/Hide_Music_Folder.reg new file mode 100644 index 0000000000000000000000000000000000000000..ca87e7819c4ce352d310d49866b7ae66f2a842c7 GIT binary patch literal 646 zcmdsz!AiqW5Jk^g@E`gE729ahr4&WcR;XeSpA?fe641PoT51u0T|J2#-MfQ*9v}jMCLk4a#Ba_RG_GB{uT@L7p_lySi kCSr+LW>sN4v;Lj?KY5Q--)pBd6Z*bdY}K2c{?|Kw0k1W0Z2$lO literal 0 HcmV?d00001 diff --git a/Regfiles/Sysprep/Hide_Onedrive_Folder.reg b/Regfiles/Sysprep/Hide_Onedrive_Folder.reg new file mode 100644 index 0000000000000000000000000000000000000000..d8e037ccec5a2939489968811f93e6e39649f5a6 GIT binary patch literal 546 zcmdUq-AV#c6otR*pmz}OC-OHFx+oh_iV_tiDkPjk%tbSz!XVMBSD)t*x{Jl(ti9LX z=dAVfy(Fg~qoiU-jVXb5dpq`QIoL^6bF0$2#zK9onp+pv9nLrxr<}y|Ou~pex1Lxr z;GSz{BK53%{ZY($iOP&IxAIT-8}#HI`(2UHmbb)_wbUg=41o_Fj^&e>w9tR1gOUf{)Pj>6*;+O?SrB!uoT*~sjQ$_eE#0m3bM)Ty Lr_%SrzfAoLjnq=1 literal 0 HcmV?d00001 diff --git a/Regfiles/Sysprep/Hide_Search_Taskbar.reg b/Regfiles/Sysprep/Hide_Search_Taskbar.reg new file mode 100644 index 0000000000000000000000000000000000000000..9c12d311f63738186321f92df41b700bd3a549ad GIT binary patch literal 302 zcmY+9y$ZrG6ot<$_ztBHATBO~lQ?!!(ZPt=nrcx}NR`@`SHGk2%TyU+*?#Sd}`% zJ;*ZJFkkX(;XImAMrOgkW~$eWhV6`&%=_qf%nrMROdHb*Iviu0bin20zO}{E&@qqR W3@&s_wcu?*o_8L13VZ!e*zX6?q&J5E literal 0 HcmV?d00001 diff --git a/Regfiles/Sysprep/Hide_Taskview_Taskbar.reg b/Regfiles/Sysprep/Hide_Taskview_Taskbar.reg new file mode 100644 index 0000000000000000000000000000000000000000..262d91ed4cdf0b8eb0b29fd2c8b7089f417dc09d GIT binary patch literal 320 zcmY+9u?oUK5JaaI{D+Va5E~o8LdDWXB^I8Dn8XC-B1tsn=hb%?EW&bdyE8j8`~B>d z%PLl(MwJ3>l<3N=Qms-glND%ASI`HFz)R4a-qKGr(wG`*;NL-+Zg5(i^n};34H}73 zotfRyGTO4A@@trtU`A^+FZ>I(I?Sk_&S=Sg>G_u3eilR0w;t%bq|Vo9j_(Txi*myM n=re}6XRsRWz$)@acqjA=^lQr97HY;ubb^ literal 0 HcmV?d00001 diff --git a/Regfiles/Sysprep/Hide_duplicate_removable_drives_from_navigation_pane_of_File_Explorer.reg b/Regfiles/Sysprep/Hide_duplicate_removable_drives_from_navigation_pane_of_File_Explorer.reg new file mode 100644 index 0000000000000000000000000000000000000000..9b96ecc0f0a75b8296db0b1ca770ca6a61febbdc GIT binary patch literal 376 zcmY+A-Acni5QV>M!FT8jM69*7w>2gx+6t|-h+9h0T7oetNkv6`b@elPp)9*IbI$yn z+0Ty|83lKgJX6zR%!;*G&6bK+kwi8#DveuA*DSc; zl9+*Z!B88^oiUOPOyp9on2C=YWN6o0yO;Jaxp!ue{i`q7;mM3j6@~nNHNh?~Y{(m} z-#P;)X4X73`ZvZSmOP40%v(Bb^_!FHtwpxl)cV}5e>M%giFCck960~T6S;9>lkDuokv;=Nca?1TsO=qtK(;ybWl$ri&@ofl5rDWo=R zq_`++RP*8tD@{2oFE#JS8QOjf6X|{Icha`E8+m(j)BNBq_%e*;_Mr_P5Joh) literal 0 HcmV?d00001 diff --git a/Regfiles/Sysprep/Show_Hidden_Folders.reg b/Regfiles/Sysprep/Show_Hidden_Folders.reg new file mode 100644 index 0000000000000000000000000000000000000000..2054aa1b5bb8514dc53ca2513763c147719f791c GIT binary patch literal 296 zcmY+9&1wQc5QM+8;5_cJ?h@DM`4ix&kwI1)m3jf*lX>(A=TtKZI^q#5Yy>Z-1J zK2{V&GD>Pr^q7k>G@}0s%p8wd%D1v`YP>5weMMiNpBqWZ<0251E1c#dLinZ e+iz0FK2vXHDO04+#I8=NjB)x+^P{$gN$~=Xr8ZRn literal 0 HcmV?d00001 diff --git a/Regfiles/Sysprep/Show_Search_Box.reg b/Regfiles/Sysprep/Show_Search_Box.reg new file mode 100644 index 0000000000000000000000000000000000000000..84499ee369d2d9ac4cecdf0daf655e62e2319016 GIT binary patch literal 302 zcmY+9%?g4*6ot<^=pDodhzQyQt)iuyidr-gX=6#DFc#*^SD)9F48z>>a}Q^J--8O3 zx~fv6T9G#Ly1~_YDX4{6qZXhF9BGdpPz!Jgo@=5hXRMLkqwad(X?4~cU+;Egc;&jl zJ;`#~vY#_GZ~@IJAv0sH*y=T>VLPW4`@#GryTdMBrnj_=4kv3954e=vk9K%!I;Q4L W;JR+Hmb?up@Gk66-M{)Xv$Q|aus4YS literal 0 HcmV?d00001 diff --git a/Regfiles/Sysprep/Show_Search_Icon.reg b/Regfiles/Sysprep/Show_Search_Icon.reg new file mode 100644 index 0000000000000000000000000000000000000000..31f7f379e3de0156fc7d81c009627c815dc0ec21 GIT binary patch literal 302 zcmY+9y$ZrW5QL`|e20(+5G`y3E3r(YqJ<}7;zfg!z(t99dG*Vt3deCfKRe9*z6TX5 zbycNCwIXfgb%U$*Qcw%CMlC=UIMN>a}Q^J--8O3 zx~fv6T9G#Ly1~_YDX4{6qZXhF9BGdpPz!Jgo@=5hXRMLkqwad(X?4~cU+;Egc;&jl zJ;`#~vY#_GZ~@IJAv0sH*y=T>VLPW4`@#GryTdMBrnj_=4kv3954e=vk9K%!I;Q4L W;JR+Hmb?up@Gk66-M{)Xv$Q|awl|6Z literal 0 HcmV?d00001 diff --git a/Win11Debloat.ps1 b/Win11Debloat.ps1 index 1ae2401..0ab53ca 100644 --- a/Win11Debloat.ps1 +++ b/Win11Debloat.ps1 @@ -3,6 +3,7 @@ [CmdletBinding(SupportsShouldProcess)] param ( [switch]$Silent, + [switch]$Sysprep, [switch]$RunAppConfigurator, [switch]$RunDefaults, [switch]$RunWin11Defaults, [switch]$RemoveApps, @@ -29,6 +30,7 @@ param ( [switch]$DisableChat, [switch]$HideChat, [switch]$ClearStart, + [switch]$ClearStartAllUsers, [switch]$RevertContextMenu, [switch]$DisableOnedrive, [switch]$HideOnedrive, [switch]$Disable3dObjects, [switch]$Hide3dObjects, @@ -184,7 +186,7 @@ function ShowAppSelectionForm { if ($appString.length -gt 0) { if ($onlyInstalledCheckBox.Checked) { # onlyInstalledCheckBox is checked, check if app is installed before adding it to selectionBox - if ($listOfApps -like ("*" + $appString + "*")) { + if ($listOfApps -like ("*$appString*")) { $installed = "installed" } elseif (($appString -eq "Microsoft.Edge") -and ($listOfApps -like "* XPFFTQ037JWMHS *")) { @@ -379,7 +381,17 @@ function RegImport { ) Write-Output $message - reg import $path + + + if (!$global:Params.ContainsKey("Sysprep")) { + reg import "$PSScriptRoot\Regfiles\$path" + } + else { + reg load "HKU\Default" "C:\Users\Default\NTUSER.DAT" | Out-Null + reg import "$PSScriptRoot\Regfiles\Sysprep\$path" + reg unload "HKU\Default" | Out-Null + } + Write-Output "" } @@ -404,7 +416,8 @@ function RestartExplorer { # Credit: https://lazyadmin.nl/win-11/customize-windows-11-start-menu-layout/ function ClearStartMenu { param ( - $message + $message, + $applyToAllUsers = $True ) Write-Output $message @@ -419,48 +432,73 @@ function ClearStartMenu { return } - # Get all user profile folders - $usersStartMenu = get-childitem -path "C:\Users\*\AppData\Local\Packages\Microsoft.Windows.StartMenuExperienceHost_cw5n1h2txyewy\LocalState" + if ($applyToAllUsers) { + # Remove startmenu pinned apps for all users + # Get all user profile folders + $usersStartMenu = get-childitem -path "C:\Users\*\AppData\Local\Packages\Microsoft.Windows.StartMenuExperienceHost_cw5n1h2txyewy\LocalState" - # Copy Start menu to all users folders - ForEach ($startmenu in $usersStartMenu) { - $startmenuBinFile = $startmenu.Fullname + "\start2.bin" + # Copy Start menu to all users folders + ForEach ($startmenu in $usersStartMenu) { + $startmenuBinFile = $startmenu.Fullname + "\start2.bin" + $backupBinFile = $startmenuBinFile + ".bak" + + # Check if bin file exists + if (Test-Path $startmenuBinFile) { + # Backup current startmenu file + Move-Item -Path $startmenuBinFile -Destination $backupBinFile -Force + + # Copy template file + Copy-Item -Path $startmenuTemplate -Destination $startmenu -Force + + Write-Output "Replaced start menu for user $($startmenu.Fullname.Split("\")[2])" + } + else { + # Bin file doesn't exist, indicating the user is not running the correct version of Windows. Exit function + Write-Host "Error: Unable to clear start menu, start2.bin file could not found for user" $startmenu.Fullname.Split("\")[2] -ForegroundColor Red + Write-Output "" + return + } + } + + # Also apply start menu template to the default profile + + # Path to default profile + $defaultProfile = "C:\Users\default\AppData\Local\Packages\Microsoft.Windows.StartMenuExperienceHost_cw5n1h2txyewy\LocalState" + + # Create folder if it doesn't exist + if (-not(Test-Path $defaultProfile)) { + new-item $defaultProfile -ItemType Directory -Force | Out-Null + Write-Output "Created LocalState folder for default user" + } + + # Copy template to default profile + Copy-Item -Path $startmenuTemplate -Destination $defaultProfile -Force + Write-Output "Copied start menu template to default user folder" + Write-Output "" + } + else { + # Only remove startmenu pinned apps for current logged in user + $startmenuBinFile = "C:\Users\$([Environment]::UserName)\AppData\Local\Packages\Microsoft.Windows.StartMenuExperienceHost_cw5n1h2txyewy\LocalState\start2.bin" $backupBinFile = $startmenuBinFile + ".bak" # Check if bin file exists if (Test-Path $startmenuBinFile) { # Backup current startmenu file - Move-Item -Path $startmenuBinFile -Destination $backupBinFile + Move-Item -Path $startmenuBinFile -Destination $backupBinFile -Force # Copy template file - Copy-Item -Path $startmenuTemplate -Destination $startmenu -Force + Copy-Item -Path $startmenuTemplate -Destination $startmenuBinFile -Force - $cpyMsg = "Replaced start menu for user " + $startmenu.Fullname.Split("\")[2] - Write-Output $cpyMsg + Write-Output "Replaced start menu for user $([Environment]::UserName)" + Write-Output "" } else { # Bin file doesn't exist, indicating the user is not running the correct version of Windows. Exit function - Write-Host "Error: Unable to clear start menu, start2.bin file could not found for user" $startmenu.Fullname.Split("\")[2] -ForegroundColor Red + Write-Host "Error: Unable to clear start menu, start2.bin file could not found for user $([Environment]::UserName)" -ForegroundColor Red Write-Output "" return } } - - # Also apply start menu template to the default profile - - # Path to default profile - $defaultProfile = "C:\Users\default\AppData\Local\Packages\Microsoft.Windows.StartMenuExperienceHost_cw5n1h2txyewy\LocalState" - - # Create folder if it doesn't exist - if (-not(Test-Path $defaultProfile)) { - new-item $defaultProfile -ItemType Directory -Force | Out-Null - Write-Output "Created LocalState folder for default user" - } - - # Copy template to default profile - Copy-Item -Path $startmenuTemplate -Destination $defaultProfile -Force - Write-Output "Copied start menu template to default user folder" - Write-Output "" } @@ -487,7 +525,7 @@ function AddParameter { $global:FirstSelection = $false # Create entry and add it to the file - $entry = $parameterName + "#- " + $message + $entry = "$parameterName#- $message" Add-Content -Path "$PSScriptRoot/SavedSettings" -Value $entry } @@ -497,7 +535,11 @@ function PrintHeader { $title ) - $fullTitle = " Win11Debloat Script - " + $title + $fullTitle = " Win11Debloat Script - $title" + + if($global:Params.ContainsKey("Sysprep")) { + $fullTitle = "$fullTitle (Sysprep mode)" + } Clear-Host Write-Output "-------------------------------------------------------------------------------------------" @@ -530,7 +572,16 @@ function AwaitKeyToExit { } - # Check if winget is installed & if it is, check if the version is at least v1.4 + +################################################################################################################## +# # +# SCRIPT START # +# # +################################################################################################################## + + + +# Check if winget is installed & if it is, check if the version is at least v1.4 if ((Get-AppxPackage -Name "*Microsoft.DesktopAppInstaller*") -and ((winget -v) -replace 'v','' -gt 1.4)) { $global:wingetInstalled = $true } @@ -546,12 +597,15 @@ else { } } +# Get current Windows build version to compare against features +$WinVersion = Get-ItemPropertyValue 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion' CurrentBuild + # Hide progress bars for app removal, as they block Win11Debloat's output $ProgressPreference = 'SilentlyContinue' $global:Params = $PSBoundParameters $global:FirstSelection = $true -$SPParams = 'WhatIf', 'Confirm', 'Verbose', 'Silent' +$SPParams = 'WhatIf', 'Confirm', 'Verbose', 'Silent', 'Sysprep' $SPParamCount = 0 # Count how many SPParams exist within Params @@ -562,6 +616,21 @@ foreach ($Param in $SPParams) { } } +if ($global:Params.ContainsKey("Sysprep")) { + # Exit script if default user directory or NTUSER.DAT file cannot be found + if (-not (Test-Path "C:\Users\Default\NTUSER.DAT")) { + Write-Host "Error: Unable to start Win11Debloat in Sysprep mode, cannot find default user folder at 'C:\Users\Default\'" -ForegroundColor Red + AwaitKeyToExit + Exit + } + # Exit script if run in Sysprep mode on Windows 10 + if ($WinVersion -lt 22000) { + Write-Host "Error: Win11Debloat Sysprep mode is not supported on Windows 10" -ForegroundColor Red + AwaitKeyToExit + Exit + } +} + # Remove SavedSettings file if it exists and is empty if ((Test-Path "$PSScriptRoot/SavedSettings") -and ([String]::IsNullOrWhiteSpace((Get-content "$PSScriptRoot/SavedSettings")))) { Remove-Item -Path "$PSScriptRoot/SavedSettings" -recurse @@ -583,7 +652,6 @@ if ($RunAppConfigurator) { AwaitKeyToExit - # Exit script Exit } @@ -667,7 +735,7 @@ if ((-not $global:Params.Count) -or $RunDefaults -or $RunWin11Defaults -or ($SPP '2' { # Get current Windows build version to compare against features $WinVersion = Get-ItemPropertyValue 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion' CurrentBuild - + PrintHeader 'Custom Mode' # Show options for removing apps, only continue on valid input @@ -677,27 +745,27 @@ if ((-not $global:Params.Count) -or $RunDefaults -or $RunWin11Defaults -or ($SPP Write-Host " (1) Only remove the default selection of bloatware apps from 'Appslist.txt'" -ForegroundColor Yellow Write-Host " (2) Remove default selection of bloatware apps, aswell as mail & calendar apps, developer apps and gaming apps" -ForegroundColor Yellow Write-Host " (3) Select which apps to remove and which to keep" -ForegroundColor Yellow - $RemoveCommAppInput = Read-Host "Remove any pre-installed apps? (n/1/2/3)" + $RemoveAppsInput = Read-Host "Remove any pre-installed apps? (n/1/2/3)" # Show app selection form if user entered option 3 - if ($RemoveCommAppInput -eq '3') { + if ($RemoveAppsInput -eq '3') { $result = ShowAppSelectionForm if ($result -ne [System.Windows.Forms.DialogResult]::OK) { - # User cancelled or closed app selection, show error and change RemoveCommAppInput so the menu will be shown again + # User cancelled or closed app selection, show error and change RemoveAppsInput so the menu will be shown again Write-Output "" Write-Host "Cancelled application selection, please try again" -ForegroundColor Red - $RemoveCommAppInput = 'c' + $RemoveAppsInput = 'c' } Write-Output "" } } - while ($RemoveCommAppInput -ne 'n' -and $RemoveCommAppInput -ne '0' -and $RemoveCommAppInput -ne '1' -and $RemoveCommAppInput -ne '2' -and $RemoveCommAppInput -ne '3') + while ($RemoveAppsInput -ne 'n' -and $RemoveAppsInput -ne '0' -and $RemoveAppsInput -ne '1' -and $RemoveAppsInput -ne '2' -and $RemoveAppsInput -ne '3') # Select correct option based on user input - switch ($RemoveCommAppInput) { + switch ($RemoveAppsInput) { '1' { AddParameter 'RemoveApps' 'Remove default selection of bloatware apps' } @@ -726,8 +794,31 @@ if ((-not $global:Params.Count) -or $RunDefaults -or $RunWin11Defaults -or ($SPP if ($WinVersion -ge 22621){ Write-Output "" - if ($( Read-Host -Prompt "Remove all pinned apps from the start menu? This applies to all existing and new users and can't be reverted (y/n)" ) -eq 'y') { - AddParameter 'ClearStart' 'Remove all pinned apps from the start menu for new and existing users' + if ($global:Params.ContainsKey("Sysprep")) { + if ($( Read-Host -Prompt "Remove all pinned apps from the start menu for all existing and new users? (y/n)" ) -eq 'y') { + AddParameter 'ClearStartAllUsers' 'Remove all pinned apps from the start menu for existing and new users' + } + } + else { + Do { + Write-Host "Options:" -ForegroundColor Yellow + Write-Host " (n) Don't remove any pinned apps from the start menu" -ForegroundColor Yellow + Write-Host " (1) Remove all pinned apps from the start menu for this user only ($([Environment]::UserName))" -ForegroundColor Yellow + Write-Host " (2) Remove all pinned apps from the start menu for all existing and new users" -ForegroundColor Yellow + $ClearStartInput = Read-Host "Remove all pinned apps from the start menu? This cannot be reverted (n/1/2)" + Write-Output "" + } + while ($ClearStartInput -ne 'n' -and $ClearStartInput -ne '0' -and $ClearStartInput -ne '1' -and $ClearStartInput -ne '2') + + # Select correct option based on user input + switch ($ClearStartInput) { + '1' { + AddParameter 'ClearStart' "Remove all pinned apps from the start menu for this user only" + } + '2' { + AddParameter 'ClearStartAllUsers' "Remove all pinned apps from the start menu for all existing and new users" + } + } } } @@ -1080,19 +1171,23 @@ else { continue } 'DisableDVR' { - RegImport "> Disabling Xbox game/screen recording..." $PSScriptRoot\Regfiles\Disable_DVR.reg + RegImport "> Disabling Xbox game/screen recording..." "Disable_DVR.reg" continue } 'ClearStart' { - ClearStartMenu "> Removing all pinned apps from the start menu..." + ClearStartMenu "> Removing all pinned apps from the start menu..." $False + continue + } + 'ClearStartAllUsers' { + ClearStartMenu "> Removing all pinned apps from the start menu for all users..." continue } 'DisableTelemetry' { - RegImport "> Disabling telemetry, diagnostic data, app-launch tracking and targeted ads..." $PSScriptRoot\Regfiles\Disable_Telemetry.reg + RegImport "> Disabling telemetry, diagnostic data, app-launch tracking and targeted ads..." "Disable_Telemetry.reg" continue } {$_ -in "DisableBingSearches", "DisableBing"} { - RegImport "> Disabling bing search, bing AI & cortana in Windows search..." $PSScriptRoot\Regfiles\Disable_Bing_Cortana_In_Search.reg + RegImport "> Disabling bing search, bing AI & cortana in Windows search..." "Disable_Bing_Cortana_In_Search.reg" # Also remove the app package for bing search $appsList = 'Microsoft.BingSearch' @@ -1103,91 +1198,92 @@ else { continue } {$_ -in "DisableLockscrTips", "DisableLockscreenTips"} { - RegImport "> Disabling tips & tricks on the lockscreen..." $PSScriptRoot\Regfiles\Disable_Lockscreen_Tips.reg + RegImport "> Disabling tips & tricks on the lockscreen..." "Disable_Lockscreen_Tips.reg" continue } {$_ -in "DisableSuggestions", "DisableWindowsSuggestions"} { - RegImport "> Disabling tips, tricks, suggestions and ads across Windows..." $PSScriptRoot\Regfiles\Disable_Windows_Suggestions.reg + RegImport "> Disabling tips, tricks, suggestions and ads across Windows..." "Disable_Windows_Suggestions.reg" continue } 'RevertContextMenu' { - RegImport "> Restoring the old Windows 10 style context menu..." $PSScriptRoot\Regfiles\Disable_Show_More_Options_Context_Menu.reg + RegImport "> Restoring the old Windows 10 style context menu..." "Disable_Show_More_Options_Context_Menu.reg" continue } 'TaskbarAlignLeft' { - RegImport "> Aligning taskbar buttons to the left..." $PSScriptRoot\Regfiles\Align_Taskbar_Left.reg + RegImport "> Aligning taskbar buttons to the left..." "Align_Taskbar_Left.reg" + continue } 'HideSearchTb' { - RegImport "> Hiding the search icon from the taskbar..." $PSScriptRoot\Regfiles\Hide_Search_Taskbar.reg + RegImport "> Hiding the search icon from the taskbar..." "Hide_Search_Taskbar.reg" continue } 'ShowSearchIconTb' { - RegImport "> Changing taskbar search to icon only..." $PSScriptRoot\Regfiles\Show_Search_Icon.reg + RegImport "> Changing taskbar search to icon only..." "Show_Search_Icon.reg" continue } 'ShowSearchLabelTb' { - RegImport "> Changing taskbar search to icon with label..." $PSScriptRoot\Regfiles\Show_Search_Icon_And_Label.reg + RegImport "> Changing taskbar search to icon with label..." "Show_Search_Icon_And_Label.reg" continue } 'ShowSearchBoxTb' { - RegImport "> Changing taskbar search to search box..." $PSScriptRoot\Regfiles\Show_Search_Box.reg + RegImport "> Changing taskbar search to search box..." "Show_Search_Box.reg" continue } 'HideTaskview' { - RegImport "> Hiding the taskview button from the taskbar..." $PSScriptRoot\Regfiles\Hide_Taskview_Taskbar.reg + RegImport "> Hiding the taskview button from the taskbar..." "Hide_Taskview_Taskbar.reg" continue } 'DisableCopilot' { - RegImport "> Disabling Windows copilot..." $PSScriptRoot\Regfiles\Disable_Copilot.reg + RegImport "> Disabling Windows copilot..." "Disable_Copilot.reg" continue } 'DisableRecall' { - RegImport "> Disabling Windows Recall snapshots..." $PSScriptRoot\Regfiles\Disable_AI_Recall.reg + RegImport "> Disabling Windows Recall snapshots..." "Disable_AI_Recall.reg" continue } {$_ -in "HideWidgets", "DisableWidgets"} { - RegImport "> Disabling the widget service and hiding the widget icon from the taskbar..." $PSScriptRoot\Regfiles\Disable_Widgets_Taskbar.reg + RegImport "> Disabling the widget service and hiding the widget icon from the taskbar..." "Disable_Widgets_Taskbar.reg" continue } {$_ -in "HideChat", "DisableChat"} { - RegImport "> Hiding the chat icon from the taskbar..." $PSScriptRoot\Regfiles\Disable_Chat_Taskbar.reg + RegImport "> Hiding the chat icon from the taskbar..." "Disable_Chat_Taskbar.reg" continue } 'ShowHiddenFolders' { - RegImport "> Unhiding hidden files, folders and drives..." $PSScriptRoot\Regfiles\Show_Hidden_Folders.reg + RegImport "> Unhiding hidden files, folders and drives..." "Show_Hidden_Folders.reg" continue } 'ShowKnownFileExt' { - RegImport "> Enabling file extensions for known file types..." $PSScriptRoot\Regfiles\Show_Extensions_For_Known_File_Types.reg + RegImport "> Enabling file extensions for known file types..." "Show_Extensions_For_Known_File_Types.reg" continue } 'HideDupliDrive' { - RegImport "> Hiding duplicate removable drive entries from the Windows explorer navigation pane..." $PSScriptRoot\Regfiles\Hide_duplicate_removable_drives_from_navigation_pane_of_File_Explorer.reg + RegImport "> Hiding duplicate removable drive entries from the Windows explorer navigation pane..." "Hide_duplicate_removable_drives_from_navigation_pane_of_File_Explorer.reg" continue } {$_ -in "HideOnedrive", "DisableOnedrive"} { - RegImport "> Hiding the onedrive folder from the Windows explorer navigation pane..." $PSScriptRoot\Regfiles\Hide_Onedrive_Folder.reg + RegImport "> Hiding the onedrive folder from the Windows explorer navigation pane..." "Hide_Onedrive_Folder.reg" continue } {$_ -in "Hide3dObjects", "Disable3dObjects"} { - RegImport "> Hiding the 3D objects folder from the Windows explorer navigation pane..." $PSScriptRoot\Regfiles\Hide_3D_Objects_Folder.reg + RegImport "> Hiding the 3D objects folder from the Windows explorer navigation pane..." "Hide_3D_Objects_Folder.reg" continue } {$_ -in "HideMusic", "DisableMusic"} { - RegImport "> Hiding the music folder from the Windows explorer navigation pane..." $PSScriptRoot\Regfiles\Hide_Music_folder.reg + RegImport "> Hiding the music folder from the Windows explorer navigation pane..." "Hide_Music_folder.reg" continue } {$_ -in "HideIncludeInLibrary", "DisableIncludeInLibrary"} { - RegImport "> Hiding 'Include in library' in the context menu..." $PSScriptRoot\Regfiles\Disable_Include_in_library_from_context_menu.reg + RegImport "> Hiding 'Include in library' in the context menu..." "Disable_Include_in_library_from_context_menu.reg" continue } {$_ -in "HideGiveAccessTo", "DisableGiveAccessTo"} { - RegImport "> Hiding 'Give access to' in the context menu..." $PSScriptRoot\Regfiles\Disable_Give_access_to_context_menu.reg + RegImport "> Hiding 'Give access to' in the context menu..." "Disable_Give_access_to_context_menu.reg" continue } {$_ -in "HideShare", "DisableShare"} { - RegImport "> Hiding 'Share' in the context menu..." $PSScriptRoot\Regfiles\Disable_Share_from_context_menu.reg + RegImport "> Hiding 'Share' in the context menu..." "Disable_Share_from_context_menu.reg" continue } }