Skip to content

Commit d2190c8

Browse files
authored
Merge pull request MicrosoftDocs#551 from islubin/master
Updates to new-team cmdlet
2 parents 90dc64b + 0901abe commit d2190c8

File tree

1 file changed

+33
-39
lines changed

1 file changed

+33
-39
lines changed

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

Lines changed: 33 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -3,43 +3,43 @@ external help file: Microsoft.TeamsCmdlets.PowerShell.Custom.dll-Help.xml
33
Module Name: MicrosoftTeams
44
applicable: Microsoft Teams
55
title: New-Team
6-
online version:
6+
online version:
77
schema: 2.0.0
88
---
99

1010
# New-Team
1111

1212
## SYNOPSIS
13-
Note: This cmdlet is currently in Beta.
13+
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.
1414

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

1817
## SYNTAX
1918

2019
```
21-
New-Team -DisplayName <String> [-Description <String>] [-Alias <String>] [-Classification <String>]
22-
[-AccessType <String>] [-AddCreatorAsMember <Boolean>]
20+
New-Team [-Group <String>] [-DisplayName <String>] [-Description <String>] [-Alias <String>]
21+
[-Classification <String>] [-AccessType <String>] [-AddCreatorAsMember <Boolean>] [<CommonParameters>]
2322
```
2423

2524
## DESCRIPTION
2625
Creates a new team with user specified settings, and returns a Group object with a GroupID property.
2726

2827
## EXAMPLES
2928

30-
### -------------------------- Example 1 --------------------------
29+
### Example 1
3130
```
3231
New-Team -DisplayName "Tech Reads"
3332
```
3433

35-
### -------------------------- Example 2 --------------------------
34+
### Example 2
3635
```
3736
New-Team -DisplayName "Tech Reads" -Description "Team to post technical articles and blogs" -AccessType Public
3837
```
39-
### -------------------------- Example 3 --------------------------
38+
39+
### Example 3
4040
```
4141
Connect-MicrosoftTeams -AccountId [email protected]
42-
$group = New-Team -alias TestTeam -displayname Test Teams -AccessType private
42+
$group = New-Team -alias "TestTeam" -displayname "Test Teams" -AccessType "private"
4343
Add-TeamUser -GroupId $group.GroupId -User "[email protected]"
4444
Add-TeamUser -GroupId $group.GroupId -User "[email protected]"
4545
Add-TeamUser -GroupId $group.GroupId -User "[email protected]"
@@ -49,22 +49,6 @@ New-TeamChannel -GroupId $group.GroupId -DisplayName "Contracts"
4949
Set-TeamFunSettings -GroupId $group.GroupId -AllowCustomMemes true
5050
```
5151

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-
6852
## PARAMETERS
6953

7054
### -AccessType
@@ -77,7 +61,6 @@ Default is "Private".
7761
Type: String
7862
Parameter Sets: (All)
7963
Aliases:
80-
Applicable: Microsoft Teams
8164

8265
Required: False
8366
Position: Named
@@ -87,14 +70,13 @@ Accept wildcard characters: False
8770
```
8871
8972
### -AddCreatorAsMember
90-
This setting lets you decide if you will be added as a member of the team.
91-
The default is true.
73+
This setting lets you decide if you will be added as a member of the group.
74+
Because you are automatically an owner of the group, you will always be added as a member to the team.
9275
9376
```yaml
9477
Type: Boolean
9578
Parameter Sets: (All)
9679
Aliases:
97-
Applicable: Microsoft Teams
9880

9981
Required: False
10082
Position: Named
@@ -111,7 +93,6 @@ Team Alias Characters Limit - 64
11193
Type: String
11294
Parameter Sets: (All)
11395
Aliases:
114-
Applicable: Microsoft Teams
11596

11697
Required: False
11798
Position: Named
@@ -127,7 +108,6 @@ Team classification
127108
Type: String
128109
Parameter Sets: (All)
129110
Aliases:
130-
Applicable: Microsoft Teams
131111

132112
Required: False
133113
Position: Named
@@ -144,7 +124,6 @@ Team Description Characters Limit - 1024.
144124
Type: String
145125
Parameter Sets: (All)
146126
Aliases:
147-
Applicable: Microsoft Teams
148127

149128
Required: False
150129
Position: Named
@@ -161,15 +140,34 @@ Team Name Characters Limit - 256.
161140
Type: String
162141
Parameter Sets: (All)
163142
Aliases:
164-
Applicable: Microsoft Teams
165143

166-
Required: True
144+
Required: False
145+
Position: Named
146+
Default value: None
147+
Accept pipeline input: True (ByPropertyName)
148+
Accept wildcard characters: False
149+
```
150+
151+
### -Group
152+
Use this parameter to specify the groupid of a group you would like to convert to a team.
153+
If you use this parameter, do not specify other parameters.
154+
155+
```yaml
156+
Type: String
157+
Parameter Sets: (All)
158+
Aliases:
159+
160+
Required: False
167161
Position: Named
168162
Default value: None
169163
Accept pipeline input: True (ByPropertyName)
170164
Accept wildcard characters: False
171165
```
172166
167+
### CommonParameters
168+
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
169+
For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
170+
173171
## INPUTS
174172
175173
## OUTPUTS
@@ -179,7 +177,3 @@ Accept wildcard characters: False
179177
## NOTES
180178
181179
## RELATED LINKS
182-
183-
[Get-Team](Get-Team.md)
184-
185-
[Set-Team](Set-Team.md)

0 commit comments

Comments
 (0)