WinCC Service Mode Fails on Domain Controller: Root Cause and Fix

David Krause12 min read
SiemensTroubleshootingWinCC
Licensed PE Working through this on a live machine? A Maine-licensed engineer can take it from here — included with IMD hardware, by the hour for everything else. Book an engineer

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.

Engineering rule: Never install TIA Portal, WinCC Runtime, or WinCC Engineering on a Windows Server that holds the FSMO role of Domain Controller. Demote the host to a member server, or move the DC role to a separate physical/virtual machine before installing WinCC.

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_.log) 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:

  1. WinCC Configuration Studio writes the credential pair to HKLM\SOFTWARE\Wow6432Node\Siemens\WinCCRT\ServiceMode via the CCConfigStudio.exe process.
  2. SCM opens a service-principal handle and validates the supplied domain account against Active Directory using LogonUser.
  3. On a Domain Controller, the SeServiceLogonRight policy is applied through the Default Domain Controllers Policy, which removes the user right from regular user accounts and re-assigns it to the built-in Domain Admins and Authenticated Users groups in a way that conflicts with the SCM API WinCC uses.
  4. Because CCConfigStudio.exe cannot 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.

The same restriction applies if the host holds the 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.

  1. Open cmd as Administrator and run netdom query fsmo to confirm whether the host currently owns any FSMO role. If the output is non-empty, the host is a DC.
  2. Run dsregcmd /status on Windows Server 2016+ to confirm the DomainRole line reports BackUp or Primary.
  3. Check Control Panel > Programs > Programs and Features for 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.
  4. Confirm the AD account wincc-server is created in Active Directory Users and Computers, the password is set to Never Expire, and the account is a member of the Simatic HMI local group on the target member server (the group is created automatically by the WinCC installer).
  5. 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> reports STATUS_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)

  1. Open the WinCC project in the TIA Portal and compile it.
  2. From the project tree, right-click the RT Professional device and choose Load preview > Load to target system.
  3. In the Load preview dialog, check Enable service mode.
  4. Enter DOMAIN\wincc-server in the User field and the corresponding password in the Password field.
  5. 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:

  1. Open the WinCC Explorer on the WinCC Server.
  2. Right-click the project node and choose Properties.
  3. Switch to the Operating mode tab.
  4. Select the Start as service check box.
  5. Enter the logon data in the Operating mode area (user: DOMAIN\wincc-server, password, password confirmation).
  6. Click Apply and confirm with OK.
  7. 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
If the WinCC server also runs the WinCC WebNavigator or WebUX, create explicit SPNs with 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:

  1. Stop the WinCC services: net stop "SIMATIC WinCC RT Professional" and net stop "CCDataMgr".
  2. Back up the WinCC project folder, the WinCC_DB SQL databases, and the registry hive HKLM\SOFTWARE\Wow6432Node\Siemens to a network share.
  3. 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.
  4. After reboot, re-join the host to the domain if it was dis-joined automatically, and add DOMAIN\wincc-server to the local Simatic HMI group with net localgroup "Simatic HMI" /add DOMAIN\wincc-server.
  5. Restore the registry backup and re-launch WinCC Explorer. Re-enter the service-mode credentials as in Section 6.
  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.

  1. Open services.msc and confirm SIMATIC WinCC RT Professional and CCDataMgr show Running with Log On As = DOMAIN\wincc-server.
  2. 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.
  3. 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.
  4. Trigger a tag change in the PLC and confirm it is archived in WinCC_DB.dbo.MSG_archive within the configured acquisition cycle.
  5. 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:

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.

Back to blog