There is network with about 50 Windows (servers and clients) machines. I have some script that needs to be run on those machines' startup.
Local GPO is problematic because I don't want to go through all these machines and set it.
Domain GPO is problematic because the script I'm going to run removing the machine from the domain, but I still need it to run after the restart that comes after the domain quit.
Registry key is problematic because the script needs to run before the user login.
How can I setup that the script will run on startup without set it locally or depended on domain ?
Use the best of both worlds.
Use two scripts.
You use Domain GP to install a setup script.
Your setup script configures Local GP to run your original script.
Would that [have] work[ed] for you?
You should be able to set something up on startup (before the logon process) by putting an executable in HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\BootExecute
See:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.