Script (.bat) + .reg file

Script (.bat) + .reg file

Morning!

We are trying to configure automatically the phone extension for our dialer software, getting the extension number from our intranet, and creating a .reg file with the user data and the extension data.

We created a collection with the "custom script" for .bat file, and then the "registry" option to import the .reg file, using a local path with a manageengine variable, that looks like this: "\users\$domainusername\uagentsettings.reg"

The .bat file works, it creates the file on the c:\users\nameoftheuser\uagentsettings.reg.

The import of the .reg file does not work. I guess is because on the "registry" option I cannot specify to run it with elevated privileges, so it gives this error:

One or more Registry File(s) could not be imported with error : dc.db.agent.config.run_as_admin.credentials_not_available


There is another way of doing this?

Thanks!
                New to ADManager Plus?

                  New to ADSelfService Plus?