Is it possible to get CCM Updates Schedule using Powershel or VBScript?

Posted by frogman on Server Fault See other posts from Server Fault or by frogman
Published on 2012-09-12T15:30:52Z Indexed on 2012/09/12 15:39 UTC
Read the original article Hit count: 436

Filed under:
|
|
|

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.

© Server Fault or respective owner

Related posts about Windows

Related posts about powershell