Hello,
I’m fairly new to DSC and I’m trying to apply VSS storage size settings within my configuration. Is it possible to gather data from the node that is being configured with a WMI query and run that through a foreach loop? Or would I need to put this into a DSC script resource?
$disk = Get-WmiObject -class win32_logicaldisk | where {$_.drivetype -eq ‘3’} | select DeviceID
Foreach ($Item in $Disk) {
VSS $item {
Ensure = 'Present'
Drive = '$Item'
Size = '1Gb'
}
Thanks,
JS