There seem to be two existing question threads pertaining to this topic, Running tests with reduced privileges and ... specify the username ... with which CI tests are run.
Sometimes an important part of a test is making sure the stuff will run as an ordinary user, and isn't just succeeding because it is running as admin and can do anything.
From the first other thread, I read that "AppVeyor has no built-in support" for that, but that a tool "PsExec" is installed, and can be used to do portions of the run as another user. From the second thread, I gather that net user /add could be used to add a user for that purpose (in that thread, the user was added in administrators, but I assume a non-admin user could be created the same way). I am not a Windows native, as you might suspect.
In the AppVeyor build configuration, is there perhaps already some Joe Ordinary non-admin user account by default, maybe guest or something? Or would it be necessary to just create one in all cases?

#1 Posted by Feodor Fitsner Support staff on 17 Jul, 2020 05:00 PM
Hi Chapman,
Creating a new user account and running under it is the way to go.
Feodor Fitsner closed this discussion on 16 Sep, 2020 09:03 PM.