I am trying to import two registry key in the Startup selection (Computer Configuration/Windows Settings/Scripts (Startup/Shutdown)) . One of the registry keys import, however the secord does not.I have used the following command in a .cmd and .bat file
regedit /s file.reg
The problem selection is HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders
SecurityProviders and adding: credssp.dll. This is to enable Network Level Authentication
To manual import this registry key I require local admin . I believe that script executed in the Startup and Shutdown selection of group policy run under the LocalSystem account, which does not have the required privileges. I also created a custom administrative template files.
the "group policy modeling tool" show the script file and custom administrative templete The questions i have is it possiable to execute a startup script using different users for elevated permissions (runas)? Is this registry selection "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders" prevented from been change at startup?
is there anyway to run as the "SYSTEM"?
Do you have any suggustions or other ways to run a startup script with higher privileges?