prevent user from using the computer while UWF servicing updates

Shimi 1 Reputation point
2024-07-24T05:19:10.66+00:00

I'm checking the UWF feature in VM (hyper-V specifically) and I'm testing the update process.

it runs the updates, but instead of blocking user input - it's showing the lock screen, on the UWF-Servicing account. The users can just log into their accounts and do what they want. I assume it'll save their changes, but even if not - it might just restart the computer without warning, or it'll prevent the update from finishing.

That way or another - I want users to not be able to use the computer while updating.

Preferably still having access to the admin accounts for troubleshooting.

I thought about changing the script here, but I don't like the idea of changing it without an expert to say it's okay.

another option I thought of would be scheduling a script that will check if the user UWF-Servicing exists and enable/disable access to any non-admin account accordingly, but it feels convoluted, so I check if there's a better way to do so before confronting with how I do that (if it's even possible)

something that probably makes both solutions harder: It's domain users. I assume preventing access to specific local users will be easy enough, but blocking an unknown number of accounts from accessing will probably be harder (even more so if it turns out I'll need domain credentials for that).

Any ideas?

the instructions I followed:

https://learn.microsoft.com/en-us/windows/iot/iot-enterprise/customize/uwf-apply-windows-updates?source=docs

the script:

https://learn.microsoft.com/en-us/windows/iot/iot-enterprise/customize/uwf-master-servicing-script

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,723 questions
Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
6,652 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Shimi 1 Reputation point
    2024-07-29T05:17:51.0366667+00:00

    well, apparently it's built-in. you can't log-in to non-admin account while updating. my bad 😅

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.