CmdID / PowerShell / Cmdlets / Get
Get-CsOnlineTelephoneNumber
Use the Get-CsOnlineTelephoneNumber to retrieve telephone numbers from the Business Voice Directory. Microsoft Teams PowerShell reference
From the Microsoft Teams PowerShell reference 14 parameters Its page in the reference
Parameters
-ActivationStateThis parameter is reserved for internal Microsoft use.-AssignedSpecifies the function of the telephone number.-CapitalOrMajorCity, -CityCodeSpecifies the city by a concatenated string in the form: region-country-area-city.-DomainController, -DCThis parameter is reserved for internal Microsoft use.-ExpandLocationDisplays the location parameter with its value.-ForceThe Force switch specifies whether to suppress warning and confirmation messages.-InventoryTypeSpecifies the target telephone number type for the cmdlet.-IsNotAssignedSpecifying this switch parameter will return only telephone numbers which are not assigned.-ResultSizeSpecifies the number of records returned by the cmdlet.-TelephoneNumberSpecifies the target telephone number.-TelephoneNumberGreaterThanSpecifies a telephone number used by the cmdlet as the lower boundary of the telephone numbers returned.-TelephoneNumberLessThanSpecifies a telephone number used by the cmdlet as the upper boundary of the telephone numbers returned.-TelephoneNumberStartsWithSpecifies the digits that the returned telephone numbers must begin with.-TenantThis parameter is reserved for internal Microsoft use.