UnattendedWinstall icon indicating copy to clipboard operation
UnattendedWinstall copied to clipboard

[BUG] Shouldn't these values be different?

Open KnivesTV opened this issue 6 months ago • 3 comments

Please confirm these before moving forward

  • [x] I have searched for my issue and have not found a similiar in the Open or Closed issues.
  • [x] I have tested that this issue has not been fixed in the latest (beta or stable) release.
  • [x] I have checked the Discussions section for solutions.
  • [x] This issue is about a bug (if it is not, please use the correct template).

UnattendedWinstall Version

Latest / Current

Windows version, edition, and architecture

Windows 11 IoT Enterprise LTSC 2024

Describe your issue


I am pointing out several minor mistakes made in both the autounattend.xml file and Winhance program.

For more explanation and information, my original report can be found on Memory's Tech Tips Discord here:

https://discord.com/channels/1192038830245679177/1502674468198420611

I'll give the summary version below to keep things short and simple.


For the autounattend.xml file, these are wrong: 👎 These are the current settings in the autounattend.xml file.

    @{ S="7516b95f-f776-4464-8c53-06167f40cc99"; G="3c0bc021-c8a8-4e07-a973-6b14cbcb2b7e"; AC=0; DC=300; N="Specifies the period of inactivity before Windows turns off the display" },

    @{ S="238c9fa8-0aad-41ed-83f4-97be242c8f20"; G="29f6c1db-86da-48c5-9fdb-f2b67b1f44da"; AC=1; DC=1; N="Specifies the period of inactivity before Windows puts the computer to sleep" },

For the autounattend.xml file, these are right: 👍 These are the changes that should be made to the autounattend.xml file.

    @{ S="7516b95f-f776-4464-8c53-06167f40cc99"; G="3c0bc021-c8a8-4e07-a973-6b14cbcb2b7e"; AC=0; DC=180; N="Specifies the period of inactivity before Windows turns off the display" },

    @{ S="238c9fa8-0aad-41ed-83f4-97be242c8f20"; G="29f6c1db-86da-48c5-9fdb-f2b67b1f44da"; AC=0; DC=600; N="Specifies the period of inactivity before Windows puts the computer to sleep" },

For Winhance while viewing the "Technical Details", these are wrong: 👎 These are the current settings in the Winhance program when viewing the Technical Details.

Winhance > Optimizations > Power > Display > Turn off the display Recommended: AC:0 DC:300

Winhance > Optimizations > Power > Sleep > Put the computer to sleep Recommended: AC:0 DC:900


For Winhance while viewing the "Technical Details", these are right: 👍 These are the settings in the Winhance program that should be displayed when viewing the Technical Details.

Winhance > Optimizations > Power > Display > Turn off the display Recommended: AC:0 DC:180

Winhance > Optimizations > Power > Sleep > Put the computer to sleep Recommended: AC:0 DC:600


Steps to reproduce the issue

Steps are provided.

Expected behavior

One of the expected behaviours is to have the computer stay awake forever and not go to sleep after 1 minute when using the autounattend.xml file.

Actual behavior

The computer goes to sleep after 1 minute when using the autounattend.xml file. The other settings are also incorrect as noted, but the outcome of this is unknown.

Screenshots or Logs (if applicable)

No response

Additional context

No response

KnivesTV avatar May 11 '26 01:05 KnivesTV

I went through UnattendedWinstall and Winhance to find all of the mistakes made between the two, along with the things that should ideally be changed back to the Windows default settings, along with one telemetry setting that can be changed. This list includes the changes noted above as well to make it complete.

Here it is:


The only change made here is from "DC=300" to "DC=180" to fix a mistake.

The "DC=300" shown below appears to be a mistake in the autounattend.xml file. It should always be set to "DC=180" no matter what, which is a default setting in Windows. I don't know what it represents, but this is what is shown in Winhance in every possible adjustment to powering off the monitor, including leaving it on indefinitely. There is no scenario where this number is ever set to "DC=300", so be sure to change it as shown below.

