Questions tagged [group-policy]

Group Policy is a feature of the Microsoft Windows NT family of operating systems that control the working environment of user accounts and computer accounts. Group Policy provides the centralized management and configuration of operating systems, applications, and users' settings in an Active Directory environment.

490 questions
43
votes
6 answers

Executing a batch script on Windows shutdown

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…
PNS
  • 19,295
  • 32
  • 96
  • 143
36
votes
4 answers

Web.config causing "blocked by group policy" error

The myriad of different web.config settings have always been a bit of a mystery to me. I'm glad Microsoft has cleaned up some of the content put there by default, but it's still causing problems. Specifically, Visual Studio 2015 is placing the…
Jonathan Wood
  • 65,341
  • 71
  • 269
  • 466
16
votes
1 answer

How to programmatically check the "Password must meet complexity requirements" group policy setting?

Window has five group policy settings related to password security: Enforce password history Maximum password age Minimum password age Minimum password length Password must meet complexity requirements Store passwords using reversible…
Ian Boyd
  • 246,734
  • 253
  • 869
  • 1,219
13
votes
4 answers

Offline google chrome extensions

Background: I manage an offline network of workstations. I have written a chrome extension that needs to be in the browser for our webapp to function I have published it through the chrome store (but not made it public) Question: How do I install…
Matt Ruge
  • 191
  • 1
  • 2
  • 8
10
votes
3 answers

How to set Group Policy "Turn Off Automatic Root Certificates Update" vie Registry/Powershell?

I need to disable the following group policy in Windows 7 programatically, for example by modifying a registry key using Powershell: "Turn Off Automatic Root Certificates Update" Does anybody know which registry key needs to be set or unset in order…
Erik
  • 2,316
  • 9
  • 36
  • 58
9
votes
3 answers

Check if AD account has "Logon on as a service" right in Active Directory

Is it possible to check if an account has "Logon as service" right programatically. I know how to setup and check this manually but I would like to check it from C# code. I need to check if this right is enabled on domain level, not just on that…
Anne
  • 407
  • 2
  • 7
  • 14
8
votes
1 answer

Processing group policy with GP Extension

I created a Group Policy extension that implements ProcessGroupPolicyEx. I sucesfully am notified when I receive a group policy. I am however at a loss to how to read the policy from inside the GPO. The example stops at looping through GPOs: for(…
Will I Am
  • 2,614
  • 3
  • 35
  • 61
7
votes
1 answer

How to make an application GPO aware?

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…
Mick
  • 13,248
  • 9
  • 69
  • 119
6
votes
3 answers

Is there a way I can delete a wlan profile created by Group policy on Windows 8.1

When I issue netsh wlan show profiles from command prompt on a Windows 8.1 box, it displays the following information. The account I logon this machine is an administrator role. Profiles on interface Wi-Fi: Group policy profiles (read…
kenshinji
  • 2,021
  • 4
  • 25
  • 39
6
votes
2 answers

How to modify local group policy setting programatically

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…
Aleks
  • 61
  • 1
  • 1
  • 3
6
votes
3 answers

Reading Local Group Policy / Active Directory Settings

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…
ShootTheCore
  • 449
  • 1
  • 5
  • 8
6
votes
1 answer

Force IE out of Compatibility Mode

I've read the following MSDN page: http://msdn.microsoft.com/en-en/library/cc817574.aspx And quite a few questions on SO, but I'm not entirely convinced I have the answer I want. We are currently dealing with an issue where our client is upgrading…
Phill
  • 18,398
  • 7
  • 62
  • 102
5
votes
1 answer

Create Group Policy for Specific Group

A question that has stumped me for a while. I know this is possible over domains using Active Directory and all the rest, but what about on a basic local machine running on a basic network with many users. Say this local machine is a communal work…
Daniel Nitschke
  • 101
  • 1
  • 3
  • 13
5
votes
2 answers

Auto generate outlook signature by GPO using multiple signatures

A while back i have searched for a flexible way to automatically generate a signature for different types of users. Our domain has multiple companies and each have different needs. The default scripts you find when googeling simply shows how to…
Tiele Declercq
  • 2,070
  • 2
  • 28
  • 39
5
votes
4 answers

Is there any way to programmatically add a startup script to the local group policy?

I need to write a script that can add itself to the startup scripts in the local group policy so that it can run even when no users are logged in. This can be done using gpedit.msc and going into Computer Configuration > Windows Settings > Scripts >…
Meta
  • 1,663
  • 2
  • 18
  • 29
1
2 3
32 33