Public/Get-RemoteUIHostNameMru.ps1

function Get-RemoteUIHostNameMru {
  <#
  .SYNOPSIS
    Gets the list of most recently used hostnames for remote admin requests.
  .DESCRIPTION
    Retrieves the MRU list of hostnames stored in the registry for the Remote UI feature.
  .EXAMPLE
    Get-RemoteUIHostNameMru
    Returns the list of recently used hostnames.
  #>

  [CmdletBinding()]
  param()

  process {
    return [RemoteUISettings]::GetHostNameMru()
  }
}