j0f3 / cpowerplan Goto Github PK
View Code? Open in Web Editor NEWDSC Module to set desired power plan in windows
License: MIT License
DSC Module to set desired power plan in windows
License: MIT License
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.