From 4d1eab6c320713dc66362ee839c3d6ae81f8a86d Mon Sep 17 00:00:00 2001 From: agent Date: Sun, 29 Nov 2026 20:52:38 +0100 Subject: [PATCH 1/6] Feature: Convert a pasted URL to its host in host inputs A URL pasted or dropped into a host input (tools, connect dialogs, profiles, groups, hosts file entries, latency targets) becomes its host, e.g. https://borntoberoot.net/docs -> borntoberoot.net. - InputConverter (Utilities): multiline to ";" and URL to host helpers - PasteBehavior replaces ComboBoxPasteBehavior: DataObject.Pasting, ComboBox and TextBox (undo, drag & drop, read-only kept) - Run command: commands that take a host convert a URL target (RunCommandDefinition.TargetIsHost); a URL also suggests the host tools - Whois: a subdomain is queried as its registered domain (Public Suffix List, like RDAP) - Docs and changelog Co-Authored-By: Claude Opus 5.5 --- .../ComboBoxPasteBehavior.cs | 99 ------------------- .../NETworkManager.Controls/PasteBehavior.cs | 85 ++++++++++++++++ .../RunCommand/RunCommandDefinition.cs | 6 ++ .../RunCommand/RunCommandParser.cs | 3 +- .../RunCommand/RunCommandParserTests.cs | 13 ++- .../Utilities/InputConverterTests.cs | 72 ++++++++++++++ .../InputConverter.cs | 74 ++++++++++++++ Source/NETworkManager/RunCommandManager.cs | 25 +++-- .../ViewModels/WhoisViewModel.cs | 12 ++- .../NETworkManager/Views/DNSLookupView.xaml | 4 +- .../Views/GroupChildWindow.xaml | 1 + .../HostsFileEditorEntryChildWindow.xaml | 2 + .../Views/IPGeolocationView.xaml | 2 + .../NETworkManager/Views/IPScannerView.xaml | 3 +- .../Views/LatencyTargetChildWindow.xaml | 2 + .../Views/MDNSDiscoveryView.xaml | 2 +- .../Views/PingMonitorHostView.xaml | 3 +- .../NETworkManager/Views/PortScannerView.xaml | 5 +- .../Views/PowerShellConnectChildWindow.xaml | 2 + .../Views/ProfileChildWindow.xaml | 15 +++ .../Views/PuTTYConnectChildWindow.xaml | 2 + Source/NETworkManager/Views/RDAPView.xaml | 2 + .../RemoteDesktopConnectChildWindow.xaml | 2 + Source/NETworkManager/Views/SNMPView.xaml | 1 + .../Views/TigerVNCConnectChildWindow.xaml | 2 + .../NETworkManager/Views/TracerouteView.xaml | 1 + Source/NETworkManager/Views/WhoisView.xaml | 2 + Website/docs/application/dns-lookup.md | 2 + Website/docs/application/hosts-file-editor.md | 2 +- Website/docs/application/ip-geolocation.md | 2 + Website/docs/application/ip-scanner.md | 2 +- Website/docs/application/ping-monitor.md | 2 +- Website/docs/application/port-scanner.md | 2 +- Website/docs/application/powershell.md | 2 +- Website/docs/application/putty.md | 2 +- Website/docs/application/rdap.md | 2 + Website/docs/application/remote-desktop.md | 2 +- Website/docs/application/snmp.md | 2 + Website/docs/application/tigervnc.md | 2 +- Website/docs/application/traceroute.md | 2 + Website/docs/application/whois.md | 2 + Website/docs/changelog/next-release.md | 6 ++ Website/docs/groups-and-profiles.md | 2 +- Website/docs/run-command.md | 4 +- 44 files changed, 353 insertions(+), 129 deletions(-) delete mode 100644 Source/NETworkManager.Controls/ComboBoxPasteBehavior.cs create mode 100644 Source/NETworkManager.Controls/PasteBehavior.cs create mode 100644 Source/NETworkManager.Tests/Utilities/InputConverterTests.cs create mode 100644 Source/NETworkManager.Utilities/InputConverter.cs diff --git a/Source/NETworkManager.Controls/ComboBoxPasteBehavior.cs b/Source/NETworkManager.Controls/ComboBoxPasteBehavior.cs deleted file mode 100644 index cdcd3a47cd..0000000000 --- a/Source/NETworkManager.Controls/ComboBoxPasteBehavior.cs +++ /dev/null @@ -1,99 +0,0 @@ -using System; -using System.Linq; -using System.Runtime.InteropServices; -using System.Windows; -using System.Windows.Controls; -using System.Windows.Input; - -namespace NETworkManager.Controls; - -/// -/// Attached property that converts multiline text (e.g. a column pasted from Excel) into a -/// semicolon-separated single line when pasted into an editable . -/// -/// Without this the WPF TextBox inside the ComboBox ( is -/// false) silently drops everything after the first line when multiline text is pasted. -/// The conversion is applied by reading the clipboard, replacing the editable text box's -/// selection with the converted text, and marking as -/// handled - the system clipboard itself is never modified, so other applications (or a -/// subsequent paste elsewhere) are unaffected. -/// -public static class ComboBoxPasteBehavior -{ - public static readonly DependencyProperty ConvertMultilineToSemicolonProperty = - DependencyProperty.RegisterAttached( - "ConvertMultilineToSemicolon", - typeof(bool), - typeof(ComboBoxPasteBehavior), - new PropertyMetadata(false, OnConvertMultilineToSemicolonChanged)); - - public static void SetConvertMultilineToSemicolon(UIElement element, bool value) => - element.SetValue(ConvertMultilineToSemicolonProperty, value); - - public static bool GetConvertMultilineToSemicolon(UIElement element) => - (bool)element.GetValue(ConvertMultilineToSemicolonProperty); - - private static void OnConvertMultilineToSemicolonChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) - { - if (d is not ComboBox comboBox) - return; - - if ((bool)e.NewValue) - CommandManager.AddPreviewExecutedHandler(comboBox, OnPreviewExecuted); - else - CommandManager.RemovePreviewExecutedHandler(comboBox, OnPreviewExecuted); - } - - private static void OnPreviewExecuted(object sender, ExecutedRoutedEventArgs e) - { - // Keyboard shortcut (Ctrl+V) and the paste context menu item both route through - // ApplicationCommands.Paste. Editing commands don't need to be handled here. - if (e.Command != ApplicationCommands.Paste) - return; - - // The command originates from the focused editable text box inside the ComboBox - // template, which is where the pasted text actually needs to be inserted. - if (e.OriginalSource is not TextBox textBox) - return; - - string text; - - try - { - if (!Clipboard.ContainsText()) - return; - - text = Clipboard.GetText(); - } - catch (ExternalException) - { - // Clipboard is temporarily locked by another process - fall back to the default paste. - return; - } - - // Only intervene when there is actual multiline content (e.g. a column pasted from - // Excel). Otherwise let the default paste command handle it as usual. - if (!text.Contains('\n') && !text.Contains('\r')) - return; - - var converted = string.Join(";", text - .Replace("\r\n", "\n") - .Replace('\r', '\n') - .Split('\n', StringSplitOptions.RemoveEmptyEntries) - .Select(x => x.Trim())); - - // Replace the current selection with the converted text ourselves and mark the command - // handled, instead of letting the default paste run - this avoids touching the system - // clipboard entirely (no risk of losing other clipboard formats or racing a paste - // elsewhere). - var selectionStart = textBox.SelectionStart; - var textBefore = textBox.Text[..selectionStart]; - var textAfter = textBox.Text[(selectionStart + textBox.SelectionLength)..]; - - textBox.Text = textBefore + converted + textAfter; - textBox.SelectionStart = selectionStart + converted.Length; - textBox.SelectionLength = 0; - - e.Handled = true; - } -} diff --git a/Source/NETworkManager.Controls/PasteBehavior.cs b/Source/NETworkManager.Controls/PasteBehavior.cs new file mode 100644 index 0000000000..adace27fcb --- /dev/null +++ b/Source/NETworkManager.Controls/PasteBehavior.cs @@ -0,0 +1,85 @@ +using System.Windows; +using System.Windows.Controls; +using NETworkManager.Utilities; + +namespace NETworkManager.Controls; + +/// +/// Attached properties that convert text pasted (or dropped) into a TextBox or an editable ComboBox: +/// +/// +/// : multiline text (e.g. a column pasted from Excel) +/// becomes a semicolon-separated single line. Without this the single-line TextBox +/// ( is false) drops everything after the first line. +/// +/// +/// : a URL (e.g. "https://borntoberoot.net/docs", copied from a +/// browser) becomes its host, see . +/// +/// +/// The data of the paste is replaced in and the default paste inserts it, so +/// undo, read-only inputs and drag & drop work as usual and the system clipboard is never modified. +/// +public static class PasteBehavior +{ + public static readonly DependencyProperty ConvertMultilineToSemicolonProperty = + DependencyProperty.RegisterAttached( + "ConvertMultilineToSemicolon", + typeof(bool), + typeof(PasteBehavior), + new PropertyMetadata(false, OnChanged)); + + public static void SetConvertMultilineToSemicolon(UIElement element, bool value) => + element.SetValue(ConvertMultilineToSemicolonProperty, value); + + public static bool GetConvertMultilineToSemicolon(UIElement element) => + (bool)element.GetValue(ConvertMultilineToSemicolonProperty); + + public static readonly DependencyProperty ConvertUrlsToHostsProperty = + DependencyProperty.RegisterAttached( + "ConvertUrlsToHosts", + typeof(bool), + typeof(PasteBehavior), + new PropertyMetadata(false, OnChanged)); + + public static void SetConvertUrlsToHosts(UIElement element, bool value) => + element.SetValue(ConvertUrlsToHostsProperty, value); + + public static bool GetConvertUrlsToHosts(UIElement element) => + (bool)element.GetValue(ConvertUrlsToHostsProperty); + + private static void OnChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) + { + // The pasting event bubbles from the editable text box inside the ComboBox template. + if (d is not (ComboBox or TextBox)) + return; + + // Added once, also if both properties are set. + DataObject.RemovePastingHandler(d, OnPasting); + + if (GetConvertMultilineToSemicolon((UIElement)d) || GetConvertUrlsToHosts((UIElement)d)) + DataObject.AddPastingHandler(d, OnPasting); + } + + private static void OnPasting(object sender, DataObjectPastingEventArgs e) + { + if (sender is not UIElement element || + e.SourceDataObject.GetData(DataFormats.UnicodeText, true) is not string text) + return; + + var converted = text; + + if (GetConvertMultilineToSemicolon(element)) + converted = InputConverter.ConvertMultilineToSemicolon(converted); + + if (GetConvertUrlsToHosts(element)) + converted = InputConverter.ConvertUrlsToHosts(converted); + + if (converted == text) + return; + + // The default paste inserts the converted text instead. + e.DataObject = new DataObject(DataFormats.UnicodeText, converted); + e.FormatToApply = DataFormats.UnicodeText; + } +} diff --git a/Source/NETworkManager.Models/RunCommand/RunCommandDefinition.cs b/Source/NETworkManager.Models/RunCommand/RunCommandDefinition.cs index bb7923614f..cebdef5b32 100644 --- a/Source/NETworkManager.Models/RunCommand/RunCommandDefinition.cs +++ b/Source/NETworkManager.Models/RunCommand/RunCommandDefinition.cs @@ -35,6 +35,12 @@ public sealed class RunCommandDefinition /// public bool SupportsTarget { get; init; } + /// + /// The target is a host (or a list / range of hosts): a URL is converted to its host (e.g. "trace + /// https://borntoberoot.net/docs" traces "borntoberoot.net"), like a URL pasted into the host input. + /// + public bool TargetIsHost { get; init; } + /// /// The command accepts a profile ("@name") instead of a target. /// diff --git a/Source/NETworkManager.Models/RunCommand/RunCommandParser.cs b/Source/NETworkManager.Models/RunCommand/RunCommandParser.cs index 2e76e90010..6828f3904e 100644 --- a/Source/NETworkManager.Models/RunCommand/RunCommandParser.cs +++ b/Source/NETworkManager.Models/RunCommand/RunCommandParser.cs @@ -2,6 +2,7 @@ using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; +using NETworkManager.Utilities; namespace NETworkManager.Models.RunCommand; @@ -203,7 +204,7 @@ public static RunCommandParseResult Parse(string input, IEnumerable +/// Converts pasted or typed input to the form the inputs accept: multiline text (e.g. a column pasted from Excel) to +/// a ";" separated list, and URLs (e.g. copied from a browser) to their host. Used by the paste behavior of the +/// inputs and by the run command. +/// +public static class InputConverter +{ + /// + /// Converts multiline text to a ";" separated list. Empty lines are removed and every line is trimmed. + /// + /// Text (e.g. "10.0.0.1\r\n10.0.0.2\r\n"). + /// Single line (e.g. "10.0.0.1;10.0.0.2"), or the text if it has only one line. + public static string ConvertMultilineToSemicolon(string text) + { + if (string.IsNullOrEmpty(text) || !text.Contains('\n') && !text.Contains('\r')) + return text; + + return string.Join(";", text + .Replace("\r\n", "\n") + .Replace('\r', '\n') + .Split('\n', StringSplitOptions.RemoveEmptyEntries | StringSplitOptions.TrimEntries)); + } + + /// + /// Gets the host of a URL. A URL contains "://" (any scheme, e.g. "https", "ssh", "rdp") and a host, so a host, + /// a subnet ("10.0.0.0/24"), "server:3389", a UNC path or "mailto:" are not URLs. + /// + /// Entry of a host input (e.g. "https://borntoberoot.net/docs"). + /// + /// Host of the URL: an IPv6 address without brackets and zone ID, an internationalized domain name in its ASCII + /// form ("xn--bcher-kva.de"), which is accepted by the validators. + /// + /// True if the entry is a URL with a host. + public static bool TryGetHostFromUrl(string entry, out string host) + { + host = null; + + var value = entry?.Trim(); + + if (string.IsNullOrEmpty(value) || !value.Contains("://") || + !Uri.TryCreate(value, UriKind.Absolute, out var uri)) + return false; + + var idnHost = uri.HostNameType == UriHostNameType.IPv6 + ? uri.IdnHost.Trim('[', ']').Split('%')[0] + : uri.IdnHost; + + if (string.IsNullOrEmpty(idnHost)) + return false; + + host = idnHost; + + return true; + } + + /// + /// Converts every URL of a ";" separated input to its host (see ). Other entries + /// are kept as they are. + /// + /// Input (e.g. "https://borntoberoot.net/docs;10.0.0.1"). + /// Input with hosts instead of URLs (e.g. "borntoberoot.net;10.0.0.1"). + public static string ConvertUrlsToHosts(string input) + { + if (string.IsNullOrEmpty(input) || !input.Contains("://")) + return input; + + return string.Join(";", input.Split(';').Select(x => TryGetHostFromUrl(x, out var host) ? host : x)); + } +} diff --git a/Source/NETworkManager/RunCommandManager.cs b/Source/NETworkManager/RunCommandManager.cs index a8cfd834d3..ddeed0e88c 100644 --- a/Source/NETworkManager/RunCommandManager.cs +++ b/Source/NETworkManager/RunCommandManager.cs @@ -45,6 +45,17 @@ public static class RunCommandManager ["port"] = LookupType.Port }; + /// + /// Applications that take a host as target (also suggested for the host of a URL). + /// + private static readonly ApplicationName[] HostApplications = + [ + ApplicationName.PingMonitor, ApplicationName.Traceroute, ApplicationName.DNSLookup, + ApplicationName.RemoteDesktop, ApplicationName.PuTTY, ApplicationName.PowerShell, ApplicationName.TigerVNC, + ApplicationName.IPGeolocation, ApplicationName.Whois, ApplicationName.RDAP, ApplicationName.SNMP, + ApplicationName.IPScanner + ]; + /// /// Applications that are suggested for a target typed without a command, in the order they are suggested (if /// they were not used with this kind of target before). @@ -52,13 +63,7 @@ public static class RunCommandManager private static readonly Dictionary TargetApplications = new() { // The Port Scanner is not suggested, since it needs ports (or a port profile). - [RunCommandTargetKind.Host] = - [ - ApplicationName.PingMonitor, ApplicationName.Traceroute, ApplicationName.DNSLookup, - ApplicationName.RemoteDesktop, ApplicationName.PuTTY, ApplicationName.PowerShell, ApplicationName.TigerVNC, - ApplicationName.IPGeolocation, ApplicationName.Whois, ApplicationName.RDAP, ApplicationName.SNMP, - ApplicationName.IPScanner - ], + [RunCommandTargetKind.Host] = HostApplications, // Without a domain (e.g. in a company network): no tools for public hosts (Whois, RDAP, IP Geolocation) [RunCommandTargetKind.Hostname] = [ @@ -77,7 +82,8 @@ public static class RunCommandManager [RunCommandTargetKind.OUI] = [ApplicationName.Lookup], [RunCommandTargetKind.Ports] = [ApplicationName.Lookup], [RunCommandTargetKind.ASN] = [ApplicationName.RDAP], - [RunCommandTargetKind.URL] = [ApplicationName.WebConsole], + // A URL is opened in the Web Console, the host tools use its host (see RunCommandDefinition.TargetIsHost). + [RunCommandTargetKind.URL] = [ApplicationName.WebConsole, .. HostApplications], [RunCommandTargetKind.ServiceType] = [ApplicationName.MDNSDiscovery] }; @@ -605,6 +611,9 @@ private static RunCommandDefinition Create(ApplicationName application, string[] Command = application.ToString().ToLowerInvariant(), Aliases = aliases, SupportsTarget = supportsTarget, + // The target of the host tools (also the Port Scanner, which is not suggested for a host) + TargetIsHost = supportsTarget && + (HostApplications.Contains(application) || application == ApplicationName.PortScanner), SupportsProfile = profile, Argument = argument, Types = types ?? [], diff --git a/Source/NETworkManager/ViewModels/WhoisViewModel.cs b/Source/NETworkManager/ViewModels/WhoisViewModel.cs index e23610ef92..1ad2143611 100644 --- a/Source/NETworkManager/ViewModels/WhoisViewModel.cs +++ b/Source/NETworkManager/ViewModels/WhoisViewModel.cs @@ -4,6 +4,7 @@ using NETworkManager.Localization.Resources; using NETworkManager.Models.Export; using NETworkManager.Models.Network; +using NETworkManager.Models.RDAP; using NETworkManager.Settings; using NETworkManager.Utilities; using NETworkManager.Views; @@ -195,17 +196,22 @@ private async Task Query() try { - var whoisServer = Whois.GetWhoisServer(Domain); + // A subdomain (e.g. the host of a pasted URL) is queried as its registered domain, like in RDAP. Whois + // servers only know registered domains. + var domain = Domain.Trim().TrimEnd('.').ToLowerInvariant(); + domain = PublicSuffixList.GetRegisteredDomain(domain) ?? domain; + + var whoisServer = Whois.GetWhoisServer(domain); if (string.IsNullOrEmpty(whoisServer)) { - StatusMessage = string.Format(Strings.WhoisServerNotFoundForTheDomain, Domain); + StatusMessage = string.Format(Strings.WhoisServerNotFoundForTheDomain, domain); StatusMessageLevel = StatusLevel.Error; IsStatusMessageDisplayed = true; } else { - Result = await Whois.QueryAsync(Domain, whoisServer); + Result = await Whois.QueryAsync(domain, whoisServer); IsResultVisible = true; ListHelper.Modify(SettingsManager.Current.Whois_DomainHistory, Domain, diff --git a/Source/NETworkManager/Views/DNSLookupView.xaml b/Source/NETworkManager/Views/DNSLookupView.xaml index 752361e912..333aeea5f0 100644 --- a/Source/NETworkManager/Views/DNSLookupView.xaml +++ b/Source/NETworkManager/Views/DNSLookupView.xaml @@ -55,6 +55,8 @@ Style="{DynamicResource DefaultTextBlock}" VerticalAlignment="Center" /> diff --git a/Source/NETworkManager/Views/GroupChildWindow.xaml b/Source/NETworkManager/Views/GroupChildWindow.xaml index ad2f96c6a0..1f1d286301 100644 --- a/Source/NETworkManager/Views/GroupChildWindow.xaml +++ b/Source/NETworkManager/Views/GroupChildWindow.xaml @@ -1057,6 +1057,7 @@ Text="{x:Static localization:Strings.ServerName}" Margin="24,0,0,0" VerticalAlignment="Center" Style="{StaticResource DisabledTextBlock}" /> diff --git a/Source/NETworkManager/Views/HostsFileEditorEntryChildWindow.xaml b/Source/NETworkManager/Views/HostsFileEditorEntryChildWindow.xaml index b08e7a005b..e685b3c41b 100644 --- a/Source/NETworkManager/Views/HostsFileEditorEntryChildWindow.xaml +++ b/Source/NETworkManager/Views/HostsFileEditorEntryChildWindow.xaml @@ -1,6 +1,7 @@  diff --git a/Source/NETworkManager/Views/LatencyTargetChildWindow.xaml b/Source/NETworkManager/Views/LatencyTargetChildWindow.xaml index d32a2cc362..1b5336597d 100644 --- a/Source/NETworkManager/Views/LatencyTargetChildWindow.xaml +++ b/Source/NETworkManager/Views/LatencyTargetChildWindow.xaml @@ -1,6 +1,7 @@ diff --git a/Source/NETworkManager/Views/MDNSDiscoveryView.xaml b/Source/NETworkManager/Views/MDNSDiscoveryView.xaml index c5cb979726..ecf0ef7fd0 100644 --- a/Source/NETworkManager/Views/MDNSDiscoveryView.xaml +++ b/Source/NETworkManager/Views/MDNSDiscoveryView.xaml @@ -184,7 +184,7 @@ TextSearch.TextPath="Text" ItemTemplate="{StaticResource InputSuggestionTemplate}" controls:ComboBoxListCompletionBehavior.Items="{Binding ServiceTypeProfileNames}" - controls:ComboBoxPasteBehavior.ConvertMultilineToSemicolon="True" + controls:PasteBehavior.ConvertMultilineToSemicolon="True" mahappsControls:TextBoxHelper.Watermark="{x:Static localization:StaticStrings.ExampleMDNSServiceTypeInput}" FontFamily="{StaticResource Fonts.Family.Mono}" IsReadOnly="{Binding IsRunning}" diff --git a/Source/NETworkManager/Views/PingMonitorHostView.xaml b/Source/NETworkManager/Views/PingMonitorHostView.xaml index b14e848c47..6de9bdaf5c 100644 --- a/Source/NETworkManager/Views/PingMonitorHostView.xaml +++ b/Source/NETworkManager/Views/PingMonitorHostView.xaml @@ -200,11 +200,12 @@ Style="{DynamicResource ResourceKey=DefaultTextBlock}" VerticalAlignment="Center" /> diff --git a/Source/NETworkManager/Views/PortScannerView.xaml b/Source/NETworkManager/Views/PortScannerView.xaml index 0323d8ca2c..9c18d1715c 100644 --- a/Source/NETworkManager/Views/PortScannerView.xaml +++ b/Source/NETworkManager/Views/PortScannerView.xaml @@ -64,11 +64,12 @@ Style="{StaticResource DefaultTextBlock}" VerticalAlignment="Center" /> @@ -91,7 +92,7 @@ controls:ComboBoxListCompletionBehavior.Items="{Binding PortProfileNames}" mah:TextBoxHelper.Watermark="{x:Static localization:StaticStrings.ExamplePortScanRange}" FontFamily="{StaticResource Fonts.Family.Mono}" IsReadOnly="{Binding Path=IsRunning}" - controls:ComboBoxPasteBehavior.ConvertMultilineToSemicolon="True" + controls:PasteBehavior.ConvertMultilineToSemicolon="True" Style="{StaticResource HistoryComboBox}"> diff --git a/Source/NETworkManager/Views/PowerShellConnectChildWindow.xaml b/Source/NETworkManager/Views/PowerShellConnectChildWindow.xaml index 87c3e8afde..fb17d1eab4 100644 --- a/Source/NETworkManager/Views/PowerShellConnectChildWindow.xaml +++ b/Source/NETworkManager/Views/PowerShellConnectChildWindow.xaml @@ -1,6 +1,7 @@  @@ -1700,6 +1701,7 @@ IsOn="{Binding IPScanner_InheritHost}" /> @@ -1779,6 +1781,7 @@ IsOn="{Binding PortScanner_InheritHost}" /> @@ -1876,6 +1879,7 @@ IsOn="{Binding PingMonitor_InheritHost}" /> @@ -1975,6 +1979,7 @@ IsOn="{Binding Traceroute_InheritHost}" /> @@ -2044,6 +2049,7 @@ IsOn="{Binding DNSLookup_InheritHost}" /> @@ -2226,6 +2232,7 @@ IsOn="{Binding RemoteDesktop_InheritHost}" /> @@ -2412,6 +2419,7 @@ Text="{x:Static localization:Strings.ServerName}" Margin="24,0,0,0" VerticalAlignment="Center" Style="{StaticResource DisabledTextBlock}" /> @@ -2898,6 +2906,7 @@ IsEnabled="{Binding PowerShell_EnableRemoteConsole}" />