Skip to content

Commit f654b1c

Browse files
authored
Update New-CsOnlineSession.md
Removed UserName. Made Credential as default.
1 parent 92b0814 commit f654b1c

File tree

1 file changed

+5
-25
lines changed

1 file changed

+5
-25
lines changed

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

Lines changed: 5 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,7 @@ 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>]
@@ -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.
@@ -67,21 +62,6 @@ Establishes a Skype for Business Online Remote PowerShell session using multi-fa
6762

6863
## PARAMETERS
6964

70-
### -UserName
71-
Specifies the Skype for Business Online administrator account name to be used when prompting for credentials.
72-
73-
```yaml
74-
Type: String
75-
Parameter Sets: UserName
76-
Aliases:
77-
78-
Required: False
79-
Position: 1
80-
Default value: None
81-
Accept pipeline input: False
82-
Accept wildcard characters: False
83-
```
84-
8565
### -Credential
8666
Specifies a Skype for Business Online administrator, or Syndicated Partner administrator account.
8767

0 commit comments

Comments
 (0)