I'm trying to use a File resource to copy a lot of files, around 20,000 of them spanning 3000 directories. While DSC does work in deploying the files, I run into a problem when I try to test for them. Everything works fine if I have just a few files in the resource, but if I ever load in my full set in that break things. I can get Test-DSCConfiguration on the target node and get a True result (after increasing the memory on my test server from 4 gigs to 16 gigs), but Get-DSCConfiguration throws this error:
Get-DscConfiguration : The WBEM Server limits have been exceeded (e.g. memory, connections, ...). At line:1 char:1 + Get-DscConfiguration + ~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : ResourceBusy: (MSFT_DSCLocalConfigurationManager:root/Microsoft/...gurationManager) [Get -DscConfiguration], CimException + FullyQualifiedErrorId : MI RESULT 27,Get-DscConfiguration
The configuration is simple:
File ServerBox {
Ensure = "Present"
Type = "Directory"
Recurse = $true
MatchSource = $true
Force = $true
Checksum = "modifiedDate"
SourcePath = "\\DevOps\ServerBox"
DestinationPath = "D:\ServerBox"
}
At first I thought the problem was memory, as I couldn't even get Test-DSCConfiguration to run, but that one threw memory errors, so once I added more to the system I could at least get a True result from the Test. But Get-DSCConfiguration still doesn't function.
Anyone have any insight into the WBEM errors?