none
Skype for business online Powershell RRS feed

  • Question

  • Hello Team

    Using the latest Sfb for powershershell online.

    Module installs ok on Win10.

    import-module Skpeforbusinessonline - works ok.

    connect to my online session is also ok, authenticates ok.

     

    any command like get-cs-user or get-command get-cs*   returns nothing ????

    I would like to connect SFB online to manage via powershell. Any help please

    Monday, October 29, 2018 10:38 AM

Answers

  • Hi,

    To return information about the users who have been enabled for Skype for Business Online, the Get-CsOnlineUser cmdlet should be used instead of Get-CsUser that be used in on-premise environment.

    Please refer to the articile here.

    And to view all available commands in your module, please type:

    Get-Command -Module Microsoft.PowerShell.Security, Microsoft.PowerShell.Utility(module name)

    Besides, here is an official documentation which represents the SfB Online cmdlets that’s available.

    Also another list sorted out for reference.


    Kind regards,

    Calvin Liu


    Please remember to mark the reply as an answer if you find it is helpful. It will assist others who has similar issue. If you have feedback for TechNet Subscriber Support, contact tnsf@microsoft.com.

    Click here to learn more. Visit the dedicated forum to share, explore and talk to experts about Microsoft Teams.

    Tuesday, October 30, 2018 5:23 AM
    Moderator
  • I am sure you have used the below cmdlets to connect SFBO and the account you used to connect does have enough permission to connect SFBO (Global administrator).

    Reference Article : https://docs.microsoft.com/en-us/office365/enterprise/powershell/manage-skype-for-business-online-with-office-365-powershell

    Import-Module SkypeOnlineConnector
    $userCredential = Get-Credential
    $sfbSession = New-CsOnlineSession -Credential $userCredential
    Import-PSSession $sfbSession

    If you would like to what all commands you can run with the current PS session, you run the below command  and ensure all the Skype for Business Online related commands are listed

    Get-Command

    Also you can refer the below article to know the list command you can run in Skype for Business Online

    https://docs.microsoft.com/en-us/previous-versions//mt228132(v=technet.10)

    Below command is an example in Skype for Business Online to pull the user properties.

    Get-CsOnlineUser -Identity "sip:kenmyer@litwareinc.com"

    Note : Get-CsUser command will not work in Skype for Business Online scenario.

    Revert back if any queries.



    Neeranjan Shettar (MyPage)

    [If a post helps to resolve your issue, please click the "Mark as Answer" of that post or click Answered "Vote as helpful" button of that post. By marking a post as Answered or Helpful, you help others find the answer faster. ]

    • Proposed as answer by Neeranjan Shettar Monday, October 29, 2018 3:48 PM
    • Marked as answer by rush2ramki Monday, November 19, 2018 2:08 PM
    Monday, October 29, 2018 3:48 PM

All replies

  • I am sure you have used the below cmdlets to connect SFBO and the account you used to connect does have enough permission to connect SFBO (Global administrator).

    Reference Article : https://docs.microsoft.com/en-us/office365/enterprise/powershell/manage-skype-for-business-online-with-office-365-powershell

    Import-Module SkypeOnlineConnector
    $userCredential = Get-Credential
    $sfbSession = New-CsOnlineSession -Credential $userCredential
    Import-PSSession $sfbSession

    If you would like to what all commands you can run with the current PS session, you run the below command  and ensure all the Skype for Business Online related commands are listed

    Get-Command

    Also you can refer the below article to know the list command you can run in Skype for Business Online

    https://docs.microsoft.com/en-us/previous-versions//mt228132(v=technet.10)

    Below command is an example in Skype for Business Online to pull the user properties.

    Get-CsOnlineUser -Identity "sip:kenmyer@litwareinc.com"

    Note : Get-CsUser command will not work in Skype for Business Online scenario.

    Revert back if any queries.



    Neeranjan Shettar (MyPage)

    [If a post helps to resolve your issue, please click the "Mark as Answer" of that post or click Answered "Vote as helpful" button of that post. By marking a post as Answered or Helpful, you help others find the answer faster. ]

    • Proposed as answer by Neeranjan Shettar Monday, October 29, 2018 3:48 PM
    • Marked as answer by rush2ramki Monday, November 19, 2018 2:08 PM
    Monday, October 29, 2018 3:48 PM
  • Hi,

    To return information about the users who have been enabled for Skype for Business Online, the Get-CsOnlineUser cmdlet should be used instead of Get-CsUser that be used in on-premise environment.

    Please refer to the articile here.

    And to view all available commands in your module, please type:

    Get-Command -Module Microsoft.PowerShell.Security, Microsoft.PowerShell.Utility(module name)

    Besides, here is an official documentation which represents the SfB Online cmdlets that’s available.

    Also another list sorted out for reference.


    Kind regards,

    Calvin Liu


    Please remember to mark the reply as an answer if you find it is helpful. It will assist others who has similar issue. If you have feedback for TechNet Subscriber Support, contact tnsf@microsoft.com.

    Click here to learn more. Visit the dedicated forum to share, explore and talk to experts about Microsoft Teams.

    Tuesday, October 30, 2018 5:23 AM
    Moderator
  • Are there any updates for this issue, if the reply is helpful, please try to mark it as an answer,  it will help others who have similar issue.

    Neeranjan Shettar (MyPage)

    [If a post helps to resolve your issue, please click the "Mark as Answer" of that post or click Answered "Vote as helpful" button of that post. By marking a post as Answered or Helpful, you help others find the answer faster. ]

    Friday, November 9, 2018 6:39 PM