Forum Discussion
phil_tannay
Mar 07, 2025Copper Contributor
When creating a new team from a template with powershell add new private channel and members
Hi All, I have a powershell script I am using to create and populate new teams from a template and add owners and users via .csv, Everything seem to work fine except the private team in the templat...
Schnittlauch
Mar 14, 2025Iron Contributor
Could you provide more details?
Do you get any errors?
Have you tried to run it manually line by line and check each variable if the value of the variable is correct?
If you run the line of code which adds the the users to the team what is the error message?
You are working with $ProgressPreference = 'SilentlyContinue'
Change this to "continue" to get more information about errors.
Please update with details :)
BR Schnittlauch
PS: Please mark answers as solved, when they are.
phil_tannay
Jun 23, 2025Copper Contributor
Hi, I am not getting any errors.
The script is working properly. I need to add to it so that after the team is created from the template a new private channel is created using and adding member from the CSV user to add the owners to the team.