Admin for awhile
2024-12-17 10:07
If you have a series of Windows admin tasks to do and don't want to be nagged with each step with must be administrator prompt, user your admin account to add regular account to local machine Administrators group.
Admin command prompt:
net localgroup administators %username% /add
:: do admin stuff 1,2,3...
net localgroup administators %username% /delete
With this approach the middle part doesn't need to be only within that command shell, but you will probably have to sign out and back in again for the change to register.