Make C # application group policy

I want my GPO application to be known. I know this is just reading from a specific registry path, but I still have some questions:

  • How to determine GPO updates? Here's RegisterGPNotification here: http://msdn.microsoft.com/en-us/library/aa374404(VS.85).aspx , but is there anything ready for C # there or at Microsoft?
  • What is considered best practice: is machine policy stronger than user policy, or is user policy overriding machine policy?
  • Anyone who wants to share experiences in this area?

Thanks Stefan

+4
source share
1 answer

I usually use the WM_SETTINGCHANGE window message as a trap for background GP updates. One of the flags in this structure indicates whether it was caused by a policy or something else, so you definitely want to find it.

As to whether to use for each computer or for each user, it really ends with the type of application that you install with the policy. When Microsoft implements the same policy as for each computer and for each user, usually the settings for each computer benefit, but not universally.

+2
source

Source: https://habr.com/ru/post/1312781/


All Articles