Get-CsOnlineDirectoryTenantNumberCities

Use the Get-CsOnlineDirectoryTenantNumberCities cmdlet to retrieve the cities for which telephone numbers have been acquired by your organization.

Note:

As of April 30, 2022, the existing Skype for Business PowerShell cmdlets for telephone number search and related activities will be deprecated and will no longer be available for use. The new Teams PowerShell cmdlets for telephone number search and related activities are already available. For more details, see New-CsOnlineTelephoneNumberOrder.

Syntax

Get-CsOnlineDirectoryTenantNumberCities
   [[-Tenant] <Guid>]
   [-DomainController <Fqdn>]
   [-Force]
   [<CommonParameters>]

Description

This cmdlet can be used to fetch all the cities for which your organization has already acquired telephone numbers. It is mainly used to filter cities for which telephone numbers are acquired.

The console output will be in the form:

Get-CsOnlineDirectoryTenantNumberCities

NOAM-US-CA-LA

NOAM-US-IL-CH

NOAM-US-NY-NY

NOAM-US-TX-DA

NOAM-US-MA-BO

Examples

-------------------------- Example 1 --------------------------

Get-CsOnlineDirectoryTenantNumberCities

This example returns all the cities for which telephone numbers have been acquired by your organization.

Parameters

-DomainController

This parameter is reserved for internal Microsoft use.

Type:Fqdn
Aliases:DC
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Skype for Business Online

-Force

The Force switch specifies whether to suppress warning and confirmation messages. It can be useful in scripting to suppress interactive prompts. If the Force switch isn't provided in the command, you're prompted for administrative input if required.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Skype for Business Online

-Tenant

This parameter is reserved for internal Microsoft use.

Type:Guid
Position:1
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Skype for Business Online

Inputs

None

Outputs

IList<string> containing the geocodes of the relevant cities.