IMD SolutionComputing LibraryShop main store

How-to

Configuring UWF write protection on a Windows 10 IPC

Operating systems on the plant floor Published 6 min read

Short answer

Run uwfmgr volume protect c: and uwfmgr filter enable from an elevated command prompt, restart, and confirm with uwfmgr get-config all plus a desktop test file that disappears. On an Open Controller CPU 1515SP PC2, add uwfmgr File Add-Exclusion C:\Boot\BCD first to avoid a blue screen after a power interruption.

On this page
  1. Which write filter does a Windows 10 IPC actually use, EWF or UWF?
  2. How do you record the baseline before enabling protection?
  3. Which data needs a persistent path before you protect C:?
  4. Example: which of four data paths survive three protected restarts?
  5. How do you enable write protection on drive C:?
  6. What must you exclude on an Open Controller CPU 1515SP PC2 first?
  7. How do you prove the protection actually works?
  8. How do you take the IPC back to writable maintenance mode?
  9. Questions asked

A Windows 10 industrial PC is write-protected with Unified Write Filter (UWF), not EWF, and the whole commissioning is four commands from an elevated command prompt: uwfmgr volume protect c:, uwfmgr filter enable, a restart, then uwfmgr get-config all to confirm. On an Open Controller CPU 1515SP PC2 you must first run uwfmgr File Add-Exclusion C:\Boot\BCD, because the documented failure without it is a blue screen and no start after a power interruption. This procedure gives the baseline check, the enablement, the model-specific exclusion, the proof test and the way back to writable maintenance.

Which write filter does a Windows 10 IPC actually use, EWF or UWF? #

Windows 10 IPCs use Unified Write Filter (UWF), and the command set for it is uwfmgr; the name EWF belongs to an older write-filter implementation with different commands, so identify the installed feature before changing any protection setting. The practical test is simple: open the Windows search field, enter cmd, and run Command Prompt as administrator. Then run uwfmgr get-config all. If the utility returns filter configuration information, UWF is present and you can continue; a command-not-found or access-denied error means the Windows feature or the IPC image must be resolved first, and repeating protection commands will not install a missing filter.

UWF redirects every write to a protected volume into a temporary overlay and discards that overlay at restart. That is what protects your commissioned image, and it is also what will silently discard configuration changes, certificates, recipes and logs that have no persistent path, so decide the persistence question before you enable anything.

How do you record the baseline before enabling protection? #

Before touching protection, save the output of uwfmgr get-config all from the elevated prompt so you have a baseline of the filter state and volume configuration to compare against after every restart. The key distinction you are recording is between the current session and the next session: filter and volume changes are staged for the next session, so a pending enabled state in the configuration is not proof that the running session is protected.

  1. Open Command Prompt as administrator.
  2. Run uwfmgr get-config all and save the output.
  3. Finish all intended permanent system changes now, while C: is still writable: runtime settings, network configuration, installed software.
  4. Close applications with unsaved work.

Which data needs a persistent path before you protect C:? #

Everything your applications must still write after protection needs either an exclusion or a destination off the protected volume, because a save that looks successful during a filtered session exists only in the overlay until the next restart erases it. Protecting C: does not protect every path on it forever, and enabling the filter does not by itself choose the volume; these are two separate settings, which is why both commands are needed.

Data or setting Decision Commissioning check
OS and runtime configuration Complete it before protection Configuration survives one ordinary restart before filtering
Production data and application logs Persistent destination or supported exclusion A controlled record survives a protected restart
Boot configuration on a CPU 1515SP PC2 Apply the model-specific exclusion The exclusion appears in the configuration
Protection-test file Leave it on a protected, non-excluded path The file disappears after restart

Exclusions are added with uwfmgr file add-exclusion followed by the path. Keep them as narrow as the application allows: every exclusion is a path around the discard-on-restart behavior, so an excluded folder is a permanent write location for anything that finds it.

Example: which of four data paths survive three protected restarts? #

Take an IPC with the four table rows above and verify each one over three restarts, one row at a time. The arithmetic is 4 paths x 3 restarts = 12 checks in total, and each check is one file created, one restart, one look. Say you create one test record per path: the runtime setting survives 3 of 3 restarts because it was committed before protection, the logged record survives 3 of 3 because its folder has an exclusion, the boot exclusion shows in uwfmgr get-config all 3 of 3 times, and the desktop test file survives 0 of 3, which is the pass condition for it. That gives 12 expected results with 9 survivals and 3 intended disappearances; any other count means one path is misconfigured, and the row that missed tells you which setting to fix.

How do you enable write protection on drive C:? #

Enable protection with two commands from the elevated prompt, uwfmgr volume protect c: and uwfmgr filter enable, then restart through the normal Windows shutdown sequence; both commands stage their change for the next session, so the restart is what activates protection. Administrator-level permissions are required for every uwfmgr command.

  1. Run uwfmgr volume protect c:.
  2. Run uwfmgr filter enable.
  3. Run uwfmgr get-config all and confirm the next-session configuration shows the filter enabled, C: protected, and any exclusions you added retained.
  4. Restart the IPC and confirm Windows and the control applications start normally.
  5. Run uwfmgr get-config all again and confirm the current-session configuration now shows protection active.

