CmdID / PowerShell / Cmdlets / Get
Get-CsOnlineVoicemailUserSettings
Use the Get-CsOnlineVoicemailUserSettings cmdlet to get information about online voicemail user settings of a specific user. Microsoft Teams PowerShell reference
From the Microsoft Teams PowerShell reference 2 parameters Its page in the reference
Parameters
-ForceSpecifies whether to suppress warning and confirmation messages.-IdentityThe Identity parameter represents the ID of the specific user in your organization; this can be either a SIP URI or an Object ID.