Hello
Thank you for your question and reaching out. I can understand you are having query\issues related to schedule task or Startup script not working.
- Please Do not enable the Run in logged-on user's security context (user policy option) Common option when configuring user.
- As you have mentioned that script is not running even in from logon or startup script , please try to put some logs file to check where its stuck.
- Configure Logon Script Delay from GPO -> Computer Configuration\Administrative Templates\System\Group Policy\Configure Logon Script Delay
- Please also make sure User and Computer is placed in right OU or Security Group on which this GPO is applied.
Reference :
--If the reply is helpful, please Upvote and Accept as answer--