grouppolicy

Trouble getting GPO logon script to run using Active Directory Domain Services

I have just upgraded our company's domain controller from NT 4.0 to Windows 2008 Server. I used the in-place upgrade path, going first from NT 4.0 to Windows 2003 Server and then 2003 Server to 2008 Server. The orginal NT 4.0 domain was name Company. The new domain is Company.local. I have confirmed user and computer information was prop...

Set Event Log settings via GPO

How would I set the "overwrite as needed" setting on Event logs other than Application/Security/System? Specifically I'd like to apply this to the Powershell and Windows Powershell Logs, in addition to any other future logs that may be added. This needs to be applied to both server 2003 & 2008. ...

Disable "Adjust Date/Time" in Vista Home Edition

My company has got quite a number of client laptops out in the field. These laptops are running Windows Vista Home edition. I was recently asked if I could find a way to disable the user's ability to adjust the system time. My first thought was to use gpedit, but as I found this is unavailable in home edition. I then looked for reg...

How to specify .NET assembly trusts in group policy?

I have some .NET assemblies on a network share that I need to give FullTrust access to all of my users. What is the best way to do this using Group Policy? ...

Is it possible to Shut down a local pc with group policies programatically through .net application?

I have a local application running with an user than have a group policy indicating this user can’t shutdown the pc. And then I use your code, but when I ask by user and password to impersonate my app. I received the next error System.Management.ManagementException: it’s not possible to use the user’s credentials for the local connecti...

How to disable autocomplete for passwords in IE8 via GPO?

In IE6 there was a registry key hidden away that would allow you to enable autocomplete but only for usernames, not passwords. This key no longer has any effect in IE8. I can either enable or disable autocomplete for usernames and passwords, but not just one of the two. What I'm looking for is a way to enable autocomplete for username...

How to enumerate the domain wide policy setting for a specific group policy object in AD using WMI or powershell?

I would like to query the domain wide settings of a specific group policy object. How do I do that in Powershell or WMI? For instance I would like to know the value for the password policy setting 'Minimum password length' that is configured in the GPO for the entire domain. ...

GPO settings - will they overwrite registry modifications on client machine?

I have installed a windows application, whose configuration settings come from a GPO (User configuration) on a Windows Server 2003 machine. The GPO sets a few registry keys, specific to the application, on the client's registry. If i change these registry settings on the client machine via the application, will those registry settings g...

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 particular server. Edit: I am looking to find out if user "Logon on as a service" is define...

How To: Create a Group Policy Extension (Windows XP/Vista/7)

Hello. I would like to write a Group Policy Extension for my application. The config is rather complex (hierarchical) and so doing it via ADMX is not a likely option. The problem is I cannot find any sample code to help me even get started. The MSDN help (http://msdn.microsoft.com/en-us/library/aa374176%28VS.85%29.aspx) offers little in...

Changing Group Policy Setting in Windows XP

My laptops security log is getting full of access events where NETWORK SERVICE is listening for incoming traffic. The audit policy for 'Audit object access' is set for failure and I want to disable it. It fails because the windows firewall is preventing connection. When I go to the GPO editor the checkboxes for changing the settings ar...

How to set software restriction policies programatically

I would like to add software restriction policies programatically using c#. For example: Add and additional rule to disallows paint.exe to run. Unfortunately I don't have the slightest idea how I could achieve this in c# Thx in advance, Tom ...

Can ClickOnce deployment be used with USAF-SDC policies?

Can Windows Forms ClickOnce deployment be used within USAF-SDC guidelines? From the white paper below, it appears that the SDC policy is a contract between Microsoft and USAF. Since Microsoft also built ClickOnce/.net framework/Windows Forms, do they allow "ClickOnce" deployments within SDC? I know that I should probably just call M...

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: http://msdn.microsoft.com/en-us/library/aa374404(VS.85).aspx but is there anything ready baked for C# out there or at Microsoft? What...

General Question about Windows 7(Kiosk) Group Policy Lock down of Silverlight Out of Browser.

I'm hoping to lock down, a Windows 7 laptop into more or less a kiosk type mode. Basically login to Windows 7, automatically open up a silverlight out of browser application. It should also prevent the removal of the silverlight app. I can think of a few dirty ways to do this off the top of my head, I'm just hoping for a more holistic...

Why Account policy is off

Possible Duplicate: Why Account is off Hi In group policy, local policy and account policy have a lock icon and have been disabled. I cant config them. I don't know why? ...

Are environmental variables language specific?

I need to setup a script in group policy that we be used in different regions of the world. Are environmental variables such as %ProgramFiles% language specific? I'm hoping that a script of %ProgramFiles% can be used both in spain and france even though their language is setup for the specific regions. Thanks ...

Where do I get Microsoft.GroupPolicy.Management.dll?

Having a look at this code http://msdn.microsoft.com/en-us/library/ee862406%28VS.85%29.aspx It says "Add the Microsoft.GroupPolicy.Management assembly to your project" but i cant seem to find out where to get Microsoft.GroupPolicy.Management from. ...

How to programmatically schedule a task to run when shutting down Windows?

This is almost the same as http://stackoverflow.com/questions/101647/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 possible? Thanks. Update, with a little context: My comp...