How To

Windows Server Core Remote Management: WAC, PowerShell, Footprint

A fresh Windows Server 2025 Server Core install answers PowerShell remoting the moment it boots, and almost nothing else. WinRM listens on port 5985 for the local subnet. Every firewall group that Event Viewer, Services and Disk Management depend on stays off, so the first MMC snap-in you point at the box fails with “The RPC server is unavailable”. Windows Server Core remote management comes down to knowing which of those doors to open, and for whom.

Original content from computingforgeeks.com - post 180878

This guide manages a workgroup Core server from a Desktop Experience box with TrustedHosts, PowerShell remoting, CIM sessions, scoped firewall groups for MMC snap-ins, SSH and Windows Admin Center. It also measures what Core saves over Desktop Experience, with both images applied from the same ISO. Every command and measurement below was run on Windows Server 2025 Datacenter Evaluation (build 26100.32230) with Windows Admin Center 2606 in October 2026.

Lab layout and prerequisites

You need two servers on the same subnet. The Core box is the one you manage, and the second runs Desktop Experience and acts as your admin station and the Windows Admin Center gateway. Installing Core and walking through SConfig are covered in our Windows Server 2025 installation guide, so this article starts at a Core server that has booted to its text logon screen.

RoleNameIPEditionSpec
Managed serverCORE01192.168.1.133Datacenter Evaluation, Server Core2 vCPU, 4 GB RAM, 40 GB disk
Admin station and WAC gatewayMGMT01192.168.1.129Datacenter, Desktop Experience4 vCPU, 6 GB RAM

Both machines are KVM guests on Proxmox with VirtIO disk and network drivers (the VirtIO driver guide covers loading them), and the admin station was cloned from a Windows Server 2025 template on Proxmox. Neither is in a domain, which is the harder case: with Kerberos out of the picture, every remote tool needs an explicit trust or credential step. On a domain, connecting by computer name uses Kerberos and needs no TrustedHosts entry (connecting by IP address still does). We tested the workgroup case only. Have these ready before you start:

  • The Core server’s local Administrator password
  • An elevated Windows PowerShell 5.1 window on MGMT01
  • Name resolution for CORE01 from MGMT01 (DNS, or mDNS on a flat LAN)

Our lab had no DNS server for these names. Resolve-DnsName CORE01 still answered with CORE01.local through multicast DNS, which is enough on a single flat subnet. Across routed networks, put both servers in DNS or use the IP address everywhere a name appears below.

Test reachability from the management server

Start with ping, because that’s what most people try first, and it fails. Server Core blocks inbound ICMP by default, so a dead ping tells you nothing about whether the server is up:

Test-Connection CORE01 -Count 2

The call fails with a misleading resource error:

Test-Connection : Testing connection to computer 'CORE01' failed: Error due to lack of resources
    + CategoryInfo          : ResourceUnavailable: (CORE01:String) [Test-Connection], PingException
    + FullyQualifiedErrorId : TestConnectionException,Microsoft.PowerShell.Commands.TestConnectionCommand

Test the port that matters instead. WinRM over HTTP uses TCP 5985, and Test-WSMan goes one step further by asking the WS-Management service to identify itself, which needs no credentials:

Test-NetConnection CORE01 -Port 5985 | Select-Object ComputerName, RemoteAddress, RemotePort, TcpTestSucceeded | Format-List
Test-WSMan CORE01

The TCP test succeeds and the WSMan identity comes back, so the listener is up and reachable:

ComputerName     : CORE01
RemoteAddress    : fe80::e9ce:d9a2:7b3e:aa96%6
RemotePort       : 5985
TcpTestSucceeded : True

wsmid           : http://schemas.dmtf.org/wbem/wsman/identity/1/wsmanidentity.xsd
ProtocolVersion : http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd
ProductVendor   : Microsoft Corporation
ProductVersion  : OS: 0.0.0 SP: 0.0 Stack: 3.0