From:

    @{ S="7516b95f-f776-4464-8c53-06167f40cc99"; G="3c0bc021-c8a8-4e07-a973-6b14cbcb2b7e"; AC=0; DC=300; N="Specifies the period of inactivity before Windows turns off the display" },

To:

    @{ S="7516b95f-f776-4464-8c53-06167f40cc99"; G="3c0bc021-c8a8-4e07-a973-6b14cbcb2b7e"; AC=0; DC=180; N="Specifies the period of inactivity before Windows turns off the display" },

Winhance > Optimizations > Power > Display > Turn off the display: Never


The only change made here is from "AC=0" to "AC=1200" to turn off the hard drives after 20 minutes, which is the default setting in Windows.

From:

    @{ S="0012ee47-9041-4b5d-9b77-535fba8b1442"; G="6738e2c4-e8a5-4a42-b16a-e040e769756e"; AC=0; DC=600; N="Specifies the period of inactivity before Windows turns off the hard disk" },

To:

    @{ S="0012ee47-9041-4b5d-9b77-535fba8b1442"; G="6738e2c4-e8a5-4a42-b16a-e040e769756e"; AC=1200; DC=600; N="Specifies the period of inactivity before Windows turns off the hard disk" },

Winhance > Optimizations > Power > Hard Disk > Turn off hard disk after: 20


The changes made here are from "AC=1; DC=1" to "AC=0; DC=600" to fix a mistake.

The "DC=1" shown below appears to be a mistake in the autounattend.xml file. It should always be set to "DC=600" no matter what, which is a default setting in Windows. I don't know what it represents, but this is what is shown in Winhance in every possible adjustment to putting the computer to sleep, including never having it sleep. There is no scenario where this number is ever set to "DC=1", so be sure to change it as shown below.

From:

    @{ S="238c9fa8-0aad-41ed-83f4-97be242c8f20"; G="29f6c1db-86da-48c5-9fdb-f2b67b1f44da"; AC=1; DC=1; N="Specifies the period of inactivity before Windows puts the computer to sleep" },

To:

    @{ S="238c9fa8-0aad-41ed-83f4-97be242c8f20"; G="29f6c1db-86da-48c5-9fdb-f2b67b1f44da"; AC=0; DC=600; N="Specifies the period of inactivity before Windows puts the computer to sleep" },

Winhance > Optimizations > Power > Sleep > Put the computer to sleep: Never


The changes made here are from "AC=0; DC=1000" to "AC=50; DC=50" to fix a mistake.

The "DC=1000" shown below appears to be a mistake in the autounattend.xml file. It should always be set to "DC=50" no matter what, which is a default setting in Windows. I don't know what it represents, but this is what it should be in Winhance in every possible adjustment to set how long it takes the USB hubs to idle down, which is the default setting in Windows. There is no scenario where this number is ever set to "DC=1000", so be sure to change it as shown below.

From:

    @{ S="2a737441-1930-4402-8d77-b2bebba308a3"; G="0853a681-27c8-4100-a2fd-82013e970683"; AC=0; DC=1000; N="Set how long USB hubs wait idle before powering down to save energy" },

To:

    @{ S="2a737441-1930-4402-8d77-b2bebba308a3"; G="0853a681-27c8-4100-a2fd-82013e970683"; AC=50; DC=50; N="Set how long USB hubs wait idle before powering down to save energy" },

Winhance > Optimizations > Power > USB Settings > USB Hub Selective Suspend Timeout: 50


The only change made here is from "AC=0" to "AC=1" to turn off individual USB ports when devices are idle, which is the default setting in Windows.

From:

    @{ S="2a737441-1930-4402-8d77-b2bebba308a3"; G="48e6b7a6-50f5-4782-a5d4-53bb8f07e226"; AC=0; DC=1; N="Allow Windows to power down individual USB ports when devices are idle to save energy" },

