Home

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

%3CLINGO-SUB%20id%3D%22lingo-sub-843814%22%20slang%3D%22en-US%22%3EHow%20to%20delete%20duplicate%20users%20from%20list.%20It%20is%20possible%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-843814%22%20slang%3D%22en-US%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20confugure%20Teams%20SBC%20connection.%3CBR%20%2F%3EHow%20to%20delete%20users%20after%20addind%20comand%20like%20this%20%3A%20%22%3CEM%3ESet-CsUser%20-ID%20%E2%80%9Coleg.pavlenko.sbctest%22%20-OnPremLineURI%20tel%3A%2B380**********%20-EnterpriseVoiceEnabled%20%24true%20-HostedVoiceMail%20%24true%22%3C%2FEM%3E%3CBR%20%2F%3ESome%20paramets%20I%20was%20disabled%2C%20but%20I%20can't%20delete%20this%20users%20from%20list%3A%3C%2FP%3E%3CP%3EPS%20C%3A%5CWINDOWS%5Csystem32%26gt%3B%20%3CEM%3EGet-CsOnlineUser%20%7C%20Format-List%20-Property%20FirstName%2C%20LastName%2C%20EnterpriseVoiceEnabled%2C%20HostedVoiceMail%2C%20LineURI%2C%20UsageLocation%2C%20UserPrincipalName%2C%20WindowsEmailAddress%2C%20SipAddress%2C%20OnPremLineURI%2C%20OnlineVoiceRoutingPolicy%3C%2FEM%3E%3C%2FP%3E%3CP%3EFirstName%20%3A%20test%3CBR%20%2F%3ELastName%20%3A%20test%3CBR%20%2F%3EEnterpriseVoiceEnabled%20%3A%20False%3CBR%20%2F%3EHostedVoiceMail%20%3A%20False%3CBR%20%2F%3ELineURI%20%3A%3CBR%20%2F%3EUsageLocation%20%3A%20IL%3CBR%20%2F%3EUserPrincipalName%20%3A%2062a164f034e94eedbea72fdb4f425922test%40*******.com%3CBR%20%2F%3EWindowsEmailAddress%20%3A%20test%40*******.com%3CBR%20%2F%3ESipAddress%20%3A%20sip%3A62a164f034e94eedbea72fdb4f425922test%40*********.com%3CBR%20%2F%3EOnPremLineURI%20%3A%20tel%3A%2B1000%3CBR%20%2F%3EOnlineVoiceRoutingPolicy%20%3A%20S4B%3C%2FP%3E%3CP%3EFirstName%20%3A%20test%3CBR%20%2F%3ELastName%20%3A%20test%3CBR%20%2F%3EEnterpriseVoiceEnabled%20%3A%20False%3CBR%20%2F%3EHostedVoiceMail%20%3A%20False%3CBR%20%2F%3ELineURI%20%3A%3CBR%20%2F%3EUsageLocation%20%3A%20IL%3CBR%20%2F%3EUserPrincipalName%20%3A%20e800cfdb04f24c8aafb5714d0d863332oleg.pavlenko.sbctest%40sbc.******.com%3CBR%20%2F%3EWindowsEmailAddress%20%3A%3CBR%20%2F%3ESipAddress%20%3A%20sip%3Ae800cfdb04f24c8aafb5714d0d863332oleg.pavlenko.sbctest%40sbc.*******.com%3CBR%20%2F%3EOnPremLineURI%20%3A%3CBR%20%2F%3EOnlineVoiceRoutingPolicy%20%3A%3CBR%20%2F%3E%3CBR%20%2F%3EI've%20got%20only%20this%20command%3A%3C%2FP%3E%3CP%3EPS%20C%3A%5CWINDOWS%5Csystem32%26gt%3B%20get-command%20*csuser*%3C%2FP%3E%3CP%3ECommandType%20Name%20Version%20Source%3CBR%20%2F%3E-----------%20----%20-------%20------%3CBR%20%2F%3EFunction%20Get-CsUserAcp%201.0%20tmp_a0lek34n.zxb%3CBR%20%2F%3EFunction%20Get-CsUserLocationStatus%201.0%20tmp_a0lek34n.zxb%3CBR%20%2F%3EFunction%20Get-CsUserPstnSettings%201.0%20tmp_a0lek34n.zxb%3CBR%20%2F%3EFunction%20Get-CsUserServicesPolicy%201.0%20tmp_a0lek34n.zxb%3CBR%20%2F%3EFunction%20Get-CsUserSession%201.0%20tmp_a0lek34n.zxb%3CBR%20%2F%3EFunction%20Invoke-CsUserPreferredDataLocationSync%201.0%20tmp_a0lek34n.zxb%3CBR%20%2F%3EFunction%20Remove-CsUserAcp%201.0%20tmp_a0lek34n.zxb%3CBR%20%2F%3EFunction%20Set-CsUser%201.0%20tmp_a0lek34n.zxb%3CBR%20%2F%3EFunction%20Set-CsUserAcp%201.0%20tmp_a0lek34n.zxb%3CBR%20%2F%3EFunction%20Set-CsUserPstnSettings%201.0%20tmp_a0lek34n.zxb%3CBR%20%2F%3EFunction%20Set-CsUserServicesPolicy%201.0%20tmp_a0lek34n.zxb%3C%2FP%3E%3CP%3EPS%20C%3A%5CWINDOWS%5Csystem32%26gt%3B%20get-command%20*OnlineUser*%3CBR%20%2F%3ECommandType%20Name%20Version%20Source%3CBR%20%2F%3E-----------%20----%20-------%20------%3CBR%20%2F%3EFunction%20Get-CsOnlineUser%201.0%20tmp_a0lek34n.zxb%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3EHow%20to%20delete%20this%20users%2C%20put%20command%20please.%3C%2FSTRONG%3E%20%3CSTRONG%3E(I%20use%20S4B%20powershell%20cmdlet)%3C%2FSTRONG%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-843814%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESettings%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ETips%20%26amp%3B%20Tricks%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
OlegPavlenko
Occasional Visitor

 

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)