Skip to content

Hi, I ran script and it says success despite showing error #9

@bach1590

Description

@bach1590

As the title says, the script apparently ran successfully saying Operation result: Success, but has errors in it, is there a way to know if it was actually successful? Thank you

Here is an screenshot or see the text copied below, thanks.
image host

PS C:\ConsumerESU> .\Consumer_ESU_Enrollment.ps1

Evaluate ESU Eligibility state ...
Eligibility Status: Eligible
Eligibility Result: SUCCESS

Obtain MSA Token ...
Exception calling "Wait" with "1" argument(s): "One or more errors occurred."
At C:\ConsumerESU\Consumer_ESU_Enrollment.ps1:258 char:3

  • $netTask.Wait(-1) | Out-Null
  • + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : AggregateException
    
    

Operation Failed.

Acquire Consumer ESU License regardless enrollment...
Exception calling "Invoke" with "2" argument(s): "The service has not been started. (Exception from HRESULT:
0x80070426)"
At C:\ConsumerESU\Consumer_ESU_Enrollment.ps1:212 char:2

  • $hRet = $IALM.GetMethod("EnsureLicenseForApplicationDeployment"). ...
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [], MethodInvocationException
    • FullyQualifiedErrorId : COMException

Exception calling "Invoke" with "2" argument(s): "The service has not been started. (Exception from HRESULT:
0x80070426)"
At C:\ConsumerESU\Consumer_ESU_Enrollment.ps1:219 char:2

  • $hRet = $IOLM.GetMethod("ActivateLicenseForContent").Invoke($ComO ...
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [], MethodInvocationException
    • FullyQualifiedErrorId : COMException

Operation result: Success

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions