< Back
Enter-CredSSPSession
Post
NAME Enter-CredSSPSession
SYNOPSIS
Enters a remote PowerShell session into a server using CredSSP authentication.
SYNTAX
Enter-CredSSPSession [-Server] <Object> [-Credential] <Object> [<CommonParameters>]
DESCRIPTION
By default, users cannot perform a "double-hop" by accessing another server via a remote PowerShell session.
CredSSP authentication is required in order for this to happen, but connecting in this way requires several steps.
This function automates this process.
PARAMETERS
-Server <Object>
The fully qualified domain name of the server you wish to connect to.
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Credential <Object>
The administrator credential you wish to use to connect. Enter using the following syntax: DOMAIN\\USER
Required? true
Position? 2
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
NOTES
Author: Joshua Morden
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Enter-CredSSPSession -Server myserver.mydomain.org -Credential mydomain.org\\domainadmin
...
You have opened a CredSSP Remote PowerShell Session with myserver.mydomain.org.
When finished, exit the remote PS session with 'exit' and then use command 'Exit-CredSSPSession' to disable
CredSSP on the remote server and your PC.
[myserver.mydomain.org]: PS C:\\Users\\domainadmin\\Documents>
RELATED LINKS
SYNOPSIS
Enters a remote PowerShell session into a server using CredSSP authentication.
SYNTAX
Enter-CredSSPSession [-Server] <Object> [-Credential] <Object> [<CommonParameters>]
DESCRIPTION
By default, users cannot perform a "double-hop" by accessing another server via a remote PowerShell session.
CredSSP authentication is required in order for this to happen, but connecting in this way requires several steps.
This function automates this process.
PARAMETERS
-Server <Object>
The fully qualified domain name of the server you wish to connect to.
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Credential <Object>
The administrator credential you wish to use to connect. Enter using the following syntax: DOMAIN\\USER
Required? true
Position? 2
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
NOTES
Author: Joshua Morden
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Enter-CredSSPSession -Server myserver.mydomain.org -Credential mydomain.org\\domainadmin
...
You have opened a CredSSP Remote PowerShell Session with myserver.mydomain.org.
When finished, exit the remote PS session with 'exit' and then use command 'Exit-CredSSPSession' to disable
CredSSP on the remote server and your PC.
[myserver.mydomain.org]: PS C:\\Users\\domainadmin\\Documents>
RELATED LINKS