Question

If one wanted to permanently enable or disable a GPO, how would one go about doing so using a batch file? I'm trying to create a batch file that changes the settings that says "Always use custom logon background" so that it the custom background of my company.

Was it helpful?

Solution

Modifying group policies programmatically is hairy and dangerous. (See this example for adding a startup script to group policy.) I'm not sure specifically where the setting is for "Always use custom logon background" in the registry, but I'm certain that there's more than one value you'll have to modify for the result you're expecting.

You're really better off using Windows' Group Policy Management Editor.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top