WinCC Service Mode Fails on Domain Controller: Root Cause and Fix
When deploying a WinCC V15 (or current TIA Portal V20) Runtime Professional client/server configuration, engineers frequently attempt to host the WinCC Server on a Windows Server 2012 R2 host that simultaneously acts as an Active Directory Domain Controller. The WinCC configuration tool appears to accept a service-mode logon of the form DOMAIN\wincc-server, but on the next dialog the checkbox clears itself or the dialog reports "password or user account is wrong," even when the account exists, is unlocked, and is a member of the local Simatic HMI group.
The root cause is not a credential, a group-policy, or a service-pack issue. Siemens does not release any version of TIA Portal (including V15, V15.1, V16, V17, V18, V19, or V20) for installation on a Microsoft Active Directory Domain Controller. The Service Mode logon fails because the operating-system role is unsupported, regardless of whether the supplied credentials are valid.
1. Affected Products, Versions, and Operating Systems
The unsupported-Domain-Controller rule applies across the following product matrix as published in the Siemens TIA Portal installation notes and the WinCC Runtime Professional system manuals:
| Product | Version / Catalog No. | Released Windows Server Editions | Released on DC? |
|---|---|---|---|
| WinCC Runtime Professional V15 | 6AV2105-xxxxx (TIA V15) | Windows Server 2012 R2 / 2016 (Standard, Datacenter) | No |
| WinCC Runtime Professional V15.1 | 6AV2106-xxxxx (TIA V15.1) | Windows Server 2012 R2 / 2016 / 2019 | No |
| WinCC Runtime Professional V16 | 6AV211x-xxxxx (TIA V16) | Windows Server 2016 / 2019 | No |
| WinCC Runtime Professional V17 | 6AV212x-xxxxx (TIA V17) | Windows Server 2019 / 2022 | No |
| WinCC Runtime Professional V18 / V19 / V20 | 6AV213x / 6AV214x (current) | Windows Server 2019 / 2022 | No |
| WinCC Comfort / Advanced | 6AV2xxx-xAxx0 | Windows 10 / 11 (panel-side) | No |
Both single-station and distributed (client/server) configurations inherit the restriction. The Domain Controller limitation is independent of WinCC being used as a client, server, or redundant pair.
2. Symptom Matrix: How the Failure Presents
Although the underlying cause is the same, the WinCC Configuration Studio / WinCC Explorer surfaces the problem in three different ways depending on the OS build, the UAC setting, and the cumulative update level. Use the table below to triage quickly in the field.
| Symptom | Where it Appears | Underlying Cause |
|---|---|---|
| "Enable service mode" checkbox clears itself immediately after Apply | RT Professional Load Preview dialog | Service-mode credential store rejects logon because WinCC installer does not register required DCOM and SCM hooks on a DC |
"Wrong user name or password" error after entering valid DOMAIN\user
|
RT Professional Load Preview dialog | DC security descriptor blocks the SCM call that verifies the user token; the dialog cannot confirm the credential |
| WinCC service starts, then stops with Event ID 7034 / 7000 | services.msc, Windows Event Viewer | Logon session has insufficient privileges; LSASS denies the cross-forest trust to a service principal name (SPN) hosted on a DC |
| WinCC service starts but clients get "Server not found" after reboot | Client RT log (WinCC_Sys_ |
ADS / NetBIOS broadcast blocked by DC's hardened firewall profile; combined with broken secure channel |
| Event ID 13568 / 1645 from WinCCRT in Event Viewer | Application log | SPN missing or duplicated; on a DC the SPN registration path differs and WinCC cannot register correctly |
3. Why Service Mode Fails on a Domain Controller
WinCC Runtime Professional uses the Windows Service Control Manager (SCM) to launch its data-manager, redundancy-sync, SQL-Express (WinCC_DB) and web-navigator services under a non-interactive logon. The SCM call chain is:
- WinCC Configuration Studio writes the credential pair to
HKLM\SOFTWARE\Wow6432Node\Siemens\WinCCRT\ServiceModevia theCCConfigStudio.exeprocess. - SCM opens a service-principal handle and validates the supplied domain account against Active Directory using
LogonUser. - On a Domain Controller, the
SeServiceLogonRightpolicy is applied through the Default Domain Controllers Policy, which removes the user right from regular user accounts and re-assigns it to the built-inDomain AdminsandAuthenticated Usersgroups in a way that conflicts with the SCM API WinCC uses. - Because
CCConfigStudio.execannot confirm the right, it either silently clears the checkbox or returns a generic "wrong user / password" error string.
In addition, the installer's prerequisite check (Siemens.TIA.SetupPrerequisiteCheck.dll) explicitly probes for the registry value HKLM\SYSTEM\CurrentControlSet\Services\NTDS\Parameters. If the value Install From Media is present (which it is on every DC) the install either aborts or installs without registering the WinCC service hooks, leaving the operator to discover the failure post-install.
RODC (Read-Only Domain Controller) role. A server must be a member server joined to the domain, not a DC of any kind, for WinCC to install and start cleanly.4. Pre-Flight Checklist Before Redeploying
Before changing the production topology, verify the following items on the affected host. Capture screenshots of each so they can be attached to the change-management ticket.
- Open
cmdas Administrator and runnetdom query fsmoto confirm whether the host currently owns any FSMO role. If the output is non-empty, the host is a DC. - Run
dsregcmd /statuson Windows Server 2016+ to confirm the DomainRole line reportsBackUporPrimary. - Check
Control Panel > Programs > Programs and Featuresfor any TIA Portal or WinCC entries that are already installed on the DC. These must be removed with the Siemens uninstaller (Start > Siemens Automation > Uninstall) before demotion. - Confirm the AD account
wincc-serveris created in Active Directory Users and Computers, the password is set to Never Expire, and the account is a member of theSimatic HMIlocal group on the target member server (the group is created automatically by the WinCC installer). - Verify the secure channel between any existing DCs and the new member server is healthy. Use the procedure from the Microsoft knowledge base for repairing a broken secure channel if
nltest /sc_query:<domain>reportsSTATUS_TRUSTED_DOMAIN_FAILURE.
5. Workaround Architecture: Split the Roles
The supported way to deliver the same logical architecture (WinCC clients → WinCC server → SQL backend) is to keep the DC and the WinCC Server on different physical or virtual machines. The minimum topology that satisfies the Siemens release is:
| Host | OS | Role | Services Hosted |
|---|---|---|---|
| DC01 | Windows Server 2019 / 2022 | Domain Controller (FSMO holder) | AD DS, DNS, DHCP (optional) |
| WCCSVR01 | Windows Server 2019 / 2022 | Member Server joined to domain | WinCC RT Professional Server, WinCC_DB (SQL Server 2017/2019 Express), WebNavigator |
| WCCCLT01 / 02 | Windows 10 / 11 Pro or Enterprise | Domain-joined workstation | WinCC RT Professional Client |
The account DOMAIN\wincc-server then lives in the regular user container of AD, is added to the local Simatic HMI group on WCCSVR01, and is granted the Log on as a service right through the default domain policy (no special handling required).
6. Configuring Service Mode on a Member Server (TIA V15 / V20)
Once the WinCC Server is running on a member server, the service-mode configuration follows the standard Siemens procedure. The exact dialog path differs slightly between TIA V15 and the current TIA V20 cloud documentation; both flows are reproduced below.
6.1 TIA Portal V15 / V15.1 (WinCC RT Professional)
- Open the WinCC project in the TIA Portal and compile it.
- From the project tree, right-click the RT Professional device and choose Load preview > Load to target system.
- In the Load preview dialog, check Enable service mode.
- Enter
DOMAIN\wincc-serverin the User field and the corresponding password in the Password field. - Click Apply and then Load. The runtime starts in service mode and persists across reboots.
6.2 TIA Portal V20 (WinCC RT Professional)
Per the Siemens TIA Portal V20 cloud manual — Configuring service mode (RT Professional), the path is:
- Open the WinCC Explorer on the WinCC Server.
- Right-click the project node and choose Properties.
- Switch to the Operating mode tab.
- Select the Start as service check box.
- Enter the logon data in the Operating mode area (user:
DOMAIN\wincc-server, password, password confirmation). - Click Apply and confirm with OK.
- Restart the WinCC data-manager service (
CCDataMgr.exe) to apply the change immediately without a full OS reboot.
The credential pair is written to HKLM\SOFTWARE\Wow6432Node\Siemens\Automation\WinCCRT\Runtime\ServiceMode and is also reflected in the SIMATIC WinCC RT Professional service Log On tab.
7. AD Account Requirements for the WinCC Service Logon
The following attributes must be set on the wincc-server AD user object. They are not optional; omitting any one of them causes the same credential error seen on the DC host.
| Attribute / Setting | Required Value | How to Verify |
|---|---|---|
| User logon name |
wincc-server (pre-Windows 2000: wincc-server) |
ADUC > Account tab |
| User logon name (pre-Windows 2000) | wincc-server |
ADUC > Account tab |
| Password | Set, never expire flagged, User cannot change password flagged | ADUC > Account tab |
| Account expires | Never | ADUC > Account tab |
| Group membership | Domain Users, Simatic HMI (local on the WinCC host) |
gpresult /r and net localgroup "Simatic HMI"
|
| Delegation | Trust this user for delegation to any service (Kerberos only) — only required if the WinCC server hosts a redundant partner | ADUC > Delegation tab |
| SPN |
HOST/WCCSVR01 and HOST/WCCSVR01.<domain> auto-registered; MSOMSADC for OPC if used |
setspn -L wincc-server |
| SeServiceLogonRight | Granted via Default Domain Policy or a dedicated GPO linked to the WinCC Servers OU |
gpresult /h gpreport.html → User Rights Assignment
|
setspn -S HTTP/WCCSVR01.<domain> DOMAIN\wincc-server to avoid Kerberos AP_REQ failures from the IIS application pool.8. Optional: Promoting the Member Server Without Re-installing WinCC
If the project is already live, the lowest-risk migration path is:
- Stop the WinCC services:
net stop "SIMATIC WinCC RT Professional"andnet stop "CCDataMgr". - Back up the WinCC project folder, the WinCC_DB SQL databases, and the registry hive
HKLM\SOFTWARE\Wow6432Node\Siemensto a network share. - Open Server Manager > Manage > Remove Roles and Features and remove the Active Directory Domain Services role. The host demotes automatically to a member server and reboots.
- After reboot, re-join the host to the domain if it was dis-joined automatically, and add
DOMAIN\wincc-serverto the localSimatic HMIgroup withnet localgroup "Simatic HMI" /add DOMAIN\wincc-server. - Restore the registry backup and re-launch WinCC Explorer. Re-enter the service-mode credentials as in Section 6.
- Start the WinCC services and confirm a client logon.
If the host must remain a DC (for example, in a small single-server pilot), the only other option is to install WinCC on a separate member server and use the Siemens support entry 78346833 — Installation and operation of WinCC in a Microsoft domain environment as the reference architecture.
9. Verification Steps After Re-Configuration
Run the following checks in order. Any failure should be cleared before bringing the HMI screens back online for operators.
- Open services.msc and confirm SIMATIC WinCC RT Professional and CCDataMgr show Running with Log On As =
DOMAIN\wincc-server. - Open the Application event log and look for Event ID 100 from source WinCCRT stating "Runtime started in service mode." Absence of this event indicates the runtime is still in interactive mode.
- From a WinCC client, launch the client runtime. Connection should complete in < 5 s on a LAN and the client should reconnect automatically after a forced reboot of the server.
- Trigger a tag change in the PLC and confirm it is archived in WinCC_DB.dbo.MSG_archive within the configured acquisition cycle.
- Reboot the server and confirm the WinCC service starts before any operator is logged in to the console. This is the defining characteristic of a working service-mode deployment.
10. Common Pitfalls and How to Avoid Them
| Pitfall | Symptom | Fix |
|---|---|---|
| WinCC installed before the host was demoted from DC to member server | Service hooks missing, "Enable service mode" greyed out | Uninstall WinCC, demote, re-install |
| Account is a member of Protected Users | SCM rejects Kerberos delegation | Remove from Protected Users; Protected Users cannot use NTLM and blocks Kerberos DES, which WinCC uses for legacy OPC |
| Local Simatic HMI group recreated manually with wrong SID | Runtime starts but clients cannot browse tags | Uninstall WinCC, delete the manual group, re-install (the installer creates the group with the correct SID) |
| Server is a DC and DNS server in the same site | Intermittent tag timeouts during AD replication | Move WinCC to a member server; AD replication traffic on a DC consumes the SMB channel WinCC relies on |
| Windows firewall profile set to Domain (Public) because the host has two NICs | Event ID 13568 (SPN), clients get "Server not found" | Force Network Location = Domain via GPO, or disable the second NIC |
Anti-virus scanning CCDataMgr.exe
|
Runtime starts then stops after < 60 s | Add an exclusion for %ProgramFiles(x86)%\Siemens\Automation\WinCCRT\
|
11. Related Microsoft-Side Checks
If the WinCC service is now starting on a member server but still fails on reboot, the failure may be on the AD side, not on the WinCC side. The two Microsoft knowledge-base articles below cover the most common companion failures:
- ISMServ.exe does not start when a domain controller starts — relevant when the WinCC server boots at the same time as a DC and the Intersite Messaging service stalls, blocking replication-dependent logon.
-
Identify and repair a broken secure channel on an Active Directory domain controller — the procedure applies equally to member servers; run
nltest /sc_query:<domain>first to confirm the channel is healthy before troubleshooting WinCC.
12. Summary
WinCC Runtime Professional will not run as a Windows service on a host that is an Active Directory Domain Controller. The "wrong user name or password" error and the self-clearing Enable service mode checkbox are not credential problems; they are a direct consequence of an unsupported installation. The fix is to demote the host to a member server (preferred) or to move the WinCC Server role to a separate, domain-joined member server. Once the host is a non-DC member server, the standard TIA V15/V20 service-mode configuration completes in under five minutes and the runtime starts cleanly across reboots.
Can WinCC Runtime Professional be installed on a Windows Server Domain Controller?
No. Siemens explicitly does not release any version of TIA Portal (V15, V15.1, V16, V17, V18, V19, or V20) for installation on a host that holds the Active Directory Domain Controller role, including Read-Only Domain Controllers. Demote the host to a member server before installing.
Why does the "Enable service mode" checkbox clear itself or report a wrong password on a DC?
The WinCC Configuration Studio cannot validate the service-mode credential pair against the Domain Controllers policy because the SeServiceLogonRight on a DC is applied through the Default Domain Controllers Policy, which blocks the SCM API call. The error is generic and does not indicate a real credential problem.
What is the minimum supported architecture for a WinCC V15 client/server system with Active Directory?
One Domain Controller (FSMO holder), one Windows Server 2019/2022 member server hosting the WinCC Runtime Professional Server and SQL Server Express, and Windows 10/11 Pro or Enterprise domain-joined clients running the WinCC client. The AD account wincc-server must be a regular user, member of the local Simatic HMI group, with Password never expires set.
Does the same restriction apply to WinCC Comfort or Advanced panels?
Yes. WinCC Comfort/Advanced and the corresponding TIA Portal engineering are not released for installation on a Domain Controller. Panel-side HMI is normally hosted on Windows 10/11 Pro or Enterprise, which is never a DC.
How do I verify service mode is working after the move?
Open services.msc on the WinCC server and confirm SIMATIC WinCC RT Professional and CCDataMgr are Running with Log On As set to DOMAIN\wincc-server. Reboot the server and confirm both services start before any user is logged in to the console — this is the definitive test of service mode.