To:

    @{ S="2a737441-1930-4402-8d77-b2bebba308a3"; G="48e6b7a6-50f5-4782-a5d4-53bb8f07e226"; AC=1; DC=1; N="Allow Windows to power down individual USB ports when devices are idle to save energy" },

Winhance > Optimizations > Power > USB Settings > USB selective suspend setting: Enabled


The only change made here is from "AC=0" to "AC=2" to set moderate power savings for USB 3.0 ports, which is the default setting in Windows.

From:

    @{ S="2a737441-1930-4402-8d77-b2bebba308a3"; G="d4e98f31-5ffe-4ce1-be31-1b38b384c009"; AC=0; DC=2; N="Control how aggressively USB 3.0 ports enter low-power states when devices are idle" },

To:

    @{ S="2a737441-1930-4402-8d77-b2bebba308a3"; G="d4e98f31-5ffe-4ce1-be31-1b38b384c009"; AC=2; DC=2; N="Control how aggressively USB 3.0 ports enter low-power states when devices are idle" },

Winhance > Optimizations > Power > USB Settings > USB 3 Link Power Management: Moderate power savings


The changes made here are from "AC=0; DC=0" to "AC=3; DC=3" to set the power button to shut down, which is the default setting in Windows.

From:

    @{ S="4f971e89-eebd-4455-a8de-9e59040e7347"; G="7648efa3-dd9c-4e3e-b566-50f929386280"; AC=0; DC=0; N="Choose what happens when you press the physical power button on your computer" },

To:

    @{ S="4f971e89-eebd-4455-a8de-9e59040e7347"; G="7648efa3-dd9c-4e3e-b566-50f929386280"; AC=3; DC=3; N="Choose what happens when you press the physical power button on your computer" },

Winhance > Optimizations > Power > Power Buttons and Lid > Power button action: Shut down


The changes made here are from "AC=0; DC=0" to "AC=1; DC=1" to set the sleep button to sleep, which is the default setting in Windows.

From:

    @{ S="4f971e89-eebd-4455-a8de-9e59040e7347"; G="96996bc0-ad50-47ec-923b-6f41874dd9eb"; AC=0; DC=0; N="Choose what happens when you press the dedicated sleep button on your keyboard or computer" },

To:

    @{ S="4f971e89-eebd-4455-a8de-9e59040e7347"; G="96996bc0-ad50-47ec-923b-6f41874dd9eb"; AC=1; DC=1; N="Choose what happens when you press the dedicated sleep button on your keyboard or computer" },

Winhance > Optimizations > Power > Power Buttons and Lid > Sleep button action: Sleep


The only change made here is from "AC=0" to "AC=1" to set the PCIe link to moderate power savings, which is the default setting in Windows.

From:

    @{ S="501a4d13-42af-4429-9fd1-a8218c268e20"; G="ee12f906-d277-404b-b6da-e5fa1a576df5"; AC=0; DC=2; N="Control power savings for PCIe devices like graphics cards, SSDs, and expansion cards" },

To:

    @{ S="501a4d13-42af-4429-9fd1-a8218c268e20"; G="ee12f906-d277-404b-b6da-e5fa1a576df5"; AC=1; DC=2; N="Control power savings for PCIe devices like graphics cards, SSDs, and expansion cards" },

Winhance > Optimizations > Power > PCI Express > Link State Power Management: Moderate power savings


The only change made here is from "AC=100" to "AC=0" to set the CPU minimal speed from 100% to 0%, which is the default setting in Windows.

From:

    @{ S="54533251-82be-4824-96c1-47b60b740d00"; G="893dee8e-2bef-41e0-89c6-b55d0929964c"; AC=100; DC=5; N="Set the lowest CPU speed allowed as a percentage of maximum frequency" },

To:

    @{ S="54533251-82be-4824-96c1-47b60b740d00"; G="893dee8e-2bef-41e0-89c6-b55d0929964c"; AC=0; DC=5; N="Set the lowest CPU speed allowed as a percentage of maximum frequency" },

Winhance > Optimizations > Power > Processor Power Management > Minimum processor state: 0


