Can you combine Get-WmiObject with ConfigMgr cmdlets? Yes, you can

Last week I discovered that you can create a Refresh Schedule with New-CMSchedule cmdlet and then you can easily use that object with Get-WmiObject cmdlet to query and modify for example Device Collection Refresh Schedule.

You can create the Device Collection with correct Refresh Schedule but Set-CMDeviceCollection cmdlet does not allow to change the Refresh Schedule.

Set-CMDeviceCollection cmdlet parameters

image

 

I tested this on Windows Server 2012 R2 RTM and with System Center Configuration Manager 2012 R2.

About the Author:

Kaido Järvemets
Configuration Manager MVP

Leave A Comment