Check your Event Logs and make sure nothing is up there.

This applies to Windows 8.1 so I would guess it also applies to Windows 10, though I've not looked up the link for Windows 10


Logon scripts do not run for five minutes after a user logs on to a Windows 8.1-based computer
https://support.microsoft.com/en-us/kb/2895815

The Startup Script is Dead
https://blogs.technet.microsoft.com/askpfeplat/2015/04/26/the-startup-script-is-dead/