Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Power Throttling doesn't turn back on #2

Closed
leonn22 opened this issue May 11, 2022 · 3 comments
Closed

Power Throttling doesn't turn back on #2

leonn22 opened this issue May 11, 2022 · 3 comments

Comments

@leonn22
Copy link

leonn22 commented May 11, 2022

Describe the bug
Cannot find path ??

To Reproduce
Steps to reproduce the behavior:

  1. run iwr -useb https://t.co/7wU8SkpUXY | iex on elevated prompt
  2. Checked Enable Power Throttling on..
  3. See error..
Set-ItemProperty : Cannot find path 'HKLM:\SYSTEM\CurrentControlSet\Control\Power\PowerThrottling' because it does not
exist.
At line:1039 char:9
+         Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Contro ...
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (HKLM:\SYSTEM\Cu...PowerThrottling:String) [Set-ItemProperty], ItemNotFo
   undException
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.SetItemPropertyCommand

Expected behavior
Turn PowerThrottling on.

Screenshots
Registry Editor
Registry Editor Screenshot

Additional context

@Carterpersall
Copy link
Contributor

It seems that the issue is that the PowerThrottling registry directory does not exist in a default install.

The solution would be to add an if-statement before the line that errors that checks for the PowerThrottling registry directory and creates it if missing.

Carterpersall added a commit to Carterpersall/winutil that referenced this issue May 13, 2022
 - Fixes issue listed in issue ChrisTitusTech#2
   - Closes ChrisTitusTech#2
   - Changing the PowerThrottlingOff key previously errored as the directory PowerThrottling does not exist by default
     - Fixed by adding a check for the PowerThrottling directory, and if it does not exist it creates it
@Carterpersall
Copy link
Contributor

It should be fixed in my pull request #3

@leonn22 leonn22 closed this as completed May 13, 2022
@leonn22
Copy link
Author

leonn22 commented May 14, 2022

i fixed mine by mannually adding it to the registry.

ChrisTitusTech pushed a commit that referenced this issue Nov 28, 2023
* Update applications.json

