Open CrPO4 opened 2 weeks ago
Regarding the powerplan, does Windows PE also use this? So that when you run the installer it runs in High Perfomance/Ultimate as well.
Regarding the powerplan, does Windows PE also use this?
There is no powercfg.exe
in Windows PE.
Hey, it's me again but this time I'm here to share sometweaks that may or may not be helpful as "checkboxes" in the generator.
Enable "Ultimate Performance" power plan (needs to be added to "Scripts to run when the first user logs on after Windows has been installed" section as .ps1):
Disable some timeout for current power plan, for both "plugged in" and "on battery" (from top to bottom: display, hard disk, "sleep" mode, "hibernation" mode; needs to be added to "Scripts to run when the first user logs on after Windows has been installed" section as .ps1)
All the zeroes may be modified to any amount of minutes, making it possible to set timeouts to weird values like "12 hours and 34 minutes". AC is for "plugged in", DC is for "on battery".
Enable inline sudo in Windows 11 24h2 by default (needs to be added to "Scripts to run in the system context, before user accounts are created" as .ps1):
sudo config --enable normal
Enable "File and printer sharing" for Private and Domain networks (needs to be added to "Scripts to run in the system context, before user accounts are created" as .ps1):
Set-NetFirewallRule -Group "@FirewallAPI.dll,-28502" -Enabled True -Profile Private,Domain
Usable profile names are Private, Domain and Public. Enabling it like in this example enables it for Private and Domain and disables it for Public.Enable logging into SMB administrative shares with local accounts (needs to be added to "Scripts to run in the system context, before user accounts are created" as .reg)::
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System] "LocalAccountTokenFilterPolicy"=dword:00000001