Officedocs-skypeforbusiness: AllowPrerelease parameter cannot be found

Created on 27 Sep 2019  ·  9Comments  ·  Source: MicrosoftDocs/OfficeDocs-SkypeForBusiness

Under the step: Install-Module -Name MicrosoftStaffHub -AllowPrerelease, Windows 10 is unable to install with -AllowPrerelease parameter. Removing this allowed the module to install.


Document details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Most helpful comment

I had the same issue with the AllowPrerelease and I made it work by installing this modules:

Install-Module -Name PackageManagement -Repository PSGallery -Force
Install-Module -Name PowerShellGet -Repository PSGallery -Force

Then restart shell

Install-Module -Name MicrosoftStaffHub -AllowPrerelease -Force

All 9 comments

To add to the above, when removing the "-AllowPrerelease" it seems that does not enable all the features so future commands are not found.

For example, command referenced on this page: https://docs.microsoft.com/en-us/microsoftteams/expand-teams-across-your-org/shifts/move-staffhub-teams-to-shifts-in-teams#prepare

PS C:\Powershell> Get-StaffHubTeamsForTenant -ManagedBy "Staffhub"
Get-StaffHubTeamsForTenant : A parameter cannot be found that matches parameter name 'ManagedBy'.
At line:1 char:28

  • Get-StaffHubTeamsForTenant -ManagedBy "Staffhub"
  • ~~

    • CategoryInfo : InvalidArgument: (:) [Get-StaffHubTeamsForTenant], ParameterBindingException

    • FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.OutlookApps.StaffHub.PowershellCmdlets.Commands.GetStaffHubTeamsForTenant

I had the same issue with the AllowPrerelease and I made it work by installing this modules:

Install-Module -Name PackageManagement -Repository PSGallery -Force
Install-Module -Name PowerShellGet -Repository PSGallery -Force

Then restart shell

Install-Module -Name MicrosoftStaffHub -AllowPrerelease -Force

@NigelClarkExient Thank you for submitting feedback and contributing to the docs. We are currently investigating this.

I have had the StaffHub module installed for a while now and am logged in with a Global Admin account, but am getting "Operation returned an invalid status code 'Forbidden'" when I run "Get-StaffHubTeamsForTenant". I tried the above, to update the module version, but it's not updating either. It's staying at version 1.0.1.

@versatu - that solution appears to have worked for me as well.

Versatu's solution worked for me as well. Was finally able to access the "Move-StaffHub" cmdlet.

@NigelClarkExient @versatu thank you for reaching out and helping improve MS Docs. Did @versatu's recommendation work? Would it be helpful to have it added to the article?

@NigelClarkExient We appreciate any feedback that improves the content in the Microsoft docs but we haven't had any response from you so we are going to close this issue.

Please feel free to re-open this issue if there is a specific area of the docs that we can improve or make better. Thank you.

I had the same issue with the AllowPrerelease and I made it work by installing this modules:

Install-Module -Name PackageManagement -Repository PSGallery -Force
Install-Module -Name PowerShellGet -Repository PSGallery -Force

Then restart shell

Install-Module -Name MicrosoftStaffHub -AllowPrerelease -Force

This worked for me, but on a completely unrelated issue with PowerLine haha

Was this page helpful?
0 / 5 - 0 ratings