Hello,
Thank you for posting in Q&A forum.
To run a scheduled task as the current logged-on user in a computer policy, you should avoid enabling the Run in logged-on user's security context (user policy option). Instead, configure the security context under which the scheduled task will run in the General settings tab when creating the User GPP Scheduled Task item. Set it to %LogonDomain%\\%LogonUser%
by default.
For more details, please refer to the documents: https://learn.microsoft.com/en-us/troubleshoot/windows-server/group-policy/user-gpp-scheduled-task-item-fails-apply
I hope the information above is helpful.
Best Regards,
Yanhong Liu
============================================
If the Answer is helpful, please click "Accept Answer" and upvote it.