I'm in the process of building a gold image for VDI deployment, and I need to set a local group policy. Specifically, I'm looking to configure: Local Computer Policy > Computer Configuration > Windows Settings > Scripts > Startup, where I can specify a script and its parameters. I've created this setting on a reference machine and used the LGPO tool to export the local policy. However, when I deleted this setting and tried to import it again using LGPO, the configuration doesn't re-appear in the local policy editor. Am I doing something wrong? I'd appreciate any advice on how to manage this process via automation!
3 Answers
Have you double-checked if the setting is being applied? Sometimes, local policies behave unexpectedly, and changes might not appear in the editor. It's similar when directly editing the registry keys that correspond to GPO settings.
I haven't used LGPO since Windows 7, but I recall it being tricky! I suggest testing on a clean setup first to see if the registry and the output from `gpresult` align with the policies applied.
You could use PowerShell to modify the registry entry directly. Some keys are easier to locate than others. But since you’re making a gold image, shouldn't you ideally configure the policy before finalizing the image?
I actually didn't check that! I'm not sure how to verify without the GUI, though.