Solved

How do I apply computer settings via a group policy applied to user objects?

Posted on 2008-10-06
7
5,242 Views
Last Modified: 2012-05-05
How do I apply computer settings via a group policy applied to user objects?

What I'm trying to achieve:
A set of users need to be able to format USB drives etc on any computer they use while other users will not be able to.

What I've done:
Created a group policy with following setting:
Computer Configuration>Windows Settings>Security Settings>Local Policies/Security Options>Devices>Devices:Allowed to format and eject removable media.
I've set the scope to Authenticated Users and Domain Computers
This has been applied to the relevant Users OUs

What happens:
gpresult shows the policy is being read but it does not show up at all under Computer Settings, only User Settings, where it is marked as Not Applied (Empty)



0
Comment
Question by:Axonites
  • 5
7 Comments
 

Author Comment

by:Axonites
ID: 22655935
http://technet.microsoft.com/en-us/library/cc782849.aspx
"GPO settings are divided between User Configuration, which holds settings that are applied to users when they log on, and Computer Configuration, which holds settings that are applied to computers when they start up (boot)."

Does that mean policies applied to users can never have effect on the computer as by the time the user logs in and initiates the policy, the computer has had it's policy applied already?
0
 
LVL 4

Accepted Solution

by:
lscapa earned 250 total points
ID: 22656313
Computer policies are only applied to computer objects while user policies are only applied to user objects. The exception is loopback processing which allows computer policy applied to users based on the location in AD of the computer instead. See: http://support.microsoft.com/kb/231287
 
0
 

Author Comment

by:Axonites
ID: 22656587
So if I want to enable/disable a Computer Configuration setting depending on which OU the user is in I'll have to use some other method than group policy?
0
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 

Author Comment

by:Axonites
ID: 23369702
Alternately, can I use a custom .adm file to create a policy under the User Configuration folder that changes a registry key in HKLM?

If so how?

Here's what I have so far:


CLASS USER
 
CATEGORY !!FormatUSBandRM
 
	POLICY !!FormatUSB
		KEYNAME "SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon"
 
		VALUENAME "allocatedasd"
                VALUEON 2 
		VALUEOFF 0
 
	END POLICY
 
END CATEGORY ; FormatUSBandRM
 
[strings]
FormatUSB="Allow Formatting of USB Devices and Removable Media."
FormatUSBandRM="Format USB and Removable Media"

Open in new window

0
 

Author Comment

by:Axonites
ID: 23370276
Grrr I think what I want to do might actually be impossible but it seems like such a simple thing I can't believe it would be impossible but it's driving me mental.

My custom ADM template to set who can/cannot format USB drives etc works a charm under the Machine class (yes I know there's a default option to do this in Local Policies > Security Options)
However I want to be able to have a different setting for different people who logon to the machine so I want to be able to write this for the User class so I can base the GP on the user, but the User class obviously puts everything into HKCU  

Code
CLASS Machine

CATEGORY !!categoryName

      POLICY !!policyName
      KEYNAME "SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon"
            PART !!policy DROPDOWNLIST
                  VALUENAME "allocatedasd"
                  ITEMLIST
                        NAME "Administrators" VALUE 0
                        NAME "Administrators and Power Users" VALUE 1
                        NAME "Administrators and Interactive Users" VALUE 2
                  END ITEMLIST
            END PART
      END POLICY

END CATEGORY

[strings]
categoryName="Format Removable Media"
policyName="Format Removable Media"
policy="Select who should have the ability to format removable media. ie USB drives"


Any ideas?
0
 
LVL 5

Assisted Solution

by:Jaymz_R
Jaymz_R earned 250 total points
ID: 23370381
Howdy,

Heres a suggestion.  Not sure how it will go,

but start a new OU, add a "security group" to that OU.

add the users you wish to have the ability to format the usb.

add the custom adm to that OU and enforce it.

not sure if that will work, but windows logic says it should.


~Jaymz
0
 

Author Closing Comment

by:Axonites
ID: 31503680
Couldn't get your suggestion to work Jaymz.
Have gone had to just apply this to all computers to enable the setting as some users use multiple computers this is the only way I can ensure they won't be restricted.
Awarded the points equally to those who put the effort in to answer my question.
Cheers
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article, I will show you HOW TO: Perform a Physical to Virtual (P2V) Conversion the easy way from a computer backup (image).
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…
The Bounty Board allows you to request an article or video on any technical topic, or fulfill a bounty request to earn points. Watch this video to learn how to use the Bounty Board to get the content you want, earn points, and browse submitted bount…

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question