< Back
Clear-CTrustedHost
Post
NAME Clear-CTrustedHost
SYNOPSIS
Removes all entries from PowerShell trusted hosts list.
SYNTAX
Clear-CTrustedHost [-WhatIf] [-Confirm] [<CommonParameters>]
DESCRIPTION
The `Add-CTrustedHost` function adds new entries to the trusted hosts list. `Set-CTrustedHost` sets it to a new
list. This function clears out the trusted hosts list completely. After you run it, you won't be able to connect
to any computers until you add them to the trusted hosts list.
PARAMETERS
-WhatIf [<SwitchParameter>]
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
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:\\>Clear-CTrustedHost
Clears everything from the trusted hosts list.
RELATED LINKS
Add-CTrustedHost
Set-CTrustedHost
SYNOPSIS
Removes all entries from PowerShell trusted hosts list.
SYNTAX
Clear-CTrustedHost [-WhatIf] [-Confirm] [<CommonParameters>]
DESCRIPTION
The `Add-CTrustedHost` function adds new entries to the trusted hosts list. `Set-CTrustedHost` sets it to a new
list. This function clears out the trusted hosts list completely. After you run it, you won't be able to connect
to any computers until you add them to the trusted hosts list.
PARAMETERS
-WhatIf [<SwitchParameter>]
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
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:\\>Clear-CTrustedHost
Clears everything from the trusted hosts list.
RELATED LINKS
Add-CTrustedHost
Set-CTrustedHost