TaskName = 'EXCEL-Auto'
TaskPath = '\CustomTasks'
ActionExecutable = 'C:\Program Files\Microsoft
Office\root\VFS\ProgramFilesCommonX64\Microsoft
Shared\Office16\operfmon.exe'
ScheduleType = 'AtLogOn'
#ExecuteAsCredential = 'USERS'
#BuiltInAccount = 'Users'
RunOnlyIfNetworkAvailable = $False
Enable = $True
#RunOnlyIfNetworkAvailable = $False
RunOnlyIfIdle = $False
Priority = '7'
Hidden = $False
RestartOnIdle = $False
AllowStartIfOnBatteries = $True
DontStopIfGoingOnBatteries = $True
Ensure = 'Present'
DontStopOnIdleEnd = $True
MultipleInstances = 'IgnoreNew'
StartWhenAvailable = $True
I am trying to create Schedule Task using DSC and for "Running the action,use following user account" I wanted to Choose USERS instead of SYSTEM (Which is default). I tried changing it like the above code (Line commented). That does not work. any other thoughts? Schedule Task
User group like this USER Group