문제

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