group-policy

How to modify local group policy setting programatically

放肆的年华 提交于 2019-12-04 04:13:39
问题 I am looking for a way to programatically change the value of a group policy setting without having to reboot a machine or install any additional components on it Looking for a solution for Windows 2003, 2008, machines are part of the domain The value is under Administrative Templates\Network\QoS Packet Scheduler, Limit outstanding packets Tried the following: Change registry directly - this doesn't work, as the value is actually stored in registry.pol file and is propagated from there to the

Reading Local Group Policy / Active Directory Settings

吃可爱长大的小学妹 提交于 2019-12-04 03:27:07
问题 I'm writing a C# program that will enforce password complexity in accordance with the Windows Group Policy setting "Password must meet complexity requirements". Specifically, if that policy is set to Enabled either on the local machine (if it's not part of a domain) or by the Domain Security Policy (for domain members), then my software needs to enforce a complex password for its own internal security. The issue is that I can't figure out how to read that GPO setting. Google searches have

How to make an application GPO aware?

蓝咒 提交于 2019-12-03 07:10:31
I'm writing an application in Delphi 2010, and I'd like to provide the option to the administrator to configure it via Group Policy. Any recommendations on good ways to make my application GPO aware? Note, I am only looking to create a computer based GPO, not user. My current solution involves simply first determining if any values have been written to the registry at HKLM\software\policies\MyProgram . If they have, I assume that GPO has been applied and I use this location to read configuration. If nothing exists at the above registry location, I proceed to reading configuration at the

How to edit the gpedit policy

拜拜、爱过 提交于 2019-12-02 05:39:52
问题 I would like to ask how can I edit the gpedit.msc policy using C#? 回答1: gpedit.msc is merely an interface into the registry settings; there is no API or exposed framework for gpedit. To manipulate a value as gpedit would you need to manipulate the associated RegistryKey. class RegKey { static void Main() { // Create a subkey named Test9999 under HKEY_CURRENT_USER. RegistryKey test9999 = Registry.CurrentUser.CreateSubKey("Test9999"); // Create two subkeys under HKEY_CURRENT_USER\Test9999. The

How to edit the gpedit policy

倖福魔咒の 提交于 2019-12-01 23:02:27
I would like to ask how can I edit the gpedit.msc policy using C#? gpedit.msc is merely an interface into the registry settings; there is no API or exposed framework for gpedit. To manipulate a value as gpedit would you need to manipulate the associated RegistryKey . class RegKey { static void Main() { // Create a subkey named Test9999 under HKEY_CURRENT_USER. RegistryKey test9999 = Registry.CurrentUser.CreateSubKey("Test9999"); // Create two subkeys under HKEY_CURRENT_USER\Test9999. The // keys are disposed when execution exits the using statement. using(RegistryKey testName = test9999

Reading Local Group Policy / Active Directory Settings

余生长醉 提交于 2019-12-01 17:45:28
I'm writing a C# program that will enforce password complexity in accordance with the Windows Group Policy setting "Password must meet complexity requirements". Specifically, if that policy is set to Enabled either on the local machine (if it's not part of a domain) or by the Domain Security Policy (for domain members), then my software needs to enforce a complex password for its own internal security. The issue is that I can't figure out how to read that GPO setting. Google searches have indicated that I can read GPO settings with one of these two APIs: the System.DirectoryServices library in

Chrome WebExtension - Private Store and Enterprise Environment

筅森魡賤 提交于 2019-11-29 12:56:31
I'm trying to publish a Chrome Extension in a Private Store and to propagate it with a Group Policy. In order to do that I'm using the following references: CRX Packaging GPO Propagation I'm 100% sure that the GPO is configured correctly (if I use the same GPO to propagate an extension published on the Chrome WebStore it works). Unfortunately, both my private extension (line in the Configure the list of force-installed apps and extension section: [my_extension_id];[my_xml_url] ) and the example extension (line: bcanfnleljfidkjhhfknjjiicdonddad;https://sites.google.com/site/pushcrx

Executing a batch script on Windows shutdown

有些话、适合烂在心里 提交于 2019-11-28 05:50:14
Is there any way, in Windows 7 Professional , to run a batch script (e.g., a .BAT file) when the user clicks on "shutdown" (not a batch file scheduled to shut down the machine, just one that runs only if the user clicks on "shutdown")? Ideally, such a script would show the command prompt window and offer an option to cancel the shutdown procedure. Solutions that do not require a third-party utility would be preferable. You can create a local computer policy on Windows. See the TechNet at http://technet.microsoft.com/en-us/magazine/dd630947 Run gpedit.msc to open the Group Policy Editor,

Executing a batch script on Windows shutdown

社会主义新天地 提交于 2019-11-27 01:03:58
问题 Is there any way, in Windows 7 Professional , to run a batch script (e.g., a .BAT file) when the user clicks on "shutdown" (not a batch file scheduled to shut down the machine, just one that runs only if the user clicks on "shutdown")? Ideally, such a script would show the command prompt window and offer an option to cancel the shutdown procedure. Solutions that do not require a third-party utility would be preferable. 回答1: You can create a local computer policy on Windows. See the TechNet at