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
titn003Asked:
Who is Participating?
 
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
 
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
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.

All Courses

From novice to tech pro — start learning today.