Is it possible to get CCM Updates Schedule using Powershel or VBScript?
- by frogman
I want to be able to check the CCM Updates Schedule as seen in Configuration Manager Updates tab. I've been looking around on google and I've not been able to find a consistent answer to this.
I tried to create a COM object using UDA.CCMUpdatesDeployment. This allows me to successfully set the recurring schedule with SetUserDefinedSchedule method. If I try to use GetUserDefinedSchedule I only get the original values of the variables.
PS> $UD = New-Object -com "UDA.CCMUpdatesDeployment"
PS> $A= 101
PS> $B= 102
PS> $UD.GetUserDefinedSchedule([ref]$A, [ref]$B)
PS> $A
101
PS> $B
102
PS> $UD.GetUserDefinedSchedule
MemberType : Method
OverloadDefinitions : {void GetUserDefinedSchedule (Variant, Variant)}
TypeNameOfValue : System.Management.Automation.PSMethod
Value : void GetUserDefinedSchedule (Variant, Variant)
Name : GetUserDefinedSchedule
IsInstance : True
I actually want to be able to do this remotely for a list of servers in a text file but right now any way would do.