Windows Admin center V2 Authentication issue
Windows Admin center V2 “Modernized” v2.0.01 will not operate in Windows Authentication mode. If you run the installer in Remote Express mode, it is set to Forms Authentication. This mode will not allow a login with an Active Directory administrator the V2 gateway is joined to, only the local machine administrator.
If you rerun the setup in custom mode and attempt to indicate Kerberos / Windows Authentication the gateway will not run. If you use the powershell admin script to run the command “Set-WACLoginMode -Mode WindowsAuthentication” on a functioning gateway in Forms auth mode, the gateway will crash/not run.
Both methods of setting integrated authentication produce this .NET runtime error below. Running the indicated netsh command produces no change in behavior and no change in future .NET runtime errors. Running a netsh show command clearly displays the indicated urlacl exists. The gateway server OS is Windows 2022 STD Desktop Exp. This is not installed SxS with V1 gateway. V1 gateway operates without issue on this server when installed.
Application: WindowsAdminCenter.exe
CoreCLR Version: 6.0.2523.51912
.NET Version: 6.0.25
Description: The process was terminated due to an unhandled exception.
Exception Info: Microsoft.AspNetCore.Server.HttpSys.HttpSysException (5): The prefix ‘https://+:6600/’ is not registered. Please run the following command as Administrator to register this prefix:
netsh http add urlacl url=https://+:6600/ user=DOMAINHIDDENWAC$
See “Preregister URL prefixes on the server” on https://go.microsoft.com/fwlink/?linkid=2127065 for more information.
at Microsoft.AspNetCore.Server.HttpSys.UrlGroup.RegisterPrefix(String uriPrefix, Int32 contextId)
at Microsoft.AspNetCore.Server.HttpSys.UrlPrefixCollection.RegisterAllPrefixes(UrlGroup urlGroup)
at Microsoft.AspNetCore.Server.HttpSys.HttpSysListener.Start()
at Microsoft.AspNetCore.Server.HttpSys.MessagePump.StartAsync[TContext](IHttpApplication`1 application, CancellationToken cancellationToken)
at Microsoft.AspNetCore.Hosting.GenericWebHostService.StartAsync(CancellationToken cancellationToken)
at Microsoft.Extensions.Hosting.Internal.Host.StartAsync(CancellationToken cancellationToken)
at Microsoft.WindowsAdminCenter.Core.HostingRuntime.StartAsync(CancellationToken cancellationToken)
at Microsoft.WindowsAdminCenter.Executable.WindowsService.OnStart(String[] args)
at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_1(Object state)
at System.Threading.QueueUserWorkItemCallbackDefaultContext.Execute()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()
at System.Threading.Thread.StartCallback()
Windows Admin center V2 “Modernized” v2.0.01 will not operate in Windows Authentication mode. If you run the installer in Remote Express mode, it is set to Forms Authentication. This mode will not allow a login with an Active Directory administrator the V2 gateway is joined to, only the local machine administrator. If you rerun the setup in custom mode and attempt to indicate Kerberos / Windows Authentication the gateway will not run. If you use the powershell admin script to run the command “Set-WACLoginMode -Mode WindowsAuthentication” on a functioning gateway in Forms auth mode, the gateway will crash/not run. Both methods of setting integrated authentication produce this .NET runtime error below. Running the indicated netsh command produces no change in behavior and no change in future .NET runtime errors. Running a netsh show command clearly displays the indicated urlacl exists. The gateway server OS is Windows 2022 STD Desktop Exp. This is not installed SxS with V1 gateway. V1 gateway operates without issue on this server when installed. Application: WindowsAdminCenter.exeCoreCLR Version: 6.0.2523.51912.NET Version: 6.0.25Description: The process was terminated due to an unhandled exception.Exception Info: Microsoft.AspNetCore.Server.HttpSys.HttpSysException (5): The prefix ‘https://+:6600/’ is not registered. Please run the following command as Administrator to register this prefix:netsh http add urlacl url=https://+:6600/ user=DOMAINHIDDENWAC$See “Preregister URL prefixes on the server” on https://go.microsoft.com/fwlink/?linkid=2127065 for more information.at Microsoft.AspNetCore.Server.HttpSys.UrlGroup.RegisterPrefix(String uriPrefix, Int32 contextId)at Microsoft.AspNetCore.Server.HttpSys.UrlPrefixCollection.RegisterAllPrefixes(UrlGroup urlGroup)at Microsoft.AspNetCore.Server.HttpSys.HttpSysListener.Start()at Microsoft.AspNetCore.Server.HttpSys.MessagePump.StartAsync[TContext](IHttpApplication`1 application, CancellationToken cancellationToken)at Microsoft.AspNetCore.Hosting.GenericWebHostService.StartAsync(CancellationToken cancellationToken)at Microsoft.Extensions.Hosting.Internal.Host.StartAsync(CancellationToken cancellationToken)at Microsoft.WindowsAdminCenter.Core.HostingRuntime.StartAsync(CancellationToken cancellationToken)at Microsoft.WindowsAdminCenter.Executable.WindowsService.OnStart(String[] args)at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_1(Object state)at System.Threading.QueueUserWorkItemCallbackDefaultContext.Execute()at System.Threading.ThreadPoolWorkQueue.Dispatch()at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()at System.Threading.Thread.StartCallback() Read More