exports SFB users list

%3CLINGO-SUB%20id%3D%22lingo-sub-286590%22%20slang%3D%22en-US%22%3Eexports%20SFB%20users%20list%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-286590%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%3EHi%20experts%20i%20want%20to%20pull%20all%20my%20users%20for%20whom%20skype%20for%20business%20is%20enabled.%20i%20want%20to%20export%20to%20a%20csv.%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3Eplease%20help%20me%20with%20syntax%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3EDisplay%20Name.%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3ESipAddress%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3EHostingProvider%26nbsp%3B%20%26nbsp%3B%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3ERegistrarPool%3C%2FSPAN%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-286590%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ECommunity%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EHow-to%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EInstant%20Messaging%20%26amp%3B%20Presence%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-287069%22%20slang%3D%22en-US%22%3ERe%3A%20exports%20SFB%20users%20list%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-287069%22%20slang%3D%22en-US%22%3E%3CP%3EFor%20On-Premises%20something%20like%20this%3C%2FP%3E%3CP%3E%3CEM%3E%3CSTRONG%3EGet-CsUser%20%7C%20Select-Object%20DisplayName%2C%20SipAddress%2C%20HostingProvider%2C%20RegistrarPool%20%7C%20Export-Csv%20-Path%20%22C%3A%5Ctemp%5CCsUserExport.csv%22%20-NoTypeInformation%3C%2FSTRONG%3E%3C%2FEM%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAnd%20for%20Skype%20Online%3C%2FP%3E%3CP%3E%3CEM%3E%3CSTRONG%3EGet-CsOnlineUser%20%7C%20Select-Object%20DisplayName%2C%20SipAddress%2C%20HostingProvider%2C%20RegistrarPool%20%7C%20Export-Csv%20-Path%20%22C%3A%5Ctemp%5CCsUserExport.csv%22%20-NoTypeInformation%3C%2FSTRONG%3E%3C%2FEM%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Frequent Contributor

Hi experts i want to pull all my users for whom skype for business is enabled. i want to export to a csv.
please help me with syntax
Display Name.
SipAddress
HostingProvider   
RegistrarPool 

1 Reply

For On-Premises something like this

Get-CsUser | Select-Object DisplayName, SipAddress, HostingProvider, RegistrarPool | Export-Csv -Path "C:\temp\CsUserExport.csv" -NoTypeInformation

 

And for Skype Online

Get-CsOnlineUser | Select-Object DisplayName, SipAddress, HostingProvider, RegistrarPool | Export-Csv -Path "C:\temp\CsUserExport.csv" -NoTypeInformation