Public/Clear-RemoteUIHostNameMru.ps1
|
function Clear-RemoteUIHostNameMru { <# .SYNOPSIS Clears the list of most recently used hostnames for remote admin requests. .DESCRIPTION Removes the MRU list of hostnames from the registry. .EXAMPLE Clear-RemoteUIHostNameMru Clears the hostname history. #> [CmdletBinding(SupportsShouldProcess = $true, ConfirmImpact = 'Low')] param() process { if ($PSCmdlet.ShouldProcess("MRU hostname list", "Clear")) { [RemoteUISettings]::ClearHostNameMru() Write-Host "Hostname MRU list has been cleared" -ForegroundColor Green } } } |