SkypeForBusiness PS policy commands failing

Leila Baghdadi (Group) 21 Reputation points
2021-08-30T15:07:31.76+00:00

Hello, recently a few of our skypeForBusiness Ps commands start throwing error, the one in question,
Get-csConferencingPolicy,
I could be wrong but looking at the error, its almost like, eventhough I am trying to run an onprem command, PS is trying to run it on teams!!

I have been trying to figure out how to solve this issue, the only thing I came up with was to prefix the command with SkypeForBusiness
and call it like this

SkypeForBusiness\Get-CsConferencingPolicy

is this the right thing to do here, how many other commands have changed

please advise as our scripts are failing in prod

127597-image.png

127637-image.png

Skype for Business
Skype for Business
A Microsoft communications service that provides communications capabilities across presence, instant messaging, audio/video calling, and an online meeting experience that includes audio, video, and web conferencing.
610 questions
0 comments No comments
{count} votes

Accepted answer
  1. Sharon Zhao-MSFT 25,071 Reputation points Microsoft Vendor
    2021-08-31T04:11:12.253+00:00

    @Leila Baghdadi (Group) ,

    The reason for the error is that Get-CsConferencingPolicy command is applied in both on-premises and online environment. And you install Skype for Business Online module on Skype for Business server. So, when you run this command, it has a conflict.
    127764-image.png

    A workaround for your scenario is to install Skype for Business Online module in a different machine and run your script. Besides, SkypeForBusiness\Get-CsConferencingPolicy format is also practicable.


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


1 additional answer

Sort by: Most helpful
  1. Leila Baghdadi (Group) 21 Reputation points
    2021-09-13T21:55:43.883+00:00

    Hello as a follow up question, what we noticed with
    Get-CsConferencingPolicy once we added the prefix is that sometimes we have had to retry the command more than once to get results,
    I do know from past experience that retrying for PowerShell commands may not be the best option specially due to what I recall as throttling error!

    just wondering if you can comment on the above,
    should there be a retry if yes how many times we should retry before giving up!

    thank you for your time

    Leila

    0 comments No comments