* Khalylexe patch 1 (#2)

* Update inputXML.xaml

* Update applications.json (#1)

* Update applications.json

* Update applications.json

* Update inputXML.xaml
ChrisTitusTech added a commit that referenced this issue Nov 28, 2023
* Compile Winutil

* fix enable toggle visual shape (#1179)

* Compile Winutil

* Update README.md (#1142)

* Update README.md

* Update README.md

Update the README.md to be more precise & clear. Fix up grammatical mistakes, allow users to figure out their issues easier. Fix crediting of IRM execution script.

* Update README.md

* Compile Winutil

* replacing the hard-coded paths for windows dir (#1126)

* Changed version of python for winget to 3.12 (#1137)

* Compile Winutil

* Added Programs to the Install List (#1143)

* Added the checkboxes of what I want to add

* Added duplicati

* Added KDE Connect

* Added OpenVPN Connect

* Added Oracle Virtual Box

* Added Paint.net

* Fixed an error spotted in the KDE Connect package names

* Added the checkboxes into inputXML.xaml

* Added the package details to config\applications.json

* Reverted changes from winutil

---------

Co-authored-by: Chris Titus <[email protected]>

* Compile Winutil

* New Section: Customize  Preferences (inside tweaks section) (#1163)

* convert numlock on startup checkboxs into toggle button

* convert verboselogon checkbox into toggle button

* gui changes : added new section, new style for toggle buttons

* convert showfileextentions checkbox into toggle button

* convert mouse acceleration checkboxs into togglebutton

* manor changes : cleanup, adding tooltips

* fix style of toggle tweaks

added new style 'labelfortweaks' that fix sytle and give mouse hover effect like previous tweaks that are using checkbox style but here for toggle tweaks we are using label and to make other tweaks style 'labelfortweaks' sytle is used. it mimic the style of checkbox style

---------

Co-authored-by: Chris Titus <[email protected]>

* Compile Winutil

* add Thunderbird (#1165)

* Compile Winutil

* Update the screenshot in README w/ dark mode (#1173)

* took a pr on main and pulling it to test (#1175)

* Add Session messenger to the applications list. (#1166)

* Update applications.json

* Update inputXML.xaml

* Compile Winutil

---------

Co-authored-by: charlescgs <[email protected]>
Co-authored-by: ChrisTitusTech <[email protected]>

* Compile Winutil

* fix enable toggle visual shape

---------

Co-authored-by: ChrisTitusTech <[email protected]>
Co-authored-by: aim <[email protected]>
Co-authored-by: edelvarden <[email protected]>
Co-authored-by: dass2608 <[email protected]>
Co-authored-by: Inventhrice <[email protected]>
Co-authored-by: Chris Titus <[email protected]>
Co-authored-by: Antun Nitraj <[email protected]>
Co-authored-by: Meen Beese <[email protected]>
Co-authored-by: charlescgs <[email protected]>
Co-authored-by: padsalatushal <[email protected]>

* Add 2 Applications (#1180)

This adds KDE Dolphin File Manager and Sublime Merge.

* Compile Winutil

* Microwin and fixes (#1184)

* Microwin and fixes

* comment out product key

---------

Co-authored-by: KonTy <[email protected]>
Co-authored-by: Chris Titus <[email protected]>

* Compile Winutil

* Microwin Fixes

* Set owner fix for issue (#1184) (#1185)

* Microwin and fixes

* Fix for #1184, takeown doesn't work on non English Windows

---------

Co-authored-by: KonTy <[email protected]>

* Compile Winutil

* Microwin Fix on Bare Metal

Fixes the "The computer restarted unexpectedly" error on a fresh install

* Compile Winutil

* MicroWin: fixing German and Spanish bugs (#1194)

* Fixing German and other languages local issue, also doing some house keeping

* Fixed several Microwin bugs

* Fixing local bug and adding copy to USB feature

* Adding driver injection capabilities and fixing bugs in Microwin

---------

Co-authored-by: KonTy <[email protected]>

* Compile Winutil

* error check before removing mountDir

* MicroWin Finalized

- fix typo
- changed oscdimg from using & to Start-Process

* Compile Winutil

* winget reinstall addition

* Adding Floorp Browser (#1204)

* Update applications.json

* Khalylexe patch 1 (#2)

* Update inputXML.xaml

* Update applications.json (#1)

* Update applications.json

* Update applications.json

* Update inputXML.xaml

* Compile Winutil

* Mercury Browser from Alex313031 (#1206)

* Compile Winutil

* Add Git Extensions git client (#1201)

* Compile Winutil

* Add PDFsam Basic (#1198)

* Compile Winutil

* Add new applications (#1197)

* Compile Winutil

* fixed typo in a few places. (#1192)

* Compile Winutil

* Added new tools! (#1190)

* Update applications.json

Added:
- Anki
- Clipgrab
- clink
- copyq 
- Devtoys
- ohmyposh
- masscode
- portmaster
- starship

* Update inputXML.xaml

added the software to the form

---------

Co-authored-by: Chris Titus <[email protected]>

* Compile Winutil

* Update applications.json (#1187)

Added to choco  :
nilesoft-shell
prismlauncher
bluestacks
flameshot

* Compile Winutil

* fix unit test

* Update functions.Tests.ps1

FIXED

* fix trailing comma

* Compile Winutil

* Update winutil.ps1

---------

Co-authored-by: ChrisTitusTech <[email protected]>
Co-authored-by: Padsala Tushal <[email protected]>
Co-authored-by: aim <[email protected]>
Co-authored-by: edelvarden <[email protected]>
Co-authored-by: dass2608 <[email protected]>
Co-authored-by: Inventhrice <[email protected]>
Co-authored-by: Antun Nitraj <[email protected]>
Co-authored-by: Meen Beese <[email protected]>
Co-authored-by: charlescgs <[email protected]>
Co-authored-by: padsalatushal <[email protected]>
Co-authored-by: AshlynOrSomethin <[email protected]>
Co-authored-by: KonTy <[email protected]>
Co-authored-by: KonTy <[email protected]>
Co-authored-by: Khalyl <[email protected]>
Co-authored-by: Rodhri Erebo <[email protected]>
Co-authored-by: Julius Vitkauskas <[email protected]>
Co-authored-by: Finn Krestel <[email protected]>
Co-authored-by: BladeWDR <[email protected]>
Co-authored-by: Albert <[email protected]>
Co-authored-by: Straight <[email protected]>
ChrisTitusTech pushed a commit that referenced this issue Jul 8, 2024
* Redirect dev to latest Fulll Release if can't catch prerelease

* Fix logic and URL to select the latest release (#2)

* Compile Winutil

* fix redirect to latest release

---------

Co-authored-by: Marterich <[email protected]>

* Set Powershell Window Title

* moved setting Window Name

* remove setting Windowname

Window Name gets overwritten

---------

Co-authored-by: Martin Wiethan <[email protected]>
Co-authored-by: Marterich <[email protected]>
ChrisTitusTech pushed a commit that referenced this issue Oct 7, 2024
* Fix minor denomination problem for packages

* Fix incorrect filter of OS packages

Packages such as the metadata for capabilities (FoDs) or the foundation package were being incorrectly filtered. They were part of `Remove-ProvisionedPackages`, which only removes AppX packages. These are **OS packages**, something completely different

* Fixed indentation

* Exclude `Microsoft-RemoteDesktopConnection`

Exclude that from feature list. Fixes #2705

* Remove DISM from AppX removal listings

DISM is a system component. It will never be an AppX package. This is unnecessary

* Improve error handling for file copy

* Remove space (for some reason)

Compilation script is very adamant that this should be this way

* Exclude the VBSCRIPT Features on Demand from pkgs

Exclude the VBSCRIPT feature on demand (or capability) from package removal. Some people were reporting that excluding VBSCRIPT fixed problems with AMD chipset drivers on MicroWin

* Exclude Recall from feature listings

This fixes problems people were experiencing where the file explorer would go back to the Windows 10 layout

* Improve error output

* Add 24H2 to release list

* Detect Windows 10 and show compatibility dialog

* Disable some insane desktop stuff on Windows 10

I've only been able to disable Search Highlights. News and Interests persists

* Change policy for News and Interests

Avoid showing "Access denied" errors for this. This is still broken - News and Interests is still there. [louder]Linus Torvalds curse word here[/louder]

Anyway, if someone wants to give setting this up a shot, send me suggestions on how to do this

* Write suggestion for AV

* Hold errored packages in a list

Items are being added correctly, but I can't get that to show to the end-user. Perhaps a different approach will work

* Remove older Windows versions from download list

Sadly, the links for these had been removed by Microsoft, in favor of the latest version (24H2)

* Add sorting to error messages

Thanks @og-mrk for the suggestion and the patch (even though I applied it myself)

* Make error messages easier to view (#1)

* Make error messages easier to view

* Improve error output

---------

Co-authored-by: CodingWonders <[email protected]>

* Disable Recall on first run

Keeps the Explorer look of modern Windows 11 builds whilst removing the Recall feature (which I think will manifest itself on PCs with Lunar Lake processors)

* Replace "C:\" with environment variable

This still works on single-boot configurations, but presents a more dynamic approach

* Fix Volume Mixer issues and removal of leftovers

Fix originally from @MyDrift-user on #2856

* Add missing piece to last commit

* Default to downloading OSCDIMG from GitHub repo

Chocolatey may not be the way to help us detect the presence of OSCDIMG.

Everyone, unless someone REALLY uses old deployment technology, has moved to Windows ADK 10.0

* Fix Sorting of Errored Packages by using 'Sort-Object' instead of 'IComparer' approach (#2)

Fixes startup issues in PWSH 7

* Remove reference to News and Interests from output

Even though the logic is still there, it doesn't work. I don't want to deal with that anymore. Search Highlights, on the other hand, is removed very easily

* Exclude License packages from removal

They throw an "Access denied" error when trying to remove them. This is a timesaver

---------

Co-authored-by: Mr.k <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants