Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invoke-CCMSoftwareUpdate gives status False #54

Open
markatdxb opened this issue Apr 27, 2021 · 8 comments
Open

Invoke-CCMSoftwareUpdate gives status False #54

markatdxb opened this issue Apr 27, 2021 · 8 comments

Comments

@markatdxb
Copy link

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
Copy link
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

@CodyMathis123
Copy link
Owner

Hello,

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

@markatdxb
Copy link
Author

markatdxb commented Apr 28, 2021

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

@CodyMathis123
Copy link
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.

@markatdxb
Copy link
Author

I dont see the updates to be invoked :(

@CodyMathis123
Copy link
Owner

CodyMathis123 commented May 7, 2021

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

@markatdxb
Copy link
Author

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

@CodyMathis123
Copy link
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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants