Get-CsOnlineDirectoryTenantNumberCities

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

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

-AsJob

Indicates that this cmdlet runs as a background job.

When you specify the AsJob parameter, the command immediately returns an object that represents the background job. You can continue to work in the session while the job finishes. The job is created on the local computer and the results from the Skype for Business Online session are automatically returned to the local computer. To get the job results, use the Receive-Job cmdlet.

For more information about Windows PowerShell background jobs, see about_Jobs and about_Remote_Jobs.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Skype for Business Online
-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.