Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 288
  • Last Modified:

Group Policy Preferences Question

Within Group Polcy Preferences on server 2008 how can i do the following

if %computername%==WS1 goto end
batchfile.cmd

:end
0
titn003
Asked:
titn003
  • 2
1 Solution
 
tigermattCommented:

Group Policy Preferences and Deployed Printers are applied using the general rules of Group Policy Scope and inheritance. Thus, if a deployed printer must not be mapped on a particular computer, you have to move the computer account out of the scope of the Group Policy object, so the settings do not inherit and the policy is not applied.

The easiest method is to simply go to the Group Policy in Group Policy Management, click the "Delegation" tab, then add a Deny permission for the appropriate computer object for the "Apply Group Policy" permission.

-tigermatt
0
 
McKnifeCommented:
In GPP, you have ->item level targeting (which is nothing else but a wmi filter), to filter which computers, users, cpu types... the preferences get applied to. Look at the dialogue box behind "common" in the preference settings.
0
 
titn003Author Commented:
Mcknife

So where can i run the batch file
0
 
McKnifeCommented:
GPP tries to be an easier substitute for scripts and batch files, so it does not offer to run batch files. What's the content/purpose of the batch? Is it intended to run once or again and again?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Easily Design & Build Your Next Website

Squarespace’s all-in-one platform gives you everything you need to express yourself creatively online, whether it is with a domain, website, or online store. Get started with your free trial today, and when ready, take 10% off your first purchase with offer code 'EXPERTS'.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now