Skip to content

Invoke-CCMSoftwareUpdate gives status False #54

Open

Description

@markatdxb

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

Activity

  1. markatdxb commented on Apr 27, 2021

    @markatdxb
    Author

    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

  2. CodyMathis123 commented on Apr 27, 2021

    @CodyMathis123
    Owner

    Hello,

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

  3. markatdxb commented on Apr 28, 2021

    @markatdxb
    Author

    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
    
  4. CodyMathis123 commented on Apr 28, 2021

    @CodyMathis123
    Owner

    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.

  5. markatdxb commented on May 7, 2021

    @markatdxb
    Author

    I dont see the updates to be invoked :(

  6. CodyMathis123 commented on May 7, 2021

    @CodyMathis123
    Owner

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

  7. markatdxb commented on Jun 24, 2021

    @markatdxb
    Author

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

  8. CodyMathis123 commented on Jul 12, 2021

    @CodyMathis123
    Owner

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions