How can Windows authorize a script signer for one non-interactive local account when its Root store rejects an addition?
On a standalone Windows 10 Pro 22H2 PC, an application uses a dedicated local account to run Windows PowerShell 5.1 without an interactive desktop. The planned test requires AllSigned. With the dedicated account’s profile loaded, an elevated administrator could open that account’s Root certificate store. Adding the public certificate of a self-signed test publisher returned 0x80070005 (Access is denied). No certificate was installed.
What is the supported way, if one exists, to authorize this publisher for that account alone? In particular, what read-only check would distinguish a Windows requirement for consent from the target user from a restriction that the application managing the account must address? We want to retain AllSigned and avoid changing trust for the whole machine.
Wording assisted by ChatGPT.