Вопрос

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.

Это было полезно?

Решение

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.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top