The only change made here is from "DC=1" to "DC=0" to fix a mistake.

The "DC=1" shown below appears to be a mistake in the autounattend.xml file. It should always be set to "DC=0" no matter what, which is a default setting in Windows. I don't know what it represents, but this is what it should be in Winhance in every possible adjustment to set the smooth video playback priority setting, which is the default setting in Windows. There is no scenario where this number is ever set to "DC=1", so be sure to change it as shown below.

From:

    @{ S="9596fb26-9850-41fd-ac3e-f7c3c00afd4b"; G="10778347-1370-4ee0-8bbd-33bdacaade49"; AC=1; DC=1; N="Prioritize smooth video playback over battery life when watching videos" },

To:

    @{ S="9596fb26-9850-41fd-ac3e-f7c3c00afd4b"; G="10778347-1370-4ee0-8bbd-33bdacaade49"; AC=1; DC=0; N="Prioritize smooth video playback over battery life when watching videos" },

Winhance > Optimizations > Power > Multimedia Settings > Video Playback Quality Bias: Video playback performance bias


The only change made here is from "DC=0" to "DC=1" to fix a mistake.

The "DC=0" shown below appears to be a mistake in the autounattend.xml file. It should always be set to "DC=1" no matter what, which is a default setting in Windows. I don't know what it represents, but this is what it should be in Winhance in every possible adjustment to set the video quality and power consumption during video playback, which is the default setting in Windows. There is no scenario where this number is ever set to "DC=0", so be sure to change it as shown below.

From:

    @{ S="9596fb26-9850-41fd-ac3e-f7c3c00afd4b"; G="34c7b99f-9a6d-4b3c-8dc7-b6693b78cef4"; AC=0; DC=0; N="Balance video quality and power consumption during video playback" },

To:

    @{ S="9596fb26-9850-41fd-ac3e-f7c3c00afd4b"; G="34c7b99f-9a6d-4b3c-8dc7-b6693b78cef4"; AC=0; DC=1; N="Balance video quality and power consumption during video playback" },

Winhance > Optimizations > Power > Multimedia Settings > When Playing Video: Balanced


The only change made here is from "-Value 3" to "-Value 2" to automatically manage print jobs to printers, which is the default setting in Windows.

From:

Set-RegistryValue -Path 'HKLM:\SYSTEM\CurrentControlSet\Services\Spooler' -Name 'Start' -Type 'DWord' -Value 3 -Description 'Manages print jobs sent to printers. If you do not use a printer, set to Manual or Disabled to free up system resources'

To:

Set-RegistryValue -Path 'HKLM:\SYSTEM\CurrentControlSet\Services\Spooler' -Name 'Start' -Type 'DWord' -Value 2 -Description 'Manages print jobs sent to printers. If you do not use a printer, set to Manual or Disabled to free up system resources'

Winhance > Optimizations > Gaming & Performance > System Services > Printer Spooler Service: Automatic


The only change made here is from "-Value 3" to "-Value 4" to completely disable the sending of telemetry usage data and diagnostics to Microsoft.

From:

Set-RegistryValue -Path 'HKLM:\SYSTEM\CurrentControlSet\Services\DiagTrack' -Name 'Start' -Type 'DWord' -Value 3 -Description 'Sends usage data and diagnostics to Microsoft. Setting to Manual or Disabled reduces background network and CPU usage'

To:

Set-RegistryValue -Path 'HKLM:\SYSTEM\CurrentControlSet\Services\DiagTrack' -Name 'Start' -Type 'DWord' -Value 4 -Description 'Sends usage data and diagnostics to Microsoft. Setting to Manual or Disabled reduces background network and CPU usage'

Winhance > Optimizations > Gaming & Performance > System Services > Connected User Experiences and Telemetry Services: Disabled


The only change made here is from "$False" to "$True" to enable smooth scrolling, which is the default setting in Windows.

From:

        Set-BinaryBit -Path 'HKCU:\Control Panel\Desktop' -Name 'UserPreferencesMask' -ByteIndex 0 -BitMask 0x08 -SetBit $False -Description 'Enables smooth scrolling in list boxes instead of jumping'

To:

        Set-BinaryBit -Path 'HKCU:\Control Panel\Desktop' -Name 'UserPreferencesMask' -ByteIndex 0 -BitMask 0x08 -SetBit $True -Description 'Enables smooth scrolling in list boxes instead of jumping'

Winhance > Optimizations > Gaming & Performance > Visual Effects > Smooth-scroll list boxes: On


The only change made here is from "-Value 1" to "-Value 0" to hide hidden files, folders and drives, which is the default setting in Windows.

From:

        Set-RegistryValue -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced' -Name 'Hidden' -Type 'DWord' -Value 1 -Description 'Displays items with the hidden attribute set'

To:

        Set-RegistryValue -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced' -Name 'Hidden' -Type 'DWord' -Value 0 -Description 'Displays items with the hidden attribute set'

Winhance > Customizations > Explorer > Files and Folders > Show hidden files, folders & drives: Off


The only change made here is from "-Value 0" to "-Value 1" to align taskbar icons to the center (Windows 11 default).

From:

        Set-RegistryValue -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced' -Name 'TaskbarAl' -Type 'DWord' -Value 0 -Description 'Align taskbar icons to the left (classic Windows style) or center (Windows 11 default)'

To:

        Set-RegistryValue -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced' -Name 'TaskbarAl' -Type 'DWord' -Value 1 -Description 'Align taskbar icons to the left (classic Windows style) or center (Windows 11 default)'

Winhance > Customizations > Taskbar > Taskbar Behavior > Taskbar alignment: Center


The only change made here is from "-Value 0" to "-Value 1" to hide system tray icons, which is the default setting in Windows.

From:

        Set-RegistryValue -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer' -Name 'EnableAutoTray' -Type 'DWord' -Value 0 -Description 'Show all system tray icons directly on the taskbar instead of hiding them in the overflow menu (up arrow)'

To:

        Set-RegistryValue -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer' -Name 'EnableAutoTray' -Type 'DWord' -Value 1 -Description 'Show all system tray icons directly on the taskbar instead of hiding them in the overflow menu (up arrow)'

Winhance > Customizations > Taskbar > Taskbar Behavior > Always show all system tray icons: Off


The only change made here is from "-Value 1" to "-Value 0" to make the taskbar and icons larger, which is the default setting in Windows.

From:

        Set-RegistryValue -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced' -Name 'TaskbarSmallIcons' -Type 'DWord' -Value 1 -Description 'Reduce the height of the taskbar by using smaller icons, giving you more screen space'

To:

        Set-RegistryValue -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced' -Name 'TaskbarSmallIcons' -Type 'DWord' -Value 0 -Description 'Reduce the height of the taskbar by using smaller icons, giving you more screen space'

Winhance > Customizations > Taskbar > Taskbar Behavior > Make taskbar small: Off


KnivesTV avatar Jul 25 '26 23:07 KnivesTV

Hey @KnivesTV thanks for this, I appreciate it. Right now, I'm also busy looking into this in depth, so thanks for providing all of these, appreciate it.

memstechtips avatar Jul 27 '26 07:07 memstechtips

Hey @KnivesTV,

Thanks for reporting this, and sorry it took so long. You found a real bug: the answer file sets the sleep timeout to 1 second, which is why your PC went to sleep after about a minute. I've fixed that line so the PC never sleeps when plugged in and sleeps after 15 minutes on battery, which matches Winhance's Recommended settings.

The other values in your list come from Winhance's Recommended settings, because this answer file is generated by Winhance. I've answered those one by one on the Winhance issue: https://github.com/memstechtips/Winhance/issues/639

Once Winhance Release 28 is out, I'll generate a fresh answer file from it, so the whole file will match the new version. I don't have a release date yet.

I'll close this one now. If the sleep problem comes back after the update, just comment here and I'll reopen it.

memstechtips avatar Oct 19 '26 12:10 memstechtips