Powershell Dsc Scheduledtask: Run as Group

In the Windows 10 Task Scheduler UI one can configure a task to run using a specific user account or a group (like BUILTIN\Users). Is there any way to specify the group BUILTIN\Users or BUILTIN\Administrators using PowerShell DSC (Desired State Configuration) for Scheduled Tasks? The only options I found were BuiltInAccount (where only 3 built in accounts like LOCAL SERVICE are allowed), ExecuteAsCredential (where I can specify a user), and ExecuteAsGMSA (domain accounts only?). The reason is that I want the task to run for several users at startup, showing a UI, and do not want to configure it for all users individually.

2
Robert Thorne

Robert Thorne

Automotive & Future Transportation Editor

Robert Thorne covers electric vehicle innovations, autonomous driving systems, global mobility trends, and automotive engineering developments.

Share this article