cschneegans / unattend-generator

.NET Core library to create highly customized autounattend.xml files
https://schneegans.de/windows/unattend-generator/
MIT License
659 stars 60 forks source link

[REQUEST] Add option to disable HPET, intergrade NET Framework 2.0, 3.0 & 3.5 and disable Content Delivery Manager. Please #102

Closed qewr4498 closed 5 days ago

qewr4498 commented 2 weeks ago

If it already exist, pls tell me where 🙏 & add option to enable end task in taskbar option (23h2 and 24h2) sry bad eng thank u

cschneegans commented 2 weeks ago

• There already is a setting Disable app suggestions, and I have now added the term Content Delivery Manager to its description:

image

• To enable .NET Framework 3.5, please run

Enable-WindowsOptionalFeature -Online -FeatureName 'NetFx3';

as a .ps1 script in the Scripts to run in the system context, before user accounts are created section. I don't think a dedicated setting is justified for this.

• I am not a gamer, and I have no experience with these HPET settings. As far as I understand, running bcdedit.exe /deletevalue {current} useplatformclock is supposed to disable HPET. Microsoft warns that both useplatformtick and useplatformclock “should only be used for debugging”. Testing is also difficult for me as VMware guests apparently do not support HPET. I would assume that there are more specialized tools to optimize a Windows PC for gaming.

qewr4498 commented 1 week ago

Add this please. [HKEY_USERS\DefaultUser\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\TaskbarDeveloperSettings] "TaskbarEndTask"=dword:00000001

johnw41 commented 1 week ago

To enable .NET Framework 3.5, please run

Enable-WindowsOptionalFeature -Online -FeatureName 'NetFx3';

as a .ps1 script in the Scripts to run in the system context, before user accounts are created section. I don't think a dedicated setting is justified for this.

This script run but not enable it in my windows (Win11_24H2). Is possible with this command and how? Dism.exe /online /enable-feature /featurename:NetFX3 /source:D:\sources\sxs /LimitAccess

cschneegans commented 1 week ago

This script run but not enable it in my windows (Win11_24H2).

Thanks for pointing this out! Running Enable-WindowsOptionalFeature -Online -FeatureName 'NetFx3' in the Scripts to run in the system context, before user accounts are created section indeed throws an error. To check the output of custom scripts, find the log files that match the C:\Windows\Setup\Scripts\unattend-*.log pattern:

Enable-WindowsOptionalFeature : Enable-WindowsOptionalFeature failed. Error code = 0x8024004a
At line:1 char:1
+ Enable-WindowsOptionalFeature -Online -FeatureName 'NetFx3';
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Enable-WindowsOptionalFeature], COMException
    + FullyQualifiedErrorId : Microsoft.Dism.Commands.EnableWindowsOptionalFeatureCommand

However, running in the same script in the Scripts to run when the first user logs on after Windows has been installed section succeeds, and .NET Framework 3.5 is properly installed.

johnw41 commented 1 week ago

Thanks for the answer. Not enable also with this way.

After some tests, finally working with this Scripts to run whenever a user logs on for the first time as a cmd file Dism /online /enable-feature /featurename:NetFX3 /source:D:\sources\sxs /LimitAccess

cschneegans commented 1 week ago

[HKEY_USERS\DefaultUser\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\TaskbarDeveloperSettings] "TaskbarEndTask"=dword:00000001

Is this really that important? I have never missed the End task command, since Close window does the same thing in almost all cases.