Notice the link-local IPv6 address: Windows preferred the mDNS AAAA answer over the IPv4 one. That’s harmless on one subnet. If TcpTestSucceeded reads False instead, the most likely cause is that the Core box is on another subnet, because the default WinRM rule for the Public profile only accepts the local subnet (more on that below).

Add Server Core to TrustedHosts

Outside a domain, the WinRM client refuses to send credentials to a machine it cannot authenticate with Kerberos. You’ll hit that on the first remote command. Store the Core server’s credential in a variable first, since every command after this reuses it:

$server = 'CORE01'
$cred = Get-Credential "$server\Administrator"
Invoke-Command -ComputerName $server -Credential $cred -ScriptBlock { hostname }

Once the trust below is in place, this prints CORE01. In a workgroup, the first attempt fails.

Error: “The WinRM client cannot process the request … TrustedHosts”

With an empty TrustedHosts list, the command fails before it reaches the server. This is the exact text, and you get the same message whether you use the name or the IP address:

Connecting to remote server CORE01 failed with the following error message : The WinRM client cannot process the request. If the authentication scheme is different from Kerberos, or if the client computer is not joined to a domain, then HTTPS transport must be used or the destination machine must be added to the TrustedHosts configuration setting. Use winrm.cmd to configure TrustedHosts. Note that computers in the TrustedHosts list might not be authenticated. You can get more information about that by running the following command: winrm help config. For more information, see the about_Remote_Troubleshooting Help topic.

Add the server by name and by IP, since the client matches whichever string you type in -ComputerName. Set the list on the admin station, not on the Core box:

Set-Item WSMan:\localhost\Client\TrustedHosts -Value 'CORE01,192.168.1.133' -Force
Get-Item WSMan:\localhost\Client\TrustedHosts

The Value column should list both entries. Set-Item replaces the whole list, so add -Concatenate when you’re appending a second server to an existing one.

Run commands on Server Core with PowerShell remoting

With the trust in place, Invoke-Command runs a script block on the Core server and returns objects, not text. Confirm what you are actually talking to before you change anything:

Invoke-Command -ComputerName $server -Credential $cred -ScriptBlock {
  $cv = Get-ItemProperty 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion'
  [pscustomobject]@{ Computer = $env:COMPUTERNAME; ProductName = $cv.ProductName; InstallationType = $cv.InstallationType; Build = "$($cv.CurrentBuild).$($cv.UBR)"; DisplayVersion = $cv.DisplayVersion }
}

InstallationType is the field to check. It reads Server Core here, and Server on a Desktop Experience install:

Computer         : CORE01
ProductName      : Windows Server 2025 Datacenter Evaluation
InstallationType : Server Core
Build            : 26100.32230
DisplayVersion   : 24H2
PSComputerName   : CORE01
RunspaceId       : 8dd7cf40-7b6d-4303-9da9-5a43377d4b27

For interactive work, Enter-PSSession -ComputerName $server -Credential $cred drops you into a remote prompt that starts with [CORE01]: PS. Exit with exit. For anything you’ll repeat across servers, stay with Invoke-Command, because it takes a list of names and runs them in parallel.

A fresh Core install exposes very little. We read its defaults over that same session with Get-Service, the WSMan listener and Get-NetFirewallRule, and this table explains every failure in the next section:

Item on CORE01Default state
WinRM serviceRunning, Automatic
WinRM listenerHTTP, port 5985, address *
Network profilePublic (no domain, no profile set)
WINRM-HTTP-In-TCP-PUBLICEnabled, remote address LocalSubnet
sshd serviceInstalled, Stopped, Manual
OpenSSH Server ruleEnabled for the Private profile only
Remote Event Log, Service, Volume, Firewall ManagementAll rules disabled
File and Printer Sharing (17 rules), Remote DesktopAll rules disabled

WinRM also carries CIM, so the storage and networking cmdlets work remotely with no extra rules. A CIM session is the cheapest way to query several things in a row:

$s = New-CimSession -ComputerName $server -Credential $cred
Get-Disk -CimSession $s | Select-Object Number, FriendlyName, Size, PartitionStyle
Get-NetAdapter -CimSession $s | Select-Object Name, InterfaceDescription, Status, LinkSpeed

Both cmdlets return the Core server’s hardware, not the admin station’s, which proves the session is remote. Disk 1 is the Core system disk from the table above. Disks 0 and 2 are the other two lab disks on the same VM, which held the template OS and the Desktop Experience image used for the footprint test later:

Number FriendlyName              Size PartitionStyle
------ ------------              ---- --------------
     0 QEMU QEMU HARDDISK 68719476736 GPT
     1 QEMU QEMU HARDDISK 42949672960 GPT
     2 QEMU QEMU HARDDISK 42949672960 GPT

Name     InterfaceDescription            Status LinkSpeed
----     --------------------            ------ ---------
Ethernet Red Hat VirtIO Ethernet Adapter Up     10 Gbps

Close the session with Remove-CimSession $s when you’re done, or keep it open for the rest of the work.

Open the Server Core firewall for remote management snap-ins

Event Viewer, Services, Disk Management and the firewall console do not use WinRM. They talk DCOM and RPC, which a fresh Core server blocks, so anything built on them fails until you enable the matching rule groups. The quickest way to see it is a remote event log query with the old RPC-based parameter set:

Get-WinEvent -ComputerName $server -Credential $cred -LogName System -MaxEvents 3

On a fresh Core server it fails straight away.

Error: “The RPC server is unavailable”

That query returned only The RPC server is unavailable, even though PowerShell remoting to the same box worked a minute earlier. The message reads like the server is down, but it’s the firewall dropping RPC. Microsoft’s Manage a Server Core server page maps each snap-in to the rule group it needs:

Snap-inFirewall rule group
Event ViewerRemote Event Log Management
ServicesRemote Service Management
Shared FoldersFile and Printer Sharing
Task SchedulerPerformance Logs and Alerts, File and Printer Sharing
Disk ManagementRemote Volume Management (and the vds service)
Windows Defender Firewall with Advanced SecurityWindows Defender Firewall Remote Management

Enable only the groups for the snap-ins you’ll actually use. Run this over the remoting session you already have, so you never need the Core console:

Invoke-Command -ComputerName $server -Credential $cred -ScriptBlock {
  Enable-NetFirewallRule -DisplayGroup 'Remote Event Log Management', 'Remote Service Management', 'Windows Defender Firewall Remote Management', 'Remote Volume Management', 'File and Printer Sharing'
  Set-Service vds -StartupType Automatic
  Start-Service vds
}

The five groups switched on in 2.7 seconds. The vds lines are for Disk Management, which Microsoft says needs Virtual Disk Service running on the Core server. Its page also says the Remote Volume Management rules must be enabled on the computer running the snap-in, so run Enable-NetFirewallRule -DisplayGroup 'Remote Volume Management' on MGMT01 too if you plan to use it. We tested the Services snap-in, not Disk Management.

Now look at what you just opened. Every one of those rules applies to all profiles, Public included, and 20 of the 21 inbound rules accept any remote address. On a server sitting on a shared or flat network, that is SMB, RPC and the endpoint mapper open to everyone. Pin them to your admin station:

Invoke-Command -ComputerName $server -Credential $cred -ScriptBlock {
  $groups = 'Remote Event Log Management', 'Remote Service Management', 'Windows Defender Firewall Remote Management', 'Remote Volume Management', 'File and Printer Sharing'
  Get-NetFirewallRule -DisplayGroup $groups -Direction Inbound | Set-NetFirewallRule -RemoteAddress 192.168.1.129
  Get-NetFirewallRule -DisplayGroup $groups -Direction Inbound -Enabled True | Get-NetFirewallAddressFilter | Group-Object RemoteAddress | Select-Object Count, Name
}

