< Back

Exit-CredSSPSession

Mon Jan 13, 2020 6:46 am

NAME Exit-CredSSPSession



SYNOPSIS

Exits a CredSSP remote PowerShell session on a server and disables CredSSP on the server and client.





SYNTAX

Exit-CredSSPSession [-Server] <Object> [-DisableClient] [<CommonParameters>]





DESCRIPTION

This cmdlet disables CredSSP on a server with the option to disable CredSSP on your workstation if desired. This

command should be used after





PARAMETERS

-Server <Object>

The fully qualified domain name of the server you are connected to.



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-DisableClient [<SwitchParameter>]

This is an optional switch parameter that disables CredSSP on your workstation when used.



Required? false

Position? named

Default value False

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:\\>Exit-CredSSPSession -Server myserver.mydomain.org



CredSSP has been disabled on the remote server and your PC.



PS C:\\>



Description



-----------



Disable CredSSP on the server and leave CredSSP enabled on your workstation. This is a good option to use if you

are working on multiple servers at a time.









-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Exit-CredSSPSession -Server myserver.mydomain.org -DisableClient



Description



-----------



Disable CredSSP on both the server and your workstation.











RELATED LINKS