I need to run a script that requires admin privileges to modify the HKLM part of the registry and system files/folders.
But I also need to interact with the HKCU part of the registry.
The script must be run from a regular account. There is a separate administrative account for privileged actions.
Using the admin account does not have the same access to regular user registry and profile folder.
Is there a way to launch an elevated command prompt using a regular user, providing admin credentials, but keeping the regular user environment?
Thank you