All 21 inbound rules now accept a single source. Swap 192.168.1.129 for your own admin station’s address, or use a subnet such as 192.168.1.0/24 if you administer from several machines. The scope is IPv4 only, and the event log query still worked after scoping, so the snap-ins reached CORE01 over IPv4 here. If your admin box reaches the server over IPv6 (the mDNS answer earlier was link-local IPv6), add that address to -RemoteAddress as well. The same -RemoteAddress scoping works for any rule, as shown in our guide to opening ports in Windows Server Firewall:

Count Name
----- ----
   21 192.168.1.129

Rerun the Get-WinEvent query and it returns the three newest System events, the first one from Virtual Disk Service starting. The GUI snap-ins need one more step in a workgroup, because they don’t take a credential parameter. Store the Core server’s credential for your Windows session with cmdkey, taking the password from the $cred object you already have, then point the snap-in at the remote name:

cmdkey /add:CORE01 /user:CORE01\Administrator /pass:$($cred.GetNetworkCredential().Password)
services.msc /computer=CORE01

cmdkey prints “CMDKEY: Credential added successfully.” If the password contains spaces or double quotes, Windows PowerShell can mangle it on the way to cmdkey, so run cmdkey without /pass in that case and let it prompt. The Services console then opens with Services (CORE01) at the top of the tree, listing the Core server’s services:

Services snap-in on a Windows Server 2025 Desktop Experience admin station connected to Server Core host CORE01

The same pattern works for eventvwr.msc /computer=CORE01 and compmgmt.msc /computer=CORE01. On Desktop Experience, Server Manager opens at every logon with a “Try Windows Admin Center and Azure Arc today” pop-up, and it will sit on top of the snap-in you just launched, so close it first.

Add Server Core to Windows Admin Center

Windows Admin Center gives you a browser console for the Core server, and the gateway reaches managed servers over WinRM. (In our lab the RPC groups above were already open when WAC connected, so we did not test it without them.) Install it on the admin station, not on the Core box, so one gateway serves every server you add. Our Windows Admin Center setup guide walks through the interactive installer. The silent route from Microsoft’s install docs is shorter:

New-Item -ItemType Directory -Path C:\lab -Force
$ProgressPreference = 'SilentlyContinue'
Invoke-WebRequest -Uri https://aka.ms/WACdownload -OutFile C:\lab\WindowsAdminCenter.exe -UseBasicParsing
Start-Process -FilePath C:\lab\WindowsAdminCenter.exe -ArgumentList '/VERYSILENT /LOG=C:\lab\wac-install.log' -Wait
Start-Service WindowsAdminCenter

Turning off the progress bar matters in Windows PowerShell 5.1, where it slows large downloads badly. The download was 140 MB (installer version 2.7.6.22, which the web UI reports as release 2606), and the silent install took about five and a half minutes on 4 vCPU. When it finished, the WindowsAdminCenter service was installed but stopped, which is why the last line is there. Check that it’s listening on 443 before you open a browser:

Get-NetTCPConnection -State Listen -LocalPort 443

Check TrustedHosts again now. The express install ran Set-WACWinRmTrustedHosts -ExitWithErrorCode -TrustAll (it is in the install log), and on MGMT01 the list read * afterwards, so the admin station will send credentials to any host name it’s given. In a workgroup the gateway does need every managed server in that list, so if you would rather not trust everything, replace * with your server names using the Set-Item command from earlier:

Get-Item WSMan:\localhost\Client\TrustedHosts

Browse to https://MGMT01 from any machine that can reach it. The installer generated a self-signed certificate for the FQDN MGMT01, so expect a certificate warning until you replace it with a trusted one. Microsoft’s install docs say that generated certificate is only valid for 60 days, so put a real certificate on the gateway before then. The sign-in page takes a local or domain account, and in a workgroup plain Administrator works. On the All connections page, the Add button is a menu, not a button, which is easy to miss:

