Welcome to ask here!
Based on my understanding, there is not a direct setting to do this.
We may consider doing this by deploying a startup script under Computer configuration > Policies > Windows settings > Scripts (startup / shutdown).
Following information for your reference:
Computer configuration > Policies > Windows settings > Scripts (startup / shutdown)
This response contains a third-party link. We provide this link for easy reference. Microsoft cannot guarantee the validity of any information and content in this link.
If there are any updates, welcome to share here!