Remote Administration Configuration in Workgroup Environments
Establishing WinRM connection policies, CredSSP authentication, and bypassing local UAC policies for managing Server Core in a Workgroup.
Managing a headless server (without a graphical interface) such as Windows Server Core requires enabling secure remote communication channels. In corporate environments where the client is integrated into Microsoft Entra ID (Azure AD) and the server resides in an isolated Workgroup, it is necessary to circumvent the lack of Kerberos authentication through strict trust and identity delegation policies.
1. Hardening and Opening on the SERVER (w-server-2022)
Sección titulada «1. Endurecimiento y Apertura en el SERVIDOR (w-server-2022)»The following commands must be executed remotely via the virtual machine's physical console or through local SSH as Administrator:
A. Modify Network Profile Category to Private
Sección titulada «A. Modificar la Categoría del Perfil de Red a Privada»By default, Windows Server usually maps network cards in “Public” mode, forcing the local firewall to immediately block any traffic from DCOM, RPC, or WinRM. It is mandatory to redefine the interface as “Private”:
# 1. Comprobar el perfil activo y tomar nota del InterfaceIndexGet-NetConnectionProfile
# 2. Modificar la categoría de red (Reemplaza el valor de X por tu InterfaceIndex)Set-NetConnectionProfile -InterfaceIndex X -NetworkCategory PrivateB. Initialize and Configure WinRM (Windows Remote Management)
Sección titulada «B. Inicializar y Configurar WinRM (Windows Remote Management)»Starts the native PowerShell remote management service and automatically creates listeners in the firewall:
Enable-PSRemoting -ForceC. Enable CredSSP Credential Delegation (Server Role)
Sección titulada «C. Habilitar Delegación de Credenciales CredSSP (Rol Servidor)»Allows the server to accept advanced delegated credentials from the administration client, which are indispensable for installing drivers or interacting with low-level printing APIs:
Enable-WSManCredSSP -Role ServerD. Remote User Account Control Bypass (UAC Filter)
Sección titulada «D. Bypass de Control de Cuentas de Usuario Remoto (UAC Filter)»In local networks without a local corporate domain, Windows blocks elevated administrator tokens for connections coming from external local SAM accounts over the network. Disable this restriction by modifying the local registry:
New-ItemProperty -Name LocalAccountTokenFilterPolicy -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" -Value 1 -PropertyType DWord -Force2. Provisioning on the Administration CLIENT (pc-admin-01)
Sección titulada «2. Aprovisionamiento en el CLIENTE de Administración (pc-admin-01)»Run the following commands by opening Windows PowerShell as Administrator on your local machine:
A. Define Explicit Trust Relationship (TrustedHosts)
Sección titulada «A. Definir Relación de Confianza Explícita (TrustedHosts)»Since we do not have a local domain controller to audit the remote server's identity via Kerberos, the client must explicitly trust the target host to establish the encrypted channel:
winrm set winrm/config/client '@{TrustedHosts="w-server-2022,192.168.10.10,w-server-2022.local"}'B. Enable CredSSP (Client Role)
Sección titulada «B. Habilitar CredSSP (Rol Cliente)»Enable secure delegation of the local identity token to allow it to be injected into the remote server during the installation process:
Enable-WSManCredSSP -Role Client -DelegateComputer "w-server-2022.local"3. Verified Connection Channels
Sección titulada «3. Canales de Conexión Verificados»Method 1: Remote Connection via PowerShell (Command Line)
Sección titulada «Método 1: Conexión Remota en PowerShell (Línea de Comandos)»It is the most direct, agile, and clean way to manage the operating system:
# Iniciar sesión remota ingresando credenciales seguras interactivosEnter-PSSession -ComputerName 192.168.10.10 -Credential (Get-Credential)
# Sintaxis de credenciales a usar en el diálogo emergente:# Usuario: w-server-2022\usuario.demoMethod 2: MMC and Print Management GUI (RSAT)
Sección titulada «Método 2:MMC y Consola Gráfica de Impresión (RSAT)»If you attempt to connect the classic “Print Management” GUI from your Azure AD-integrated workstation, the system will attempt to authenticate with your Microsoft 365 token, immediately throwing an Access denied error.
To force the GUI to communicate using the local SAM credentials of the print server, run the following command in your PC's CMD console:
runas /netonly /user:w-server-2022\usuario.demo "mmc printmanagement.msc"This command will launch the GUI by loading the local server administrator token directly into the network stack, allowing you to manage printers with complete ease.