Windows Admin Center 2606 All connections page with the Add menu open on Add manually
  1. 1Add
  2. 2Add manually
  1. Click Add to open the menu.
  2. Pick Add manually, then the Add link under Servers.

The Servers panel opens on the Add one tab. Type the Core server’s name and wait a few seconds while the gateway looks it up:

Windows Admin Center Add one tab with CORE01 as the Server name, Found CORE01 and the Add button
  1. 1Server name
  2. 2Found 'CORE01'
  3. 3Add
  1. Enter CORE01 in Server name.
  2. Wait for Found ‘CORE01’, which confirms the gateway reached it.
  3. Click Add.

Click CORE01 in the connection list to open its Overview. WAC didn’t ask us for credentials, and that’s only because MGMT01 and CORE01 share the same local Administrator password, so the gateway’s sign-in passed straight through. With different passwords, select the server and use Manage as to give it CORE01\Administrator. The Overview then fills in from the Core server:

Windows Admin Center Overview of Windows Server 2025 Server Core host CORE01 in a workgroup

The domain field reads “WORKGROUP (Workgroup computer)”, 27.44 GB of the 39.71 GB disk is free, and nobody is logged on at the console. From the tools list you get Events, Services, Firewall, Files, Storage, Roles and features, Updates and a PowerShell console, which covers most of what people miss about Server Manager on a Core box.

Enable SSH on Server Core

Windows Server 2025 ships OpenSSH Server already installed, which makes SSH a reasonable second path into Core, especially from Linux admin machines. The service is stopped and set to Manual, though, and the firewall rule has a trap. It is enabled, but only for the Private profile. A workgroup server on an unidentified network sits in Public, so port 22 stays closed even after sshd starts. We confirmed that with a TCP test that timed out. Fix both over remoting:

Invoke-Command -ComputerName $server -Credential $cred -ScriptBlock {
  Set-Service sshd -StartupType Automatic
  Start-Service sshd
  Set-NetFirewallRule -Name OpenSSH-Server-In-TCP -Profile Any -RemoteAddress 192.168.1.129
}
ssh Administrator@CORE01

After the profile change, port 22 answered, and a batch-mode probe from the admin station’s built-in client (OpenSSH_for_Windows_9.5p2) got Administrator@core01: Permission denied (publickey,password,keyboard-interactive). That’s sshd offering its login methods, so the network path is open. An interactive ssh asks for the password at that point. Key-based logins, the administrators_authorized_keys file and setting PowerShell as the default shell are covered in our OpenSSH Server on Windows Server 2025 guide.

Compare Server Core and Desktop Experience footprint

Microsoft’s hardware requirements page says Core needs about 4 GB less disk than Desktop Experience, and that’s about all it commits to. To get real numbers, we applied index 3 (Datacenter Evaluation, Server Core) and index 4 (Datacenter Evaluation, Desktop Experience) from the same Windows Server 2025 ISO onto two identical 40 GB disks. Then we booted the same 2 vCPU, 4 GB VM from each. Both report build 26100.32230, so patch level does not skew the result. Each was restarted, left idle at the logon screen for 10 minutes, and measured remotely with the same script:

$os = Get-CimInstance Win32_OperatingSystem
$c = Get-Volume -DriveLetter C
[pscustomobject]@{
  DiskUsedGB        = [math]::Round(($c.Size - $c.SizeRemaining)/1GB,2)
  RamInUseMB        = [math]::Round(($os.TotalVisibleMemorySize - $os.FreePhysicalMemory)/1KB,0)
  CommittedMB       = [math]::Round((Get-Counter '\Memory\Committed Bytes').CounterSamples[0].CookedValue/1MB,0)
  Processes         = (Get-Process).Count
  RunningServices   = (Get-Service | Where-Object Status -eq 'Running').Count
  InstalledFeatures = (Get-WindowsFeature | Where-Object Installed).Count
  FirewallRules     = (Get-NetFirewallRule).Count
}

