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 Schnittlauch,
No I am not getting any errors. The script is working as planned.
I want to make an addition to the script so that during the creation of the team a new private channel is created and populated with users from the TeamOwners.csv