Open markatdxb opened 3 years ago
part of result of running Get-CCMSoftwareUpdate -ComputerName host1
ComputerName : host1 ArticleID : 5001402 BulletinID : ComplianceState : NotPresent ContentSize : 0 Deadline : 5/15/2021 12:00:00 AM Description : Install this update to resolve issues in Windo that are included in this update, see the asso for more information. After you install this i ErrorCode : 0 EvaluationState : None ExclusiveUpdate : True FullName : IsUpgrade : False MaxExecutionTime : 3600 Name : 2021-04 Servicing Stack Update for Windows Ser NextUserScheduledTime : NotifyUser : True OverrideServiceWindows : False PercentComplete : 0 Publisher : Microsoft RebootOutsideServiceWindows : False RestartDeadline : StartTime : 4/22/2021 5:13:00 PM UpdateID : Site_DAB6A898-9A2F-443C-A URL : https://support.microsoft.com/help/5001402 UserUIExperience : True
Hello,
Can you run these both with a -Verbose and paste the results as well?
hi
Get-CCMSoftwareUpdate -ComputerName $comp | select articleid,evaluationstate
ArticleID EvaluationState
--------- ---------------
4566516 None
4580325 None
4570505 None
4601887 None
890830 None
5001404 None
4577586 None
Invoke-CCMSoftwareUpdate -ComputerName $comp -ArticleID 4566516 -Verbose
VERBOSE: No active CimSession (preferred), or PSSession found for host1 - falling back to -ComputerName
VERBOSE: Performing the operation "Invoke-CCMUpdate" on target "[ComputerName = 'host1']".
VERBOSE: No active CimSession (preferred), or PSSession found for host1 - falling back to -ComputerName
VERBOSE: Perform operation 'Query CimInstances' with following parameters, ''queryExpression' = SELECT * FROM CCM_SoftwareUpdate WHERE
ComplianceState = 0 AND (ArticleID = "4566516"),'queryDialect' = WQL,'namespaceName' = root\CCM\ClientSDK'.
VERBOSE: Operation 'Query CimInstances' complete.
VERBOSE: No active CimSession (preferred), or PSSession found for host1 - falling back to -ComputerName
VERBOSE: Perform operation 'Invoke CimMethod' with following parameters, ''methodName' = Create,'className' =
Win32_Process,'namespaceName' = root\cimv2'.
VERBOSE: Operation 'Invoke CimMethod' complete.
ComputerName Invoked
------------ -------
host1 False
Thanks! Are you able to see if the update actually invoked? It may still have started to install, but the function is saying it has not.
I will try to reproduce when I have a chance as well.
I dont see the updates to be invoked :(
No problem. I can reproduce the issue in my environment. I'll see what I can do to resolve.
Hi, just wanted to check if there is any update on this issue ?
I have not had the time to work on this, but do know how to resolve this. I hope to publish new code soon to fix this issue.
hello, whats could be the reason for getting the below results ? There are 3 pending OS updates on the host1 but im not able to trigger the installation :(
Get-CCMSoftwareUpdate -ComputerName host1 | Invoke-CCMSoftwareUpdate
ComputerName Invoked
host1 False host1 False host1 False