Troubleshooting
Why WinCC license keys disappear on an embedded IPC
Short answer
A WinCC key is a small hidden, location-bound object at the root of the licensed volume, so power loss, write filters, bad sectors, defragmentation, image restores and cleanup tools destroy or hide it with the volume. Rank the causes by what the Automation License Manager reports — missing, defective or expired — and fix the storage cause instead of re-transferring the key.
On this page
The key has not vanished into thin air — the volume that carries it has been changed underneath it. A WinCC license lives as a small hidden system object at the root of the licensed drive, on most stations the AX NF ZZ store in the root of C:, bound to its physical location on the media and readable or movable only through the Automation License Manager. Whatever damages, rewrites or rolls that volume back takes the key with it: an unclean power loss, a write filter that discards changes at restart, bad sectors on worn flash or disk media, a defragmentation pass, an image restore or snapshot rollback, or a cleanup tool that deletes unknown hidden root objects. Re-transferring the key restarts the runtime but leaves the cause in place. Read what the Automation License Manager reports, rank the storage causes below, and fix the volume instead of feeding it keys.
What the Automation License Manager tells you first #
Open the Automation License Manager before touching anything and record which of three states it reports, because each points at a different storage cause.
| What it reports | What it means | Where the cause lives |
|---|---|---|
| No key on the local drive | The store is gone: deleted, discarded by a write filter or reverted by a restore | Write-filter state, cleanup tools, image history |
| Key listed as defective | The store survived, but the media or file-system metadata under it did not | Disk event log entries, SMART data, a read-only chkdsk |
| Key listed as expired | A trial or rental key reached its limit — a loss in appearance only | The license type and remaining time in the tool |
Repairing a defective key is a documented operation of the same tool: start it from Start > Siemens Automation > Automation License Manager, right-click the computer entry, switch to flat view and run the repair on the selected keys — after the backup in the next section, never before. An Automation License Manager service that crashes or will not start is a different fault: there the documented fix is reinstalling the tool after removing its damaged database file, almdb.mdb, not re-transferring keys.
The causes, ranked #
- Unclean power loss. Cutting mains to a running station leaves NTFS metadata and cached writes inconsistent, and the automatic volume check at the next boot can relocate or truncate the hidden store. Random plant power events produce exactly the random, in-the-field pattern you are seeing. The decision: put the station on a UPS sized for a controlled shutdown, configure its shutdown service, and treat the isolator as a planned stop, never as the routine way to switch a PC off. Poor input power can reach further than the file system, too — a failing supply can take the drive itself, as the case study on diagnosing a defective PSU that destroys hard drives documents.
- A write filter still enabled on the licensed volume. Enhanced Write Filter on Windows XP Embedded stores volume changes on another medium instead of applying them, and a restart discards them unless they are explicitly persisted. A key transferred while the filter was active lives only in that overlay and is gone at the next restart — a deterministic loss, not random hardware. The decision: transfer with the filter disabled or persist the change, then prove the key survives two restarts.
- Bad sectors and worn media. A failing hard disk, or a flash device near its write-endurance limit, grows bad clusters; one landing under the hidden store makes the key report as defective. Heavy logging or archiving on the system volume shortens flash life directly. The decision: read the SMART attributes, replace the media, restore the validated master image and move high-frequency archives off the system volume.
- Defragmentation, imaging and rollback. Any utility that moves or rewrites files at sector level can break the location binding, and restoring a partition image or rolling back a snapshot taken before the transfer reverts the store silently. The decision: image only from masters captured after the WinCC installation, and re-transfer the key after every restore.
- Cleanup and antivirus tools. Real-time scanners and disk-cleaning utilities quarantine unknown hidden root objects — which is exactly what the store is. The decision: exclude the volume root from those tools and remove scheduled cleaners from the station.
- Trial and rental keys. A time-limited key that reaches its limit is reported unusable and looks exactly like a loss. The decision: confirm the license type and remaining time in the Automation License Manager before chasing hardware; how runtime and complete licenses differ, and how a runtime key moves, is covered in the guide to WinCC RT versus RC licenses and moving a runtime key.
Tracing the cause on the machine #
One safety point before the hands-on work: this station may be part of a running process, so plan every restart and power intervention through the plant's isolation procedure instead of pulling the plug a second time.
- Back the key up while the runtime still works, to a USB stick or a network path. The step-by-step route is in the guide to transferring a WinCC license from a USB key to the hard disk.
- Record what the Automation License Manager reports — no key, defective or expired — together with the station's maintenance notes.
- Turn on the display of hidden and protected operating-system files and look at the root of C:. Present but defective points at media or metadata damage; missing points at a filter discard, a cleanup deletion or an image rollback.
- Check whether Enhanced Write Filter is enabled and which volume it protects. If the licensed volume is protected, the loss is deterministic and cause 2 is your answer.
- Read the System event log around the last known-good period: unexpected shutdown entries, Disk, Atapi and Ntfs warnings, and automatic volume-check records at boot. Match the timestamps against the plant power log.
- Run a read-only
chkdsk C:first to see what it reports. Only after step 1 is confirmed, run the repair passchkdsk C: /f /r— a repair on marginal media can finish off a marginal store. - Pull the drive's SMART data: reallocated and pending sector counts on a hard disk, wear indicators on flash media.
- Review scheduled tasks and installed utilities for defragmentation, disk or registry cleaners, imaging agents and antivirus scanning of the volume root.
Never delete the hidden store in the volume root by hand — removing it deletes the licenses. Move or back keys up only through the Automation License Manager, once the backup exists.
Fixing the cause, and when to stop repairing #
Match the fix to the confirmed cause:
- Power: a UPS with the shutdown service configured, and a crew brief that the isolator is not an off-switch for a running HMI PC.
- Write filter: disable it or persist the change, verify the key across two restarts, or place the key on an unprotected data volume where the installation supports it.
- Worn media: replace the drive or flash device, restore the validated master image, transfer a fresh key and move archives off the system volume.
- Utilities: remove the scheduled defragmentation and exclude the volume root from antivirus and cleanup software.
- Restore discipline: re-image only from masters captured after the WinCC installation, re-transfer the key after every restore, and re-check the image's software compatibility instead of assuming it — the panel PC software compatibility checks list what to verify.
- End of the repair loop: when the same station keeps eating keys after power, filter and media are all ruled out, the aging XP Embedded hardware itself is the remaining suspect. At that point the durable fix is replacing it with a current industrial panel PC and deploying the project fresh, the way the WinCC 6.2 runtime deployment on a separate PC sets out.
The overlay arithmetic: a 256 MB filter partition against 40 MB of daily writes #
Cause 2 has a second face that shows up on stations nobody reboots. The numbers below are example inputs for a typical continuously running station, not measurements from your machine.
Inputs:
- Enhanced Write Filter enabled, protecting C:, with the overlay partition sized at 256 MB — the overlay size is fixed when the XP Embedded image is built.
- A runtime write load to C: of 40 MB a day of alarms, trends and logs — an example load for a small station.
- 24 days since the last restart — an example interval for a machine nobody reboots on purpose.
Rule: writes to a filtered volume accumulate in the overlay and a restart discards them; once the writes accumulated between restarts exceed the overlay size, every write to the protected volume fails.
Arithmetic:
- Writes since the last restart: 40 MB a day × 24 days = 960 MB accumulated.
- Overlay fill time: 256 MB ÷ 40 MB a day = 6.4 days.
- Time spent with a full overlay: 24 − 6.4 = 17.6 days.
Result: from 6.4 days after the restart onward the overlay is full, so alarm logging, archive writes and any license transfer to C: fail until the next restart clears the overlay.
Decision: a filtered licensed volume can only be trusted for runs shorter than overlay size divided by daily write volume — with these inputs, 6.4 days. Either persist changes with the filter's commit function, size the overlay above the longest planned run between restarts, or remove the filter from the licensed volume; and never transfer a key onto a volume that has already passed its fill time.
Questions asked
Can I back up a license by copying the hidden AX NF ZZ folder?
No. A file copy duplicates unusable data: the key object is bound to its physical location on the media and only the Automation License Manager reads, moves or backs it up. Use the tool's own backup function to a USB stick or network path while the runtime still works, and never delete the hidden folder by hand, because removing it deletes the licenses themselves.
Does an expired trial key mean the license store is damaged?
No. A trial or rental key that reaches its limit is reported unusable or expired and only looks like a disappearance. Check the license type and the remaining time the Automation License Manager shows before you suspect the drive, and plan a permanent key for stations that must run beyond the trial period.
Is chkdsk with repair safe to run on the licensed volume?
Run the read-only pass first and read what it reports. The repair pass can relocate or truncate the hidden store on marginal media, so back the keys up through the Automation License Manager and confirm that backup before starting the repair. On a drive already showing reallocated or pending sectors, replace the media instead of repairing it.
How do I prove a transferred key will survive a restart?
Transfer the key with the write filter disabled or the change persisted, restart the station twice, and open the Automation License Manager after the second restart to confirm the key is still listed on the local drive. One restart only proves the transfer reached the volume; the second proves the filter or image process did not discard it.
Where should the Automation License Manager software come from?
Install it from the vendor's support portal or from the installation media that came with the engineering or runtime software, and keep its version matched to the tools on the station. If the service will not start, the documented route is reinstalling the tool after removing its damaged almdb.mdb database file, then starting the service again.