Skip to content

Error running Invoke-RestMethod when Get-TmWfbsComputer #3

Description

@dade80vr

Hi.
I'm getting an error when using the method "Get-TmWfbsComputer" in

Get-TmWfbsComputer -AccessToken $TM_Access_Token -SecretKey $TM_Secret_Key -BaseUrl $TM_Base_URL -Verbose

The error says:

VERBOSE: Requested HTTP/1.1 GET with 0-byte payload
VERBOSE: Received HTTP/1.1 response of content type application/json of unknown size
Out-PsLogging: [ERROR] 2024-12-24T09:34:42: Error running Invoke-RestMethod. To prevent errors, Get-TmWfbsCustomer will exit. The specific error is: Response status code does not indicate success: 401 (Unauthorized).
Out-PsLogging: [ERROR] 2024-12-24T09:34:42: No customers were retrieved, unable to continue.

Updated BaseURL is: https://smpi-emea.sco.trendmicro.com
Same secret and access token works in Get-TmWfbsCustomer method:

Get-TmWfbsCustomer -AccessToken $TM_Access_Token -SecretKey $TM_Secret_Key -BaseUrl $TM_Base_URL -Verbose -Name "XXX"

Got:

eid : (omitted)
name : XXX
expire : 22/12/2025 22:59:59
seat_count : 88
time_zone : Europe/Berlin
license_type : 1
sp_subscription : WF Service - 1 years CLIENTI
auto_renewal : 1
license_period : 12
id : (omitted)

What can i do?
Thank you.

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