[BUG] Shouldn't these values be different?
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).
Winhance Version
Latest / Current
Windows version, edition, and architecture
Windows 11 IoT Enterprise LTSC 2024
Describe your issue
I'm bringing this issue over to Winhance as well since it applies to the program. It also applies to the UnattendedWinstall project.
https://github.com/memstechtips/UnattendedWinstall/issues/277
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
Correct numbers should be displayed as shown.
Actual behavior
Unsure, but the "Recommended" results are not correct.
Screenshots or Logs (if applicable)
No response
Additional context
No response
Hi @KnivesTV — thanks for the detailed write-up and for cross-linking this to UnattendedWinstall #277.
Looking into the numbers you flagged actually surfaced something bigger on my side that I think is going to need a wider refactor in Winhance rather than a one-line tweak. I'd rather take the time to do that properly than patch over it, so I'm going to fold this issue into that work.
When the refactor lands, the values you reported here — and the matching entries in UnattendedWinstall's autounattend.xml — will both be corrected.
Noted for now. I'll report back here once it's done.
Drafted and approved by @memstechtips - Sent by Memory's Agent
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
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.
Hey @KnivesTV,
Thanks again for the full list, and sorry this took a while. I went through all 19 items in my development build of Winhance:
- Several are already changed there: the USB hub selective suspend timeout is now 50/50, the power button is Shut down, the sleep button is Sleep, both video playback settings match Windows, and Print Spooler is back to Automatic.
- You were right that the Windows default values shown in the current release were wrong. They're fixed and now match a clean Windows install: the display turns off after 10 minutes plugged in and 5 on battery, the PC sleeps after 30 minutes plugged in and 15 on battery, and the minimum processor state is 5%. That also means a few values in your list (display off after 3 minutes on battery, sleep after 10 minutes on battery, 0% minimum processor state) came from those wrong defaults rather than from Windows.
- The rest are on purpose. Recommended is my take on good settings, not a copy of the Windows defaults, so things like never sleeping when plugged in, no USB and PCIe power saving when plugged in, and a 100% minimum processor state stay as they are. If you'd rather have the Windows defaults, the "Reset to Windows Defaults" option under Quick Actions on each page does exactly that.
The development build isn't public, so you can't get these changes yet. They will be in Winhance Release 28 when it comes out, but I don't have a release date yet. The UnattendedWinstall side is answered on your issue there.
I'll close this one now. If something still looks off once you've tried Release 28, just comment here and I'll reopen it.
@memstechtips
the PC sleeps after 30 minutes plugged in
Hi Marco,
Your revision shows that the PC is now set to never sleep while plugged in. It will sleep after 15 minutes while on battery.
Current new revision:
@{ S="238c9fa8-0aad-41ed-83f4-97be242c8f20"; G="29f6c1db-86da-48c5-9fdb-f2b67b1f44da"; AC=0; DC=900; N="Specifies the period of inactivity before Windows puts the computer to sleep" },
If you want it to sleep after 30 minutes while plugged in, it should be this:
@{ S="238c9fa8-0aad-41ed-83f4-97be242c8f20"; G="29f6c1db-86da-48c5-9fdb-f2b67b1f44da"; AC=1800; DC=900; N="Specifies the period of inactivity before Windows puts the computer to sleep" },
Edit:
There seems to be a contradiction between what was posted above and the following:
https://github.com/memstechtips/UnattendedWinstall/issues/277#issuecomment-6267385004
In the link above, you mentioned that the PC never sleeps when plugged in, but it will after 15 minutes on battery since that matches Winhance's recommended settings.
If that is the case, that's fine by me. My original response in this post can be disregarded.
The telemetry settings for Windows 10/11 was covered, yet it still remains with a -Value 3 in the autounattend.xml file on line 2406 here:
https://github.com/memstechtips/UnattendedWinstall/blob/main/autounattend.xml
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'
That means Winhance will retain this as well as the recommended setting. While this is not a bad thing since it is already set to disabled, it could be better by making it -Value 4:
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'
Please refer to the following links for reference:
https://greatis.com/tweak/antispy/disable-the-diagnostics-tracking-service.htm https://github.com/Floggx/Windows-11-Disable-Telemetry
Thank you for considering.
Thanks for pointing this out! You're right that DiagTrack was still on Manual (3) in both Winhance and UnattendedWinstall. I tested Disabled (4) on a clean Windows 11 26H2 install: Windows Update, the Microsoft Store and the diagnostics settings page all kept working. So in Winhance Release 28 the recommended value is Disabled (4), and UnattendedWinstall gets the same change as soon as I release the new Winhance update.