< Back
New-CsOnlineSession
Post
NAME New-CsOnlineSession
SYNOPSIS
Creates a persistent connection to Microsoft Skype For Business Online DataCenter.
SYNTAX
New-CsOnlineSession [[-UserName] <String>] [-OverrideAdminDomain <String>] [-OverrideDiscoveryUri <Uri>]
[-OverridePowershellUri <Uri>] [-SessionOption <PSSessionOption>] [<CommonParameters>]
New-CsOnlineSession [[-Credential] <PSCredential>] [-OverrideAdminDomain <String>] [-OverrideDiscoveryUri <Uri>]
[-OverridePowershellUri <Uri>] [-SessionOption <PSSessionOption>] [<CommonParameters>]
DESCRIPTION
Creates a remote session to Microsoft Skype For Business Online DataCenter. In this session, tenant administrator
can run Skype For Business cmdlets to manage users, policies and configurations.
PARAMETERS
-UserName <String>
Required? false
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Credential <PSCredential>
Specifies a user account that is Tenant Administrator, or Syndicated Partner Administrator.
Type a user name, such as "User@Domain.com", or enter a PSCredential object, such as one returned by the
Get-Credential cmdlet.
When you type a user name, you will be prompted for a password.
Required? false
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-OverrideAdminDomain <String>
Specifies a domain to be managed. This could be home domain of signed in user, or a different one that he/she
has permission to manage. Optional.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-OverrideDiscoveryUri <Uri>
Specifies Skype For Business Auto Discovery URI. Optional.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-OverridePowershellUri <Uri>
Specifies Skype For Business Remote Powershell URI. Optional.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-SessionOption <PSSessionOption>
Sets advanced options for the session. 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.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>New-CsOnlineSession -Credential User@Domain.com
Establishes a Skype For Business Remote PowerShell Session, supplying the credentials of an administrator account
of the tenant.
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>New-CsOnlineSession -Credential User@Domain.com -OverrideAdminDomain TargetDomain.com
Establishes a Skype For Business Remote PowerShell Session, with an administrator account that has permission to
manage the tenant TargetDomain.com.
Please change the OverrideAdminDomain to your target Tenant domain.
RELATED LINKS
SYNOPSIS
Creates a persistent connection to Microsoft Skype For Business Online DataCenter.
SYNTAX
New-CsOnlineSession [[-UserName] <String>] [-OverrideAdminDomain <String>] [-OverrideDiscoveryUri <Uri>]
[-OverridePowershellUri <Uri>] [-SessionOption <PSSessionOption>] [<CommonParameters>]
New-CsOnlineSession [[-Credential] <PSCredential>] [-OverrideAdminDomain <String>] [-OverrideDiscoveryUri <Uri>]
[-OverridePowershellUri <Uri>] [-SessionOption <PSSessionOption>] [<CommonParameters>]
DESCRIPTION
Creates a remote session to Microsoft Skype For Business Online DataCenter. In this session, tenant administrator
can run Skype For Business cmdlets to manage users, policies and configurations.
PARAMETERS
-UserName <String>
Required? false
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Credential <PSCredential>
Specifies a user account that is Tenant Administrator, or Syndicated Partner Administrator.
Type a user name, such as "User@Domain.com", or enter a PSCredential object, such as one returned by the
Get-Credential cmdlet.
When you type a user name, you will be prompted for a password.
Required? false
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-OverrideAdminDomain <String>
Specifies a domain to be managed. This could be home domain of signed in user, or a different one that he/she
has permission to manage. Optional.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-OverrideDiscoveryUri <Uri>
Specifies Skype For Business Auto Discovery URI. Optional.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-OverridePowershellUri <Uri>
Specifies Skype For Business Remote Powershell URI. Optional.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-SessionOption <PSSessionOption>
Sets advanced options for the session. 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.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>New-CsOnlineSession -Credential User@Domain.com
Establishes a Skype For Business Remote PowerShell Session, supplying the credentials of an administrator account
of the tenant.
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>New-CsOnlineSession -Credential User@Domain.com -OverrideAdminDomain TargetDomain.com
Establishes a Skype For Business Remote PowerShell Session, with an administrator account that has permission to
manage the tenant TargetDomain.com.
Please change the OverrideAdminDomain to your target Tenant domain.
RELATED LINKS