Forum Discussion

SkypeForBusiness's avatar
SkypeForBusiness
Copper Contributor
Oct 30, 2023
Solved

MS-Teams Command "New-Team" Site URL incorrect

Hi all,   I want to automatically create a MS Teams Team with a SharePoint Site. I use the following command: $teamName = Read-Host -Prompt 'Input your team name' New-Team -DisplayName $teamName ...
  • LainRobertson's avatar
    LainRobertson
    Oct 30, 2023

    SkypeForBusiness 

     

    According to the documentation for the Alias (aka mailNickname), there's no problem with using a hyphen. And that's backed up by your manual testing.

     

    It will be some other character that's causing the error, not the hyphen.

     

    What value are you trying to specify for -MailNickname?

     

    Cheers,

    Lain

Resources