PSCCMClient icon indicating copy to clipboard operation
PSCCMClient copied to clipboard

Invoke-CCMSoftwareUpdate gives status False

Open markatdxb opened this issue 3 years ago • 8 comments

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

markatdxb avatar Apr 27 '21 08:04 markatdxb

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

markatdxb avatar Apr 27 '21 09:04 markatdxb

Hello,

Can you run these both with a -Verbose and paste the results as well?

CodyMathis123 avatar Apr 27 '21 13:04 CodyMathis123

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

markatdxb avatar Apr 28 '21 02:04 markatdxb

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.

CodyMathis123 avatar Apr 28 '21 03:04 CodyMathis123

I dont see the updates to be invoked :(

markatdxb avatar May 07 '21 02:05 markatdxb

No problem. I can reproduce the issue in my environment. I'll see what I can do to resolve.

CodyMathis123 avatar May 07 '21 03:05 CodyMathis123

Hi, just wanted to check if there is any update on this issue ?

markatdxb avatar Jun 24 '21 02:06 markatdxb

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.

CodyMathis123 avatar Jul 12 '21 03:07 CodyMathis123