WinCC Unified PC Runtime: Disabling the Login Dialog with Automatic Login
On a SIMATIC WinCC Unified PC Runtime station, the runtime browser opens a credential dialog every time the project starts. Operators must select a username, enter a password, and confirm before the operating screen becomes visible. For operator-facing panels such as vision-system program selectors, packaging-line overview screens, or kiosk-style dashboards, this dialog is unacceptable: the screen must be visible immediately, without operator interaction.
This reference documents the exact configuration path to suppress the WinCC Unified PC Runtime login screen by activating Automatic Login in the SIMATIC Runtime Manager, combined with the required user-administration setup in the TIA Portal engineering system. The procedure targets TIA Portal V20 and WinCC Unified V20 Runtime, but the structure applies to V17/V18/V19 with minor path differences.
1. Problem Description
Symptom observed on the desktop PC running SIMATIC WinCC Unified PC Runtime:
- Browser launches the project URL (default
https://<localhost-or-ip>/orhttps://<host>:443). - The "User Login" dialog appears immediately, covering the intended start screen.
- No user or password was configured in the TIA Portal project user administration.
- The dialog cannot be dismissed permanently; closing it leaves the start screen blank or returns to it on the next reload.
- Touch panels and operator stations are blocked until credentials are entered.
This is a default behavior of WinCC Unified, not a defect. The runtime enforces user-based authorization for every protected screen, function, and tag operation. When the runtime detects that the current connection is unauthenticated, the login dialog is invoked automatically the first time a protected operation is requested.
2. Root Cause Analysis
The login dialog in WinCC Unified is rendered by the runtime when the active session has no authenticated user. There are three independent triggers:
- No automatic login is configured. The Runtime Manager > Automatic Login setting is disabled (default) or unset, so the runtime expects an interactive sign-in.
- No user account exists in the project. The TIA Portal user administration is empty. WinCC Unified requires at least one user to be present in the runtime database to perform any automatic login.
- The user management was skipped during download. The default download option "Skip user administration when downloading to the target device" is enabled, so even a configured user is not transferred to the runtime.
When all three conditions occur together, WinCC Unified uses an internal placeholder identity. Depending on the firmware version this may be a special hard-coded fallback user with limited rights, or the dialog may still appear because no role assignment can be resolved.
3. Prerequisites
Before changing configuration, verify the following:
| Item | Requirement |
|---|---|
| Engineering system | TIA Portal V20 (or V17/V18/V19 with the equivalent menu paths) |
| Runtime | SIMATIC WinCC Unified V20 PC Runtime installed on the target PC |
| Runtime Manager | Accessible on the runtime PC (start menu: Siemens Automation > Runtime Manager) |
| Project state | Project compiles without errors and runs locally in the PLCSIM or on the connected Unified Comfort Panel for sanity check |
| Admin rights | Local administrator on the runtime PC to modify Runtime Manager settings and Windows services |
| Network | Ethernet between engineering PC and runtime PC (HTTPS port 443 reachable) |
| Browser | Chrome, Edge, or Firefox with JavaScript enabled; runtime self-signed certificate accepted |
4. Configuring Automatic Login
Two coordinated changes are required: a user in the TIA Portal project, and the Automatic Login flag in the Runtime Manager on the PC. Both must be transferred to the runtime.
4.1 Create the runtime user in TIA Portal
- Open the project in TIA Portal V20.
- In the project tree, expand the WinCC Unified device (the PC station or the Unified Comfort Panel).
- Open "Security settings > Users and roles".
- In the user table, click "Add new user".
- Enter a username (e.g.,
Operator), a password meeting the runtime password policy (default: minimum 8 characters, at least one uppercase, one lowercase, one digit, one special character), and a comment. - Assign the user to a role. For an unrestricted kiosk-style start screen, the predefined HMI Administrator role is the simplest. For limited visibility, create a custom role with the needed screen permissions.
- Confirm with OK.
4.2 Enable Automatic Login in Runtime Manager
Open the Runtime Manager on the runtime PC. The setting lives under the configuration of the running project:
- Launch SIMATIC Runtime Manager.
- Select the project entry in the list.
- Open the project settings (gear icon or context menu > Settings).
- Navigate to "Automatic Login" (German: Automatische Anmeldung).
- Tick the checkbox "Enable Automatic Login".
- Enter the username and password exactly as defined in TIA Portal.
- Apply with OK.
The official Siemens documentation for this step is published at Activating Automatic Login (Runtime Unified) - TIA Portal Help V20. The same path applies for V17/V18/V19.
4.3 Download the project with user administration
When downloading the project to the PC station, the default download dialog contains a critical checkbox:
- "Skip download of user administration to target device" — this is enabled by default.
If the checkbox is left enabled, no users are transferred, and Automatic Login cannot find a matching account. The runtime either falls back to an internal system user (with restricted rights) or opens the login dialog. To force the transfer:
- In TIA Portal, select the PC station in the project tree.
- Right-click > "Download to > PC station".
- In the download dialog, click "Options" or expand the advanced section.
- Uncheck "Skip user administration when downloading".
- Continue the download.
Additionally, when the download starts you may be prompted about resetting the runtime to start values. Accept this prompt ("Reset to start values") so the new user database replaces the previous one. Skipping the reset keeps the old user table in the runtime even though the project changed.
5. Verification
After download, verify the Automatic Login chain end-to-end:
- On the runtime PC, stop and restart the SIMATIC Runtime Manager service (or the specific WinCC Unified Runtime service) so the new configuration is read.
- Launch the runtime project from Runtime Manager.
- Open the project URL in the browser (typically
https://localhostor the published URL). - The login dialog must not appear; the configured start screen is rendered directly.
- Open the Runtime Manager log (Diagnostics > Log) and confirm an entry such as "Automatic login as user 'Operator' succeeded".
Optional sanity checks:
- Temporarily break the password in Runtime Manager and reload the page: the login dialog should reappear with an authentication error, confirming the Automatic Login is the gatekeeper.
- Open a system diagnostic screen and inspect the system tag
@UserName. It should report the configured automatic-login user, not an empty string or system placeholder.
6. Troubleshooting Matrix
| Observed Symptom | Likely Cause | Corrective Action |
|---|---|---|
| Login dialog still appears, "Invalid user" warning | Username/password mismatch between TIA Portal and Runtime Manager | Re-enter credentials; case-sensitive, no leading/trailing spaces |
| Login dialog appears, no error message | User administration skipped during download | Re-download and uncheck "Skip user administration" |
| Login dialog appears only on first reload, then OK | Automatic Login enabled but user lacks role permissions for the start screen | Assign a role containing all start-screen authorizations |
| Dialog never appears, screen is blank/white | Start screen visibility restricted; user has wrong role | Add screen authorization for the user role |
| Runtime Manager log shows "No automatic login configured" | Automatic Login checkbox not ticked, or Runtime Manager not restarted | Tick the box, save, restart Runtime Manager service |
| Runtime Manager log shows "User database empty" | User administration not downloaded | Re-download with "Reset to start values" and without skipping user data |
| Automatic Login works locally but not on remote browser | Cross-site cookie restrictions; HTTPS certificate untrusted | Trust the runtime certificate; allow first-party cookies for the runtime URL |
| Dialog reappears after firmware/runtime update | Update reset runtime configuration | Re-enter Automatic Login credentials after update |
7. Programmatic Control with ShowLoginDialog
WinCC Unified exposes the system function "ShowLoginDialog" on screens and in scripts. This function forces the login dialog to appear on top of the current screen, independent of the Automatic Login configuration. It is useful for explicit logout, role escalation, or credential refresh flows.
From the TIA Portal help at Configuring the display of the login dialog (RT Unified) - TIA Portal Help V20:
The login dialog is a pop-up window displayed in Runtime via the "ShowLoginDialog" system function. The dialog lets a user enter the login name and password for a new session. Once the user confirms, the session is updated with the new identity.
Typical usage:
- On a "Logout" button:
ShowLoginDialogis called with no parameters to prompt re-login. - On a "Switch user" button:
ShowLoginDialogfollowed byLogoffre-authenticates a new identity. - On start screen without Automatic Login: removing all
ShowLoginDialogcalls in screen events suppresses manual triggers but does not remove the implicit authentication requirement; Automatic Login must still be configured.
If the dialog is unexpectedly appearing even after Automatic Login is set, search the project for any script or button event that calls ShowLoginDialog. Vision-system program-switcher screens frequently include a "Change operator" button wired to this function.
8. Security Considerations
Automatic Login removes the explicit authentication step but does not remove authentication. The runtime session still carries an identity, audit logging still records user-tag changes, and screen-level authorization still applies. Plan accordingly:
- Use a dedicated kiosk user with the minimum role needed for operator visibility; do not reuse an administrative account.
- Disable Windows fast-user-switching on the runtime PC to prevent secondary sessions from leaking into the runtime.
- Lock down physical access to the runtime PC. Automatic Login assumes the person at the keyboard is the authorized user.
- Document the password in a controlled location; it must be re-entered after every runtime reinstall or major version upgrade.
- For audit-bound industries (food/pharma packaging regulated by FDA 21 CFR Part 11 or EU GMP Annex 11), Automatic Login may not satisfy the "unique user identification" rule. Use individual accounts with RFID or barcode login instead.
9. Version Notes and Migration
| TIA Portal Version | WinCC Unified Version | Automatic Login Path | Notes |
|---|---|---|---|
| V17 | V17 RT Unified | Runtime Manager > Settings > Automatic Login | Same procedure; password policy slightly relaxed |
| V18 | V18 RT Unified | Runtime Manager > Settings > Automatic Login | Unified Comfort Panels supported |
| V19 | V19 RT Unified | Runtime Manager > Settings > Automatic Login | Adds SAML-based user management option |
| V20 | V20 RT Unified | Runtime Manager > Settings > Automatic Login | Current path used in this document |
Project migration between versions preserves the user database if the Skip user administration option was unchecked during the last download. Re-validate Automatic Login after each major upgrade.
10. Field-Proven Caveats
- On Windows Server 2019/2022 used as the runtime host, the Runtime Manager must run as a service. The Automatic Login credentials are persisted in the service profile and survive reboots, but a service-account password rotation will break Automatic Login silently.
- When the same project is loaded on multiple PCs (e.g., a primary line HMI and a backup), each PC needs its own Automatic Login entry in its local Runtime Manager; credentials are not replicated through the project download.
- If the runtime PC is in a domain and uses Group Policy to clear cached credentials, Automatic Login may fail after policy refresh. Add the Runtime Manager service to the Log on as a service GPO exception.
- Touchscreen kiosks with virtual keyboards: the login dialog renders a virtual keyboard, but Automatic Login eliminates this overhead entirely and reduces wear on the touch surface.
11. Related Functions and System Tags
| Element | Location | Purpose |
|---|---|---|
ShowLoginDialog |
System functions list | Force login dialog to appear |
Logoff |
System functions list | End the current session |
GetCurrentUser |
Scripts | Return the active username string |
@UserName |
System tag | Holds the active user name (internal) |
@CurrentUserRole |
System tag | Holds the active role identifier |
@UserLoggedIn |
System tag | Boolean: true if a user is logged in |
These are stable across V17–V20 and can be used in screen visibility animations, alarm routing filters, and audit-tag tagging.
Why does the WinCC Unified PC Runtime always show the login screen even though I never set a user?
WinCC Unified Runtime requires an authenticated session for every protected screen. When the project user administration is empty and Automatic Login is disabled, the runtime falls back to an internal placeholder and still prompts for credentials. Configure a user in Security settings > Users and roles in TIA Portal, then enable Automatic Login in the Runtime Manager on the PC and re-download without skipping user administration.
Where is the Automatic Login setting in WinCC Unified V20?
Open SIMATIC Runtime Manager on the runtime PC, select the project, open its settings, and activate the Automatic Login checkbox. Enter the username and password exactly as configured in the TIA Portal user administration. The official Siemens documentation is at Activating Automatic Login (Runtime Unified) - TIA Portal Help V20.
What does "Skip user administration when downloading" do and should it be unchecked?
This download option, enabled by default in TIA Portal, prevents the project user database from being transferred to the runtime. If left enabled, Automatic Login cannot find any user account and the login dialog reappears. Always uncheck this option when downloading a project that uses Automatic Login or any role-based authorization.
Can I remove the login dialog completely without Automatic Login?
No. WinCC Unified always requires an authenticated identity. The only supported method to suppress the dialog is Automatic Login. Programmatic alternatives such as removing ShowLoginDialog calls do not bypass the implicit authentication check on the start screen.
Why does Automatic Login work on one PC but not another running the same project?
Automatic Login credentials are stored per-PC in the local Runtime Manager, not in the downloaded project. Each runtime PC must have its own entry under Runtime Manager > Settings > Automatic Login. Verify the credentials, role assignment, and that the user database was not skipped on the failing PC's last download.