What must you exclude on an Open Controller CPU 1515SP PC2 first? #

On an Open Controller CPU 1515SP PC2 you must run uwfmgr File Add-Exclusion C:\Boot\BCD before the first protected restart, because the documented failure without that exclusion is a blue screen and a controller that no longer starts after a power interruption. BCD means Boot Configuration Data, and the exclusion keeps the filter from discarding changes Windows makes there. Use the path exactly as written; an exclusion for a different boot-related folder is not a substitute, and this is the one place where copying the documented path character for character matters.

Safety note: apply this exclusion to the identified CPU 1515SP PC2 only. On any other IPC, obtain that model's own documented Windows and write-filter requirements instead of copying boot-path exceptions across models.

After the command, run uwfmgr get-config all and confirm C:\Boot\BCD is listed in the configuration that will apply when protection becomes active. Resolve any command error before proceeding; the exclusion must be accepted by the filter, not merely noted on a checklist.

How do you prove the protection actually works? #

Create a harmless file on the Desktop, restart, and confirm the file is gone: that proves writes to that protected, non-excluded path went to the overlay and were discarded, which is exactly the behavior you commissioned. Then run uwfmgr get-config all once more and confirm the session still reports protection active, so the disappearing file and the configuration readout agree.

One disappearing file tests one location. It does not prove your HMI, runtime or logging service stores its data correctly, so repeat the persistence checks from the table for each application: create a known record through the application itself, restart, and confirm the record exists. A successful save message during the filtered session is not evidence; only the post-restart readback is.

How do you take the IPC back to writable maintenance mode? #

Return to writable operation with uwfmgr volume unprotect c: and uwfmgr filter disable followed by a restart, then confirm with uwfmgr get-config all and a test file that this time must remain after another restart. Installing software or changing settings while protection is still active produces a normal-looking session followed by missing changes, so make the transition deliberate and scheduled.

  1. Record the active configuration with uwfmgr get-config all so the protected baseline is documented.
  2. Run uwfmgr volume unprotect c: and uwfmgr filter disable.
  3. Restart and confirm with uwfmgr get-config all that the filter is disabled and C: is no longer protected.
  4. Create a test file on C:, restart again, and confirm it remains.
  5. After maintenance, repeat the protection procedure and its checks; on a CPU 1515SP PC2, verify the C:\Boot\BCD exclusion again before returning the controller to protected operation.

Questions asked

Does UWF protect the drive if power fails suddenly?

Not in the sense of a UPS. UWF redirects writes to an overlay, so a sudden power loss discards the session's changes instead of corrupting the commissioned image, but the hardware still sees the interruption. That is exactly the condition behind the documented blue screen on the CPU 1515SP PC2 before the boot-file exclusion exists.

Is EWF available on Windows 10?

The write filter this procedure configures is UWF; the commands uwfmgr filter enable and uwfmgr volume protect c: only exist for UWF. If your IPC documentation names EWF, that belongs to an older Windows generation and the command sets are not interchangeable. Run uwfmgr get-config all to establish what is actually installed before changing anything.

Where does the overlay live and what happens when it fills?

The overlay is temporary storage on the protected volume that collects redirected writes for the current session and is discarded at restart. Writes that appear successful while the overlay has space can fail once it is exhausted, so applications that log continuously during a shift need an exclusion or a destination off the protected volume rather than a bigger overlay.

Can I exclude a whole folder instead of a single file?

Yes, the same command form takes a directory path, but keep exclusions as narrow as possible: everything under an excluded path bypasses write protection, so an excluded folder that applications can write to is a path for unwanted permanent changes. Exclude the specific file or the smallest data folder the application documents.

Keep reading

  • How-to

    Running TwinCAT XAR on a third-party industrial PC

    Do not clone a factory IPC image onto other hardware. Install a licensed Windows 10 IoT Enterprise LTSC edition, install the runtime fresh, and qualify the real-time Ethernet port, CPU priority and jitter on the actual machine. A successful boot proves nothing, and network hardware the runtime vendor did not sell you is a self-supported component.

    Operating systems on the plant floor

  • Troubleshooting

    X550 driver install fails on Windows 10 IoT Enterprise

    Most X550 driver failures on Windows 10 IoT Enterprise are package mismatches, not dead cards: the installer checks the OS build and the device hardware ID against the package's support list, and a build it does not list is rejected. Capture the exact installer error, the OS build number and the Device Manager hardware ID before choosing a package; the same card working in another PC proves only that PC's build and image accepted it.

    Operating systems on the plant floor

  • Troubleshooting

    Why OneDrive sync does not belong on a machine controller

    Run the OneDrive sync client on an office PC, not on the machine controller. A TwinCAT PC reserves cores for real time, and a sync client adds burst CPU, disk and network load on the Windows side that shows up as task exceeds and EtherCAT lost frames. Sync the SharePoint library to a separate PC and let the controller read and write the folder over a file share.

    Operating systems on the plant floor