Skip to main content

New-AdcPSSession

SYNOPSIS​

Establish a new PowerShell remoting session to the target computer.

SYNTAX​

__AllParameterSets​

New-AdcPSSession [[-ComputerName] <ComputerParameter>] [[-Credential] <pscredential>]
[<CommonParameters>]

DESCRIPTION​

Establish a new PowerShell remoting session to the target computer. Respects the configuration provided via Set-AdcRemotingConfig.

EXAMPLES​

EXAMPLE 1​

New-AdcPSSession -ComputerName dc1.contoso.com

Establish a session to dc1.contoso.com using the settings for either dc1.contoso.com or contoso.com

PARAMETERS​

-ComputerName​

The computer to connect to. Specify thhe full FQDN.

Type: PSFramework.Parameter.ComputerParameter
DefaultValue: ''
SupportsWildcards: false
Aliases:
- Server
ParameterSets:
- Name: (All)
Position: 0
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-Credential​

The credentials to use for the connection.

Type: System.Management.Automation.PSCredential
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 1
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

CommonParameters​

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.