Save it as footprint.ps1 on the admin station and run it against each server with Invoke-Command -ComputerName $server -Credential $cred -FilePath .\footprint.ps1, after adding the second server to TrustedHosts with -Concatenate. These are the results side by side:

MeasuredServer CoreDesktop ExperienceDifference
Disk used right after DISM apply7.27 GB13.91 GB6.64 GB less
DISM apply time (same disk, same VM)359 s665 s46% less time
Disk used at 10 minutes idle (C:)12.46 GB16.48 GB4.02 GB less
RAM in use, idle at logon1,094 MB1,290 MB196 MB less
Committed memory1,097 MB1,226 MB129 MB less
Processes688618 fewer
Running services477124 fewer
Installed roles and features11143 fewer
Firewall rules defined183306123 fewer
Restart until a remote session answers18 s29 s11 s sooner

Disk is where Core pays off most, and the number matches Microsoft’s claim almost exactly: 4.02 GB less on C: after first boot. The gap was 6.64 GB right after the image was applied, then narrowed because Core grew 5.19 GB on its first boot against 2.57 GB for Desktop Experience. Both disks hold the same 1.38 GB page file, so that is not the cause. On a single server, 4 GB is nothing. On a Hyper-V host carrying 30 Windows guests, it’s 120 GB of thin-provisioned storage you never have to back up.

Memory is the smaller win than most comparisons suggest. With nobody logged on, Desktop Experience used only 196 MB more RAM, about 18% above Core, because Explorer and Server Manager don’t start until someone signs in at the console. The bigger difference is attack surface you can count: 24 fewer running services, 18 fewer processes and 123 fewer firewall rules defined. Each of those is code that has to be patched and monitored, and a line an auditor can ask you to justify. The restart figure, 18 seconds against 29, is the time from Restart-Computer until a new remoting session answers, which is the number that matters during a maintenance window. Treat it as a single run per image: both figures are from the second restart after setup, and Desktop Experience took 59 seconds on its first.

When Desktop Experience is still the right call

Core is the default answer for any role that has a remote console: Hyper-V, file servers, DNS, DHCP, domain controllers and IIS. Once WinRM, the scoped snap-in rules and Windows Admin Center are in place, you rarely need the local console at all, and you’ve already seen that the remote tools reach everything a Desktop Experience admin would click through. Microsoft points the same way, since its installation options page recommends Server Core unless you have a reason not to.

Pick Desktop Experience for the machines people actually sit at, and for software that will not run without the full shell:

  • Remote Desktop Session Hosts that users log on to
  • Vendor applications whose installers need Explorer or the GUI
  • Your admin station or jump box, like MGMT01 here

Decide before you install, because the choice is permanent. Windows Server 2025 cannot convert between Server Core and Desktop Experience after setup, so a wrong pick means a clean reinstall. If a single tool is all that’s missing on Core, try the Server Core App Compatibility Feature on Demand first, which adds MMC, Event Viewer, Explorer and Disk Management to Core without the rest of the desktop.

Keep reading

Create a Bootable Windows 11 USB and Install Windows 11 Windows Create a Bootable Windows 11 USB and Install Windows 11 Set Up a Samba Share on Windows 11 and Access It from Linux Networking Set Up a Samba Share on Windows 11 and Access It from Linux Create Disk Partitions in Windows Using diskpart Windows Create Disk Partitions in Windows Using diskpart CompTIA A+ Practice Questions for 220-1201 and 220-1202 Networking CompTIA A+ Practice Questions for 220-1201 and 220-1202 Windows Event IDs Cheat Sheet: Security and System Logs (PDF) Cheat Sheets Windows Event IDs Cheat Sheet: Security and System Logs (PDF) Best Books To Learn PowerShell Scripting in 2023 Automation Best Books To Learn PowerShell Scripting in 2023

Leave a Comment

Press ESC to close