question

LeilaBaghdadiGroup-6532 avatar image
0 Votes"
LeilaBaghdadiGroup-6532 asked LeilaBaghdadiGroup-6532 answered

SkypeForBusiness PS policy commands failing

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



office-skype-business-server-conferencing
image.png (25.4 KiB)
image.png (28.1 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

SharonZhao-MSFT avatar image
0 Votes"
SharonZhao-MSFT answered SharonZhao-MSFT commented

@LeilaBaghdadiGroup-6532,

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.





image.png (14.7 KiB)
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@LeilaBaghdadiGroup-6532
Do you have any further question on this topic?
If the above suggestion helps, please be free to mark it as answer for helping more people.

0 Votes 0 ·

Hello, thank you for you answer! I will have to test all commands with the prefix mentioned to make sure they do fall on SkyeForBusniess and not the new Teams Module
I can mark this as answered but may write back if I find some other issues,

0 Votes 0 ·
SharonZhao-MSFT avatar image SharonZhao-MSFT LeilaBaghdadiGroup-6532 ·

@LeilaBaghdadiGroup-6532
You are welcome to post any question here.
Have a nice day!

0 Votes 0 ·
LeilaBaghdadiGroup-6532 avatar image
0 Votes"
LeilaBaghdadiGroup-6532 answered

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

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.