In the Windows Search bar, type Local Security Policy.

Right-click and select Run as Administrator.

Navigate to:
Security Settings → Local Policies → Security Options

Configure the following options:
✅ You have now configured User Access Control (UAC) to elevate automatically on the local machine.