Skip to content

Suppress output from powercfg.exe if possible #4

@justingarfield

Description

@justingarfield

Need to figure out if there's a decent way to handle suppressing output from powercfg.exe calls in the Power Settings related area. Mainly needed when calling PowerShell script(s) using these functions via a UNC Path; results in output like so:

'\\wsl.localhost\Ubuntu\home\jgarfield\src\justingarfield\dotfiles\windows11'
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported.  Defaulting to Windows directory.

Currently called from:

  • Get-PowerSchemes
  • Get-ActivePowerScheme
  • DuplicatePowerScheme
  • Set-PowerSchemeNameAndDescription
  • Set-PowerButtonSetting
  • Set-SleepButtonSetting

Metadata

Metadata

Assignees

No one assigned

    Labels

    Low PriorityThis is a 'nice to have', but most likely will never be worked on.enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions