Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Latest commit

 

History

History
99 lines (66 loc) · 2.01 KB

Get-PCCustomer.md

File metadata and controls

99 lines (66 loc) · 2.01 KB

Get-PCCustomer

Returns a list of customers or a specific customer.

SYNTAX

Get-PCCustomer [-TenantId <String>] [-SaToken <String>] [<CommonParameters>]

Get-PCCustomer -StartsWith <String> [-ResultSize <Int32>] [-SaToken <String>] [<CommonParameters>]

DESCRIPTION

The Get-PCCustomer cmdlet retrieves a list of customers, or a specific customer based on the input.

PARAMETERS

-TenantId <String>

The tenant Id assigned to the customer you want to retrieve.

Required?                    false
Position?                    named
Default value
Accept pipeline input?       false
Accept wildcard characters?  false

-StartsWith <String>

Specifies a filter for the customer names returned.

Required?                    true
Position?                    named
Default value
Accept pipeline input?       false
Accept wildcard characters?  false

-ResultSize <Int32>

Specifies the maximum number of results to return. The default value is 200, the maximum allowed value is 500.

Required?                    false
Position?                    named
Default value                200
Accept pipeline input?       false
Accept wildcard characters?  false

-SaToken <String>

Specifies an authentication token you have created with your Partner Center credentials.

Required?                    false
Position?                    named
Default value                $GlobalToken
Accept pipeline input?       false
Accept wildcard characters?  false

INPUTS

OUTPUTS

NOTES

You need to have a authentication credential already established before running this cmdlet.

EXAMPLES

EXAMPLE 1

Return a list of customers for a partner.

PS C:\>Get-PCCustomer

EXAMPLE 2

Return a customer by specifying an Id

    $customer = Get-PCCustomer -TenantId '<tenant id GUID>'

EXAMPLE 3

Return a customer by specifying part of the company name

    Get-PCCustomer -StartsWith '<company name>'