Skip to content

Commit 8b670a7

Browse files
committed
Updates to new-team cmdlet
1 parent 1cb8e5b commit 8b670a7

File tree

1 file changed

+33
-41
lines changed

1 file changed

+33
-41
lines changed

teams/teams-ps/teams/New-Team.md

Lines changed: 33 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,43 @@
11
---
22
external help file: Microsoft.TeamsCmdlets.PowerShell.Custom.dll-Help.xml
33
Module Name: MicrosoftTeams
4-
applicable: Microsoft Teams
5-
title: New-Team
6-
online version:
4+
online version:
75
schema: 2.0.0
86
---
97

108
# New-Team
119

1210
## SYNOPSIS
13-
Note: This cmdlet is currently in Beta.
11+
This cmdlet lets you provision a new Team for use in Microsoft Teams and will create an O365 Unified Group to back the team. Groups created through teams cmdlets, APIs, or clients will not show up in Outlook by default. If you want these groups to appear in Outlook clients, you can use the Set-UnifiedGroup (https://docs.microsoft.com/en-us/powershell/module/exchange/users-and-groups/set-unifiedgroup?view=exchange-ps) cmdlet in the Exchange Powershell Module to set the parameter HiddenFromExchangeClients to $false.
1412

15-
Creates a new team.
16-
The new team will be backed by a new unified group.
13+
Note: This cmdlet is currently in Beta and functionality may change.
1714

1815
## SYNTAX
1916

2017
```
21-
New-Team -DisplayName <String> [-Description <String>] [-Alias <String>] [-Classification <String>]
22-
[-AccessType <String>] [-AddCreatorAsMember <Boolean>]
18+
New-Team [-Group <String>] [-DisplayName <String>] [-Description <String>] [-Alias <String>]
19+
[-Classification <String>] [-AccessType <String>] [-AddCreatorAsMember <Boolean>] [<CommonParameters>]
2320
```
2421

2522
## DESCRIPTION
2623
Creates a new team with user specified settings, and returns a Group object with a GroupID property.
2724

2825
## EXAMPLES
2926

30-
### -------------------------- Example 1 --------------------------
27+
### Example 1
3128
```
3229
New-Team -DisplayName "Tech Reads"
3330
```
3431

35-
### -------------------------- Example 2 --------------------------
32+
### Example 2
3633
```
3734
New-Team -DisplayName "Tech Reads" -Description "Team to post technical articles and blogs" -AccessType Public
3835
```
39-
### -------------------------- Example 3 --------------------------
36+
37+
### Example 3
4038
```
4139
Connect-MicrosoftTeams -AccountId [email protected]
42-
$group = New-Team -alias TestTeam -displayname Test Teams -AccessType private
40+
$group = New-Team -alias "TestTeam" -displayname "Test Teams" -AccessType "private"
4341
Add-TeamUser -GroupId $group.GroupId -User "[email protected]"
4442
Add-TeamUser -GroupId $group.GroupId -User "[email protected]"
4543
Add-TeamUser -GroupId $group.GroupId -User "[email protected]"
@@ -49,22 +47,6 @@ New-TeamChannel -GroupId $group.GroupId -DisplayName "Contracts"
4947
Set-TeamFunSettings -GroupId $group.GroupId -AllowCustomMemes true
5048
```
5149

52-
Create a team with some members and channels.
53-
54-
### -------------------------- Example 4 --------------------------
55-
```
56-
Get-MsolGroup -SearchString "TestyTest" | Where-Object DisplayName -eq TestyTest | foreach-object -process {
57-
$name = "TestConvert" + $_.DisplayName
58-
$group = New-Team -displayname $name
59-
Get-MsolGroupMember -GroupObjectId $_.ObjectId | foreach-object -process {
60-
Add-TeamUser -GroupId $group.GroupId -User $_.EmailAddress
61-
}
62-
}
63-
```
64-
65-
Iterate over all Groups and create corresponding Teams.
66-
67-
6850
## PARAMETERS
6951

7052
### -AccessType
@@ -77,7 +59,6 @@ Default is "Private".
7759
Type: String
7860
Parameter Sets: (All)
7961
Aliases:
80-
Applicable: Microsoft Teams
8162

8263
Required: False
8364
Position: Named
@@ -87,14 +68,13 @@ Accept wildcard characters: False
8768
```
8869
8970
### -AddCreatorAsMember
90-
This setting lets you decide if you will be added as a member of the team.
91-
The default is true.
71+
This setting lets you decide if you will be added as a member of the group.
72+
Because you are automatically an owner of the group, you will always be added as a member to the team.
9273
9374
```yaml
9475
Type: Boolean
9576
Parameter Sets: (All)
9677
Aliases:
97-
Applicable: Microsoft Teams
9878

9979
Required: False
10080
Position: Named
@@ -111,7 +91,6 @@ Team Alias Characters Limit - 64
11191
Type: String
11292
Parameter Sets: (All)
11393
Aliases:
114-
Applicable: Microsoft Teams
11594

11695
Required: False
11796
Position: Named
@@ -127,7 +106,6 @@ Team classification
127106
Type: String
128107
Parameter Sets: (All)
129108
Aliases:
130-
Applicable: Microsoft Teams
131109

132110
Required: False
133111
Position: Named
@@ -144,7 +122,6 @@ Team Description Characters Limit - 1024.
144122
Type: String
145123
Parameter Sets: (All)
146124
Aliases:
147-
Applicable: Microsoft Teams
148125

149126
Required: False
150127
Position: Named
@@ -161,15 +138,34 @@ Team Name Characters Limit - 256.
161138
Type: String
162139
Parameter Sets: (All)
163140
Aliases:
164-
Applicable: Microsoft Teams
165141

166-
Required: True
142+
Required: False
143+
Position: Named
144+
Default value: None
145+
Accept pipeline input: True (ByPropertyName)
146+
Accept wildcard characters: False
147+
```
148+
149+
### -Group
150+
Use this parameter to specify the groupid of a group you would like to convert to a team.
151+
If you use this parameter, do not specify other parameters.
152+
153+
```yaml
154+
Type: String
155+
Parameter Sets: (All)
156+
Aliases:
157+
158+
Required: False
167159
Position: Named
168160
Default value: None
169161
Accept pipeline input: True (ByPropertyName)
170162
Accept wildcard characters: False
171163
```
172164
165+
### CommonParameters
166+
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
167+
For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
168+
173169
## INPUTS
174170
175171
## OUTPUTS
@@ -179,7 +175,3 @@ Accept wildcard characters: False
179175
## NOTES
180176
181177
## RELATED LINKS
182-
183-
[Get-Team](Get-Team.md)
184-
185-
[Set-Team](Set-Team.md)

0 commit comments

Comments
 (0)