Hi, I'm just getting started with DSC but it's been fascinating to read the code here. Thank you! I noticed that [the StackExchange_Pagefile resource only expects a single pagefile.](https://github.com/PowerShellOrg/StackExchangeResources/blob/master/DSCResources/StackExchange_Pagefile/StackExchange_Pagefile.psm1#L95) It's possible and even likely for machines with multiple drives to have multiple pagefiles, and `Win32_PageFileSetting` will return an array of them. To start with you should ask for an array, ``` $PageFileSettings = @(Get-WmiObject Win32_PageFileSetting) ``` but the whole thing will need some rethinking.
Hi, I'm just getting started with DSC but it's been fascinating to read the code here. Thank you!
I noticed that the StackExchange_Pagefile resource only expects a single pagefile.
It's possible and even likely for machines with multiple drives to have multiple pagefiles, and
Win32_PageFileSettingwill return an array of them.To start with you should ask for an array,
but the whole thing will need some rethinking.