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
3
votes
0 answers
How to programatically refresh chrome policy 'ExtensionInstallBlacklist' on windows?
I need to update the Chrome policy 'ExtensionInstallBlacklist' from a desktop application on windows.
Im already able to modify the policy through the registry by adding values to…

Marcel Kirsche
- 445
- 4
- 11
3
votes
3 answers
How to install GroupPolicy module for PowerShell?
I just started writing scripts in PowerShell.
The desired script is supposed to create a local GroupPolicyObject (GPO) which will be specified afterwards. Research showed that it could be done with the New-GPO command within the GroupPolicy module…

Uno1404
- 59
- 1
- 1
- 7
3
votes
1 answer
What is the difference between the following GPO settings?
While doing some GPO work today and setting up some firewall inbound rules that I want distributed through GP I became confused between these two GPs. They function very similarly, yet I couldn't find any differences.
Computer Configuration >…

Sean Mitchell
- 447
- 2
- 21
3
votes
1 answer
How to programmatically schedule a task to run when shutting down Windows?
This is almost the same as How to schedule a task to run when shutting down windows, except I need to do it programmatically. Also, I need the guarantee that when the script is run, no application can cancel the shutdown anymore.
Is this…

Pedro d'Aquino
- 5,130
- 6
- 36
- 46
3
votes
1 answer
Can't set group policy settings on PC's with different language settings
In my program, I have to set the group policy setting of certain files to ALL APPLICATION PACKAGES. To accomplish this, I'm using the following function which takes the FilePath to a file and sets the ALL APPLICATION PACKAGES group policy on that…

jocopa3
- 796
- 1
- 10
- 29
3
votes
2 answers
Add Network Location to My Computer (Group Policy)
The shares at my company are becoming unwieldy and we have now officially ran out of letters to map shares to having exhausted A, B, H-Z. Not all of our users need access to some of these shares, but there are enough people who need access to enough…

BpH
- 41
- 1
- 4
3
votes
2 answers
Create SymLink with GPO
I have a BATCH script that makes symlinks with mklink. When I run it as an administrator or as a system account (with psexec -s -e) it works as it should. But when I try to use it in a GPO as a startup script it gives me an error "you do not have…

n01d
- 1,047
- 8
- 22
3
votes
2 answers
User installations are disabled via policy on the machine
I am creating a web app in Android using PhoneGap.
While installing node.js,*the installation gets failed showing me user installations are disabled via policy on the machine*.
How can i resolve it ?

Jay Vyas
- 2,674
- 5
- 27
- 58
3
votes
1 answer
C# How do I disable interactive login for a local user account. Similar to Network Service account
I've created a special user account for my applications use, and I need to know how to disable the interactive login feature so that it's only available as a system account. Right now any machine I deploy this application on, the user shows up in…

arri.io
- 556
- 1
- 5
- 19
3
votes
1 answer
Python get info about group policy
I'm making a program in PYTHON that gives some info about the computer, and a part of it is to get info about the Group Policy - Password Policy (The Full path in gpedit.msc is :
Local Computer Policy >> Cumputer Configuration >> Windows Settings…

Den1al
- 617
- 1
- 10
- 16
3
votes
1 answer
Windows PowerShell Import-module
On my computer in PowerShell the command
import-module GroupPolicy
fails with
import-module <<<< GroupPolicy
+ CategoryInfo : ResourceUnavailable: (GroupPolicy:String) [Import-Module], FileNotFoundException
+ FullyQualifiedErrorId :…

user1458620
- 205
- 1
- 4
- 12
3
votes
0 answers
Managing Net TCP Port Sharing Configuration through Group Policy
Our organization has an application infrastructure that consists of many WCF services deployed over many different servers on our network. We'd like to move towards using the Net TCP Port Sharing service so that we can remove the need to assign a…

mclark1129
- 7,532
- 5
- 48
- 84
3
votes
2 answers
Can we set NuGet URLs with domain policy
NuGet is just great addition for Visual Studio. And it also allows for custom NuGet repositories as long as you provide custom URLs to them.
For company-related projects we can have own NuGet repositories serving whatever libraries are needed for…

Robert Koritnik
- 103,639
- 52
- 277
- 404
2
votes
1 answer
Programmatically get localized user-friendly group policy names in Windows
Please take a look at this screenshot (gpedit.msc) of local group policy settings on my computer:
Is there any way to retrieve user-friendly (localized) group policy names (circled in the screenshot above) from a C++ program (or maybe using WMI)?

ahmd0
- 16,633
- 33
- 137
- 233
2
votes
0 answers
Changing System Audit Policies Permanently in PowerShell Script
I'm trying to change policies in Local Group Policy Editor under Computer Configuration > Windows Settings > Security Settings > Advance Audit Policy Configuration > System Audit Policy – Local Group Policy Object but using a PowerShell…

Amir Maleki
- 313
- 1
- 11