...
Code Block |
---|
$ticketID = "AIE-xxxxxx121464" $TeamsToAdd = @( "Project: ADL23SYD24 Year 12 Class Team 1", "Project: ADL23SYD24 Year 12 Class Team 2", "Project: ADL23SYD24 Year 12 Class Team 3", "Project: SYD24 Year 2 Class Team 4", "Project: SYD24 Year 2 Class Team 5", "Project: SYD24 Year 2 Class Team 6", "Project: SYD24 Year 2 Class Team 7", "Project: SYD24 Year 2 Class Team 8", "Project: SYD24 Year 2 Class Team 9", "Project: SYD24 Year 2 Class Team 10", "Project: SYD24 Year 2 Class Team 11", "Project: SYD24 Year 2 Class Team 12" ) Foreach ($Team in $TeamsToAdd) { $MailNickname = $Team -replace " ","" $MailNickname = $MailNickname -replace ":","" write-host "email is $MailNickname, Team name is $team" $group = New-Team -MailNickname "$MailNickname" -displayname "$Team" -description = "$ticketID" -Visibility "private" -owner "annmareed@aie.edu.au","travis.hart@aie Add-TeamUser -GroupId $group.GroupId -user "alexandra.mannell@aie.edu.au" -role Owner NewAdd-TeamChannelTeamUser -GroupId $group.GroupId -DisplayNameuser "General"maria.lynch@aie.edu.au" -role Owner New-TeamChannel -GroupId $group.GroupId -DisplayName "MeetingsArt" New-TeamChannel -GroupId $group.GroupId -DisplayName "ArtAudio" New-TeamChannel -GroupId $group.GroupId -DisplayName "Design" New-TeamChannel -GroupId $group.GroupId -DisplayName "Programming" } |