Giter VIP home page Giter VIP logo

cpowerplan's People

Contributors

j0f3 avatar

Watchers

 avatar  avatar

cpowerplan's Issues

Can't apply on Server Core (WMI Issues)

During configuration of a Server Core host, if a PowerPlan is selected configuration of that component will fail:

VERBOSE: [ZZZ-HOST1]:                            [[cPowerPlan]HighPerformance] Perform operation 'Enumerate CimInstances' with following parameters, ''namespaceName' = root\cimv2\power,'className' = win32_PowerPlan'.
Provider load failure
    + CategoryInfo          : NotSpecified: (root\cimv2\power:win32_PowerPlan:) [], CimException
    + FullyQualifiedErrorId : HRESULT 0x80041013,Microsoft.Management.Infrastructure.CimCmdlets.GetCimInstanceCommand
    + PSComputerName        : localhost

VERBOSE: [ZZZ-HOST1]:                            [[cPowerPlan]HighPerformance] Operation 'Enumerate CimInstances' complete.
VERBOSE: [ZZZ-HOST1]: LCM:  [ End    Test     ]  [[cPowerPlan]HighPerformance]  in 0.0430 seconds.
The PowerShell DSC resource '[cPowerPlan]HighPerformance' with SourceInfo 'D:\Sources\PowerPlan_HighPerf.ps1::16::9::cPowerPlan' threw one or more non-terminating errors while running the
Test-TargetResource functionality. These errors are logged to the ETW channel called Microsoft-Windows-DSC/Operational. Refer to this channel for more details.
    + CategoryInfo          : InvalidOperation: (:) [], CimException
    + FullyQualifiedErrorId : NonTerminatingErrorFromProvider
    + PSComputerName        : localhost

This appears to be due to missing WMI classes on Server Core environments.

https://vniklas.djungeln.se/2014/12/02/get-and-set-powerplan-on-windows-hyper-v-2012-r2-core/ suggests an approach using powercfg to get and set. https://p0w3rsh3ll.wordpress.com/2014/12/28/fixing-a-wmi-provider-load-failure/ suggests copying missing files.

I don't know that the fix needs to be in cPowerPlan, but it's worth documenting as a limitation, at least.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.