Skip to content

Commit 277dff0

Browse files
authored
Merge branch 'master' into patch-1
2 parents aff3e0d + 8d5b9d9 commit 277dff0

File tree

1 file changed

+23
-12
lines changed

1 file changed

+23
-12
lines changed

skype/skype-ps/skype/New-CsOnlineSession.md

Lines changed: 23 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,25 +16,18 @@ Creates a persistent connection to Microsoft Skype for Business Online DataCente
1616

1717
## SYNTAX
1818

19-
### UserName (Default)
20-
```
21-
New-CsOnlineSession [[-UserName] <String>] [-OverrideAdminDomain <String>] [-OverrideDiscoveryUri <Uri>]
22-
[-OverridePowerShellUri <Uri>] [-OverrideAccessTokenResourceUri <Uri>] [-SessionOption <PSSessionOption>]
23-
[<CommonParameters>]
24-
```
25-
26-
### Credential
19+
### Credential (Default)
2720
```
2821
New-CsOnlineSession [[-Credential] <PSCredential>] [-OverrideAdminDomain <String>]
2922
[-OverrideDiscoveryUri <Uri>] [-OverridePowerShellUri <Uri>] [-OverrideAccessTokenResourceUri <Uri>]
30-
[-SessionOption <PSSessionOption>] [<CommonParameters>]
23+
[-SessionOption <PSSessionOption>] [<CommonParameters>] [-TeamsEnvironmentName <String>]
3124
```
3225

3326
### OAuthAccessToken
3427
```
3528
New-CsOnlineSession [-OAuthAccessToken <SecureString>] [-OverrideAdminDomain <String>]
3629
[-OverrideDiscoveryUri <Uri>] [-OverridePowerShellUri <Uri>] [-OverrideAccessTokenResourceUri <Uri>]
37-
[-SessionOption <PSSessionOption>] [<CommonParameters>]
30+
[-SessionOption <PSSessionOption>] [<CommonParameters>] [-TeamsEnvironmentName <String>]
3831
```
3932

4033
## DESCRIPTION
@@ -45,14 +38,16 @@ In this session, Skype for Business Online administrator can run Skype for Busin
4538

4639
### EXAMPLE 1
4740
```
48-
New-CsOnlineSession -UserName [email protected]
41+
$credential = get-credential
42+
New-CsOnlineSession -Credential $credential
4943
```
5044

5145
Establishes a Skype for Business Online Remote PowerShell session, supplying the credentials of a Skype for Business Online administrator account.
5246

5347
### EXAMPLE 2
5448
```
55-
New-CsOnlineSession -UserName [email protected] -OverrideAdminDomain fabrikam.onmicrosoft.com
49+
$credential = get-credential
50+
New-CsOnlineSession -Credential $credential -OverrideAdminDomain fabrikam.onmicrosoft.com
5651
```
5752

5853
Establishes a Skype for Business Online Remote PowerShell session, with a Skype for Business Online administrator account that has permission to manage the tenant fabrikam.onmicrosoft.com that was specified using the optional OverrideAdminDomain parameter.
@@ -69,6 +64,8 @@ Establishes a Skype for Business Online Remote PowerShell session using multi-fa
6964

7065
### -UserName
7166
Specifies the Skype for Business Online administrator account name to be used when prompting for credentials.
67+
> [!WARNING]
68+
> UserName has been deprecated and is not avaiable in Teams Powershell module. Please use Credential parameter to provide username and password.
7269
7370
```yaml
7471
Type: String
@@ -179,6 +176,20 @@ Accept pipeline input: False
179176
Accept wildcard characters: False
180177
```
181178
179+
### -TeamsEnvironmentName
180+
Use this setting if your organization is in one of the Teams Government Cloud environments.
181+
182+
Specify "TeamsGCCH" if your organization is in the GCC High Environment. Specify "TeamsDOD" if your organization is in the DoD Environment.
183+
184+
```yaml
185+
Type: String
186+
Required: False
187+
Position: Named
188+
Default value: None
189+
Accept pipeline input: False
190+
Accept wildcard characters: False
191+
```
192+
182193
### -SessionOption
183194
Sets advanced options for the session.
184195
Enter a SessionOption object, such as one that you create by using the New-PSSessionOption cmdlet, or a hash table in which the keys are session option names and the values are session option values.

0 commit comments

Comments
 (0)