Run Task as system while another task as logged in user in Kscript
Hi people.
I have an install for "Adobe acrobat DC" that I am deploying via a script.
The deployment is made as the "local system".... which is how I need it to
be deployed.
But I have a second task , which is making changes to the registry of the installation.
Just a few preferences that need to be tweaked in the settings.
I do this with "reg" files, which need to be deployed as logged in user
in the "HKCU" part of the registry.
When I try to run the batch file, it doesn't work because the
script is running as system and therefore does not have access to "HKCU".
How can I tell the second task to run as the currently logged on user.
All I need is to run this bat file....
regedit.exe /S spelling.reg
regedit.exe /S Units.reg
The "Reg" files have been uploaded as dependancies.
Tested and work when I deploy them as "logged in user"...... (in a separate script just to test).,...