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.
Questions tagged [group-policy]
490 questions
4
votes
1 answer
Why does calling ProcessGroupPolicyEx callback cause an access violation?
I'm trying to help a colleague with some code in a client side extension. Since adding in a call to the callback, the function seems to complete ok, but an event in the Windows Event log complains about an access violation whilst processing the…

Scott Langham
- 58,735
- 39
- 131
- 204
4
votes
1 answer
Let my Application be controlled by GPOs
I am developing a windows application. I want my application to be configurable via own-defined GPOs, that the system administrator can manage my application behaviour for each group and user individually.
I've done some research, but I just could…

nikeee
- 10,248
- 7
- 40
- 66
4
votes
2 answers
Searching for an API for actions in Microsoft Active Directory
Does anyone know if there is an API for actions in Microsoft Active Directory (like: add user to group, changing group policy etc).
For example: if I want to update group policy - to block url for some user, I want to do it by the API

YRM
- 41
- 1
- 3
4
votes
0 answers
Determine why a program is blocked by Windows Defender SmartScreen
I have installed the Komodo IDE and now I like to activate my license by running file Komodo-IDE-8-Windows-SC92********.exe but it is blocked by my Windows Defender:
Windows protected your PC
Windows Defender SmartScreen prevented an unrecognized…

Wernfried Domscheit
- 54,457
- 9
- 76
- 110
4
votes
0 answers
Enable Win32 long paths not working in Windows 10
Windows 10 Version 1607 (OS Build 14393.321)
I am getting following error while building our java project in command line
Error while executing process. Cannot run program "C:\Program Files\Java\jdk1.8.0_101\jre\bin\java": CreateProcess error=206,…

Saagar
- 794
- 3
- 20
- 41
4
votes
2 answers
Mandatory Chrome Policies on Mac
I'm trying to install a private Chrome extension on OS X by modifying Chrome policies. I was able to do this successfully on Windows by editing the relevant HKEY_LOCAL_MACHINE registry, but on OS X I'm having problems.
Using the following commands,…

Tyler
- 889
- 1
- 11
- 17
4
votes
2 answers
How could you edit a specific group policy using a batch file
Im working on over 700 computers in a school district and have written a small program that i intend to write to a cd. The program is set to autorun when the disk is inserted and prompt the screen resolution of the computer and what computer the…

Matt Shank
- 41
- 1
- 1
- 3
4
votes
1 answer
Make C# application Group Policy aware
I want to make my app GPO aware. I know that it's basically just reading from a specific registry path but I still have some questions:
How do I detect GPO refreshes? There's RegisterGPNotification here:…

Stefan Koell
- 1,476
- 3
- 15
- 25
4
votes
2 answers
How do I set a Group Policy's Password Policy in C#
I am trying to retrieve a group policy from a Windows Server 2008 Active Directory and change the minimum password age, maximum password age, and minimum password length in a C# application.
Is there a way to do this? So far I have only found out…

Eric John Olson
- 43
- 5
4
votes
1 answer
Is it possible for an enterprise-installed extension to force "Allow in incognito" on?
I have developed an extension which is to be installed by enterprise policy. I want this extension to always be active, even in Incognito mode. I see that the policy setting IncognitoModeAvailability allows me to either:
1. Never allow Incognito…

Thomas McDermott
- 91
- 6
4
votes
1 answer
How to enable RDP 8.0 (From Group Policy) in windows 7 by scripting (e.g. vbScript)
Recently I have installed two windows updates KB2574819 and KB2592687 for RDP 8.0 in my 32 bit windows 7 service pack 1 PC for Remote Desktop Login. To enable the RDP 8.0 I have to enable it from the Group Policy. For this I have to run the…

JisanMahmud
- 73
- 1
- 1
- 6
4
votes
1 answer
Windows 7 Group Policy Editor- shutdown batch file not executing
Trying to run a simple batch file at windows shutdown. Filename is log.bat, contents is single line:
DEL C:\Users\tom\.VirtualBox\*.log*
I've tried placing this file at root, at windows/system32/grouppolicy/machine/scripts/shutdown, and at…

user2671522
- 41
- 1
- 3
4
votes
1 answer
Is there any way to read password policies via the WMI RSOP_XXX classes?
Those all reside in the root\RSOP\Computer namespace. The only class from which I got non-empty results is RSOP_RegistryPolicySetting, and that one only gave me settings for Windows Update and System Restore configuration.
I do know there are…

JCCyC
- 16,140
- 11
- 48
- 75
3
votes
2 answers
powershell: script to start a program with parameters?
When i run the Powershell script below i receive the error below. How do i run programs through powershell with parameters? The script will be a group policy logon.
Invoke-Expression : A positional parameter cannot be found that
accepts argument…

resolver101
- 2,155
- 11
- 41
- 53
3
votes
1 answer
How to automate Public folder calender to show in Favorite Folder of mail
How to automate the process to show my public folder calender in Mail Favorite folder?
I wanted to do it either by login script or by group policy.
I am using Microsoft Exchange server 2007 with Windows Server 2008 R2 and Domain controller running…

Sainyam
- 31
- 1
- 4