what are ther requirements for using module SkypeForBusiness

pk_oz 181 Reputation points
2022-02-01T02:36:19.673+00:00

I am trying to update some Skype For Business certs on a Win Server 2019 Datacenter DC.
I am trying to run the commandlet Get_CSCertificate which requires module: SkypeForBusiness
(see https://learn.microsoft.com/en-us/powershell/module/skype/get-cscertificate?view=skype-ps)
Which links to: https://learn.microsoft.com/en-us/office365/enterprise/powershell/manage-skype-for-business-online-with-office-365-powershell
Which links to: https://learn.microsoft.com/en-us/microsoft-365/enterprise/manage-skype-for-business-online-with-microsoft-365-powershell?view=o365-worldwide
I followed the procedures on this page to install Microsoft Teams Module:
These are the modules currently installed:
Manifest 3.1.0.0 Microsoft.PowerShell.Management
Manifest 3.1.0.0 Microsoft.PowerShell.Utility {
Script 3.1.0 MicrosoftTeams
Binary 1.0.0.1 PackageManagement
Script 1.0.0.1 PowerShellGet
Script 2.0.0 PSReadline

I logged in using my AzureAD global admin acct using:

Connect-MicrosoftTeams

My account is then displayed correctly as is my TenantID

When I try and run Get_CSCertificate, I get the following error:
Get-CsCertificate : The term 'Get-CsCertificate' is not recognized as the name of a cmdlet, function,
script file, or operable program. Check the spelling of the name, or if a path was included, verify that
the path is correct and try again.

Are there any other requirements I am missing?

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,032 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,354 questions
0 comments No comments
{count} votes

Accepted answer
  1. Limitless Technology 39,336 Reputation points
    2022-02-03T16:09:59.293+00:00

    Hi @pk_oz

    Yes, it has been integrated with the Teams PowerShell module.

    Microsoft Teams PowerShell module requires PowerShell 5.1 or higher on all platforms. Install the latest version of PowerShell available for your operating system.

    To check your PowerShell version, run the following command from within a PowerShell session:

    $PSVersionTable.PSVersion

    You can use the Install-Module cmdlet to install the Microsoft Teams PowerShell module.

    Install Microsoft Teams PowerShell Module
    https://learn.microsoft.com/en-us/microsoftteams/teams-powershell-install

    Hope this resolves your Query!!

    ----------

    --If the reply is helpful, please Upvote and Accept it as an answer--

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Rich Matheisen 44,621 Reputation points
    2022-02-01T03:08:28.53+00:00

    Have you run "Get-Module -Name SkypeForBusiness -ListAvailable" after you installed the module? Was the module found? If it was, try "Get-Command -Name Get-CSCertificate -Module SykpeForBusiness".

    If the command's available, try "Import-Module SkypeForBusiness" and then see if the Get-CSCertificate works.