How to delete duplicate users from list. It is possible?

Copper Contributor

 

I confugure Teams SBC connection.
How to delete users after addind comand like this : "Set-CsUser -ID “oleg.pavlenko.sbctest" -OnPremLineURI tel:+380********** -EnterpriseVoiceEnabled $true -HostedVoiceMail $true"
Some paramets I was disabled, but I can't delete this users from list:

PS C:\WINDOWS\system32> Get-CsOnlineUser | Format-List -Property FirstName, LastName, EnterpriseVoiceEnabled, HostedVoiceMail, LineURI, UsageLocation, UserPrincipalName, WindowsEmailAddress, SipAddress, OnPremLineURI, OnlineVoiceRoutingPolicy

FirstName : test
LastName : test
EnterpriseVoiceEnabled : False
HostedVoiceMail : False
LineURI :
UsageLocation : IL
UserPrincipalName : 62a164f034e94eedbea72fdb4f425922test@*******.com
WindowsEmailAddress : test@*******.com
SipAddress : sip:62a164f034e94eedbea72fdb4f425922test@*********.com
OnPremLineURI : tel:+1000
OnlineVoiceRoutingPolicy : S4B

FirstName : test
LastName : test
EnterpriseVoiceEnabled : False
HostedVoiceMail : False
LineURI :
UsageLocation : IL
UserPrincipalName : e800cfdb04f24c8aafb5714d0d863332oleg.pavlenko.sbctest@sbc.******.com
WindowsEmailAddress :
SipAddress : sip:e800cfdb04f24c8aafb5714d0d863332oleg.pavlenko.sbctest@sbc.*******.com
OnPremLineURI :
OnlineVoiceRoutingPolicy :

I've got only this command:

PS C:\WINDOWS\system32> get-command *csuser*

CommandType Name Version Source
----------- ---- ------- ------
Function Get-CsUserAcp 1.0 tmp_a0lek34n.zxb
Function Get-CsUserLocationStatus 1.0 tmp_a0lek34n.zxb
Function Get-CsUserPstnSettings 1.0 tmp_a0lek34n.zxb
Function Get-CsUserServicesPolicy 1.0 tmp_a0lek34n.zxb
Function Get-CsUserSession 1.0 tmp_a0lek34n.zxb
Function Invoke-CsUserPreferredDataLocationSync 1.0 tmp_a0lek34n.zxb
Function Remove-CsUserAcp 1.0 tmp_a0lek34n.zxb
Function Set-CsUser 1.0 tmp_a0lek34n.zxb
Function Set-CsUserAcp 1.0 tmp_a0lek34n.zxb
Function Set-CsUserPstnSettings 1.0 tmp_a0lek34n.zxb
Function Set-CsUserServicesPolicy 1.0 tmp_a0lek34n.zxb

PS C:\WINDOWS\system32> get-command *OnlineUser*
CommandType Name Version Source
----------- ---- ------- ------
Function Get-CsOnlineUser 1.0 tmp_a0lek34n.zxb

 

How to delete this users, put command please. (I use S4B powershell cmdlet)

0 Replies