Skip to content
This repository has been archived by the owner on May 15, 2018. It is now read-only.

StackExchange_Pagefile doesn't expect multiple pagefiles #6

Open
n8v opened this issue Jan 8, 2015 · 0 comments
Open

StackExchange_Pagefile doesn't expect multiple pagefiles #6

n8v opened this issue Jan 8, 2015 · 0 comments

Comments

@n8v
Copy link

n8v commented Jan 8, 2015

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_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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant