Raphire / Win11Debloat

A simple, easy to use PowerShell script to remove pre-installed apps from Windows, disable telemetry, remove Bing from Windows search as well as perform various other changes to declutter and improve your Windows experience. This script works for both Windows 10 and Windows 11.
MIT License
12.88k stars 546 forks source link

Support of audit environment #31

Closed LuCarhub closed 3 months ago

LuCarhub commented 7 months ago

Hi Raphine,

very nice work your script. I've used it on 3 or 4 different new installation of windows 11 to create an image with sysprep. It seems that it works well removing unuseful ms store app, but it loses personalization of interface (position of start button, combining of button in the taskbar). Did you try to use it in audit mode?

Raphire commented 7 months ago

Heya,

Just to avoid any miscommunication: From what I understand you're running the Win11Debloat script in audit mode to prep a Windows 11 image.

I have not personally used or tested audit mode, but I think the reason that certain changes are not applying when running the script in audit mode is because some changes only apply the user profile of the user that executes the script. The reason that app removal does work is because the apps are removed from the image itself.

Unfortunately the only (supported) way to apply many of the personalization changes on a global level is through GPO/intune.

LuCarhub commented 7 months ago

I understand, but I on windows 10 I was able to keep many configuration in the registry loading hive for default user. If I have time I will try and let you know

Raphire commented 7 months ago

Ah I see! I was able to find more information, and it does seem like something worth implementing into Win11Debloat. I unfortunately also do not have much time right now, but I'll try keep this thread up to date of any developments.

loadstring1 commented 4 months ago

Microsoft are not so naive as to not know about these Debloats, so my question is - is there a way for me to run a script or some program that checks for me if Microsoft didn't bring back these telemetries among other things that were disabled by this debloat?

if you disable windows updates thats enough to prevent microsoft from reinstalling bloat (such as ms edge) and re-enabling telemetry and spyware

johnnyq commented 3 months ago

Hey checking in on this one as this can prove to be very useful and thank you for this great script

Raphire commented 3 months ago

Heya

I'm happy to report the sysprep feature is in the works. I have opened a new branch to open it up to testing. Please be advised that this may contain a few bugs. I have personally noticed that Windows doesn't respect the Search button setting here.

If you wish to test it out, you can find it here: https://github.com/Raphire/Win11Debloat/tree/Sysprep-experimental

LuCarhub commented 3 months ago

  Hi there,   I saw the link on GitHub - Raphire/Win11Debloat at Sysprep-experimental to master.zip is https://github.com/Raphire/Win11Debloat/archive/master.zip, the same of official page and I read also "Merge branch 'master' into Sysprep-experimental" So, master.zip has also the implementatio for sysprep, isn't it? Do I have to use master.zip for sysprep?  

-----Messaggio originale-----

Da: Jeffrey @.> A: Raphire @.> Cc: Luca @.>; Author @.> data: domenica 23 giugno 2024 02:38 CEST Oggetto: Re: [Raphire/Win11Debloat] Support of audit environment (Issue #31)

  Heya I'm happy to report the sysprep feature is in the works. I have opened a new branch to open it up to testing. Please be advised that this may contain a few bugs. I have personally noticed that Windows doesn't respect the Search button setting here. If you wish to test it out, you can find it here: https://github.com/Raphire/Win11Debloat/tree/Sysprep-experimental — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

Raphire commented 3 months ago

Hi there,   I saw the link on GitHub - Raphire/Win11Debloat at Sysprep-experimental to master.zip is https://github.com/Raphire/Win11Debloat/archive/master.zip, the same of official page and I read also "Merge branch 'master' into Sysprep-experimental" So, master.zip has also the implementatio for sysprep, isn't it? Do I have to use master.zip for sysprep?   -----Messaggio originale----- Da: Jeffrey @.> A: Raphire @.> Cc: Luca @.>; Author @.> data: domenica 23 giugno 2024 02:38 CEST Oggetto: Re: [Raphire/Win11Debloat] Support of audit environment (Issue #31)   Heya I'm happy to report the sysprep feature is in the works. I have opened a new branch to open it up to testing. Please be advised that this may contain a few bugs. I have personally noticed that Windows doesn't respect the Search button setting here. If you wish to test it out, you can find it here: https://github.com/Raphire/Win11Debloat/tree/Sysprep-experimental — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

@LuCarhub You can get the version with the Sysprep version from here: https://github.com/Raphire/Win11Debloat/archive/refs/heads/Sysprep-experimental.zip

The Sysprep feature has not yet made it into the master branch.

Raphire commented 3 months ago

This feature has been added as of 1d2c6ea.

To run the script in Sysprep mode simply use the -Sysprep parameter while executing the script. All changes will be applied to the Windows default user template, and affect all user accounts created thereafter.

johnnyq commented 3 months ago

Excellent Work @Raphire Will this also work if Im creating an initial admin user and apply the script with -Sysprep to that user will it affect all users created after that or do i have to use sysprep audit mode?

Raphire commented 3 months ago

Excellent Work @Raphire Will this also work if Im creating an initial admin user and apply the script with -Sysprep to that user will it affect all users created after that or do i have to use sysprep audit mode?

When you run the script with Sysprep the changes are applied to the default user template instead of the current user.

So ideally you would run the script in audit mode before creating the initial admin account. Alternatively you can run the script twice, once with and once without the Sysprep parameter.