Connect-UscServer
SYNOPSIS
Connects to a server.
SYNTAX
Default (Default)
Connect-UscServer [-Server <Server[]>] [-Directory <String>] [<CommonParameters>]
Credential
Connect-UscServer [-Server <Server[]>] [-RememberCredential] -Credential <PSCredential> [-Directory <String>]
[<CommonParameters>]
DESCRIPTION
Connects to a specified server with specified credentials. If no server is specified, the default server is used. If no credentials are specified, the user is prompted for credentials.
EXAMPLES
Example 1
PS C:\> $Credential = Get-Credential
PS C:\> Connect-UscServer -Server "https://myserver.com" -Credential $Credential
This example connects to the server "https://myserver.com" using the specified credentials.
PARAMETERS
-Credential
Specifies the credentials to use when connecting to the server.
Type: PSCredential
Parameter Sets: Credential
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Directory
Specifies an optional alternative client directory.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-RememberCredential
Specifies that the credentials should be remembered.
Type: SwitchParameter
Parameter Sets: Credential
Aliases: Remember
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Server
Specifies the server to connect to.
Type: Server[]
Parameter Sets: (All)
Aliases: Servers
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.