CmdID / PowerShell / Cmdlets / Get
Get-CsOnlineVoiceUser
Use the Get-CsOnlineVoiceUser cmdlet to retrieve a voice user's telephone number and location. Microsoft Teams PowerShell reference
From the Microsoft Teams PowerShell reference 16 parameters Its page in the reference
Parameters
-CivicAddressIdSpecifies the identity of the civic address that is assigned to the target users.-DomainController, -DCThis parameter is reserved for internal Microsoft use.-EnterpriseVoiceStatusPossible values are: * All * Enabled * Disabled-ExpandLocationDisplays the location parameter with its value.-FirstSpecifies the number of users to return.-Force*This parameter has been deprecated from Teams PowerShell Modules 3.0 and above due to limited usage*.-GetFromAAD*This parameter has been deprecated from Teams PowerShell Modules 3.0 and above due to limited usage*.-GetPendingUsers*This parameter has been deprecated from Teams PowerShell Modules 3.0 and above due to limited usage*.-IdentitySpecifies the identity of the target user.-LocationIdSpecifies the location identity of the location whose users will be returned.-NumberAssignedIf specified, the query will return users who have a phone number assigned.-NumberNotAssignedIf specified, the query will return users who do not have a phone number assigned.-PSTNConnectivityPossible values are: * All * Online * OnPremises-SearchQuery*This parameter has been deprecated from Teams PowerShell Modules 3.0 and above due to limited usage*.-SkipSpecifies the number of users to skip.-Tenant*This parameter has been deprecated from Teams PowerShell Modules 3.0 and above due to limited usage*.