SlideShare a Scribd company logo
1 of 31
GROUP POLICY
PREFERENCES
Easing your way out of logon
scripts
Rob Dunn
WHY USE GROUP POLICY
PREFERENCES?
“During your career as an IT professional, you’ve likely mapped
network drives for users. You probably configured them using logon
scripts. This required you to write and debug the logon script, store
the script in a central location, and then run the script by configuring
User objects in Active Directory® directory service or by creating a
Group Policy object (GPO). Think about all the other settings you’ve
configured using logon scripts or similar methods. A simple, central
system to configure and deploy these settings without requiring you
to make scattered changes that are easily forgotten and seldom
documented would certainly help reduce costs and make your job
easier, wouldn’t it?”
-Microsoft
WHY USE GROUP POLICY
PREFERENCES OVER LOGON
SCRIPTS?
 Writing and debugging logon scripts can be troublesome for
newcomers
 It takes a moderate amount of coding/logic to specify certain
settings to apply to certain people or computers through scripting
 Scripts typically occur at logon/logoff
 Group Policies are applied periodically throughout the day or
when forced using gpupdate (can be done remotely)
 Group Policy Preferences can be run under the logged on user’s
security context
 Group Policies are easier to navigate and edit for people who
have grown accustomed to a GUI.
GROUP POLICY PREFERENCES VS.
SETTINGS. WHAT’S THE DIFFERENCE?
Preferences: Desired settings for a user or computer.
Maybe they will need to be changed later at the console.
Settings: Required settings for a user or computer. The
settings cannot be modified by the end-user.
Group Policy Preferences Group Policy Settings
Enforcement
 Preferences are not enforced
 User interface is not disabled
 Can be refreshed or applied once
 Settings are enforced
 User interface is disabled
 Settings are refreshed
Flexibility
 Easily create preference items for
registry settings, files, and so on
 Import individual registry settings or
entire registry branches from a local
or a remote computer
 Adding policy settings requires
application support and creating
administrative templates
 Cannot create policy settings to manage
files, folders, and so on
Local Policy  Not available in local Group Policy  Available in local Group Policy
Awareness  Supports non-Group Policy-aware
applications
 Requires Group Policy-aware
applications
Storage
 Original settings are overwritten
 Removing the preference item does
not restore the original setting
 Original settings are not changed
 Stored in registry Policy branches
 Removing the policy setting restores the
original settings
Targeting and
Filtering
 Targeting is granular, with a user
interface for each type of targeting
item
 Supports targeting at the individual
preference item level
 Filtering is based on Windows
Management Instrumentation (WMI) and
requires writing WMI queries
 Supports filtering at a GPO level
User Interface
 Provides a familiar, easy-to-use
interface for configuring most
settings
 Provides an alternative user interface for
most policy settings
WHAT YOU’LL NEED: ADMIN SIDE
Where do the new preferences come from?
Windows Vista (or newer) or Windows 2008 with GPMC installed
Preferences can be edited/viewed using the supported OS’s above.
WHAT YOU’LL NEED TO APPLY
PREFERENCES: CLIENT SIDE
 Windows Vista or newer
 Windows Server 2003 SP1+
 Windows XP SP2+
* Windows 7 & Server 2008 already have the needed extensions built in. XMLLite Low-
Level XML Parser is included with IE7+ and/or Server 2003 SP2 /Windows XP SP3
installations.
Info and downloads: Microsoft TechNet - http://goo.gl/cxtun
Windows Networking.com article - http://goo.gl/naKvc
Client Side Extensions* (CSEs) and XMLLite low-level XML Parser*
DEPLOYING CSE’S – METHODS
 MS WSUS (Windows Server Update Services – FREE)
 MS System Configuration Center Manager (i.e. SCCM aka SMS
in the old days) or other systems management tool like Altiris or
Zenworks.
 Logon/Logoff Scripts
 Scheduled Tasks
 Manually via PSExec
 Sneakernet
DEPLOYING XMLLITE PARSER
If you do have WSUS, you don’t have the option to deploy XMLLite
automatically.
But…some other things you CAN deploy with WSUS, which
subsequently installs XMLLite parser as part of its package:
 IE7+
 XP SP3/Server 2003 SP2
* Installation not needed for Windows Vista or higher
Info and downloads: Microsoft TechNet - http://goo.gl/cxtun
WHAT CAN YOU DO WITH GPP?
 ODBC Data Sources
 User and Group Preferences
 Power Settings
 Printers & Mapped Drives
 Scheduled Tasks & Services
 Copy, Update or Remove Files/Folders
 Application Shortcuts
 INI Files/Registry Entries
 VPN Connections (Windows-based)
 Disable USB for specific device types
 Etc.
WHAT CAN’T YOU DO?
Group Policy Preferences are not intended to be able to run
processes at startup. You will need to utilize some sort of script or
other method to accomplish this (Scripts, Altiris, SCCM, etc.).
EASY TO USE
Adding a user group to the local Administrators Group
TARGETING SETTINGS TO COMPUTER
OR USER
Using the prior method of Group Policy Settings:
In Group Policy Settings, this was called WMI Filtering. WMI Filtering
required some knowledge of WQL (like SQL). Queries could be written
so that policies could be applied to computers or users that fulfilled the
criteria specified in the query.
For example:
RootCimV2; Select * from Win32_OperatingSystem where
Caption = "Microsoft Windows XP Professional“
This would apply the ENTIRE policy only if a computer had Windows
XP Professional Installed.
TARGETING SETTINGS TO COMPUTER
OR USER USING ITEM LEVEL
TARGETING
Item Level Targeting allows for granular deployment of preferences and
configurations to computer/user objects based upon a number of different
criteria:
 If a computer has a battery
 If an object is a member of a particular security group
 If a computer has a specific IP address
 If an object is a member of a particular OU (Organizational Unit)
 Etc.
 …or a combination of (but not limited to) the prior items
This can be done using a familiar Windows tree-navigable interface.
One policy can contain different settings applied to objects using different
criteria. No need for multiple policies applying the same settings to different
OS’s (for example).
Examples of criteria you can use for Item Level Targeting
Example 1: Map a drive based on group membership
Example 1: Map a drive based on group membership
Create, Replace, Update or
Delete mapping
Specify alternate credentials
(optional, common tab
allows further settings)
Example 1: Map a drive based on group membership
Map with user
permissions
Click here for Item-Level
Targeting…
Example 1: Map a drive based on group membership
Example 1: Map a drive based on group membership
Example 1: Map a drive based on group membership
Note this is a Control
Panel Preference
Example 2: Configure Power Management Settings
Note this is a Control
Panel Preference
Example 2: Configure Power Management Settings
Example 3: Reset Local Administrator Password
Computer Configuration
Example 3: Reset Local Administrator Password
Addendum: The F5-F8 Keys
A WORD ABOUT F5-F8 KEYS
Some preferences have multiple options within a configuration window.
IE preferences, power settings and Start Menu options are a good
example of these.
It is important to note that you can control these preferences within the
window either individually, or entirely by using the F5 thru F8 keys on
your keyboard. Here’s what they do:
F5 – activates all visible options (green)
F6 – activates only the option that currently has focus (green)
F7 – deactivates only the option that currently has focus (dashed red)
F8 – deactivates all visible options (dashed red)
These are extremely useful if you only want to configure a single
preference out of a large grouping.
Addendum: The F5-F8 Keys
A WORD ABOUT F5-F8 KEYS
Variables can be used in some situations:
file, registry, and drive operations are good
examples. Press ‘F3’ when in an
appropriate field to view them.
Example: To map a drive to a folder
named after the computer on a
share…you could use
servershare%ComputerName%
Note that %LogonUser% is used as the
user name variable as opposed to
%UserName%;
See http://goo.gl/d0NpaV
VARIABLES AVAILABLE FOR USE
SUMMARY
 If you have Windows 2008 or Windows Vista (or higher) on your network, you
can use Group Policy Preferences through the GPMC.
 GPP is typically not always considered a way to secure an object, but to
configure default system preferences for a user/computer.
 Group Policy SETTINGS are used to disallow system preferences from being
altered.
 You can specify many preferences within the same policy for a variety of
combinations of user and computer objects using Item Level Targeting
 Use the F5-F8 keys to enable/disable individual or all options in a window
which contain many preferences
 Since Group Policies are applied periodically throughout the day by default,
many preferences will be set throughout the day as the policy refreshes
(some limitations apply with settings set get set when “run in logged-on user’s
security context”).
 You can replace a lot of the functionality of a logon script with GPP, while
easing the burden of maintenance for your IT staff.
 You still need a way of running processes at user startup – i.e. via script or
other alternative method to GPP.
LINKS
Group Policy Preferences: Getting Started (includes downloads for
clients):
http://goo.gl/cxtun
Microsoft Group Policy Home Page:
http://goo.gl/rt2sn
Group Policy Preferences Overview (Doc):
http://goo.gl/fzpF7
10 things GPP can do better than your current script
http://goo.gl/QmSjV
Environment Variables in GP Preferences
http://goo.gl/d0NpaV
QUESTIONS?
Rob Dunn
http://goo.gl/x79Wv

More Related Content

What's hot

Introduction to Active Directory
Introduction to Active DirectoryIntroduction to Active Directory
Introduction to Active Directorythoms1i
 
What is active directory
What is active directoryWhat is active directory
What is active directoryAdeel Khurram
 
Active directory domain service
Active directory domain serviceActive directory domain service
Active directory domain serviceFestus Oriaku
 
Microsoft Active Directory.pptx
Microsoft Active Directory.pptxMicrosoft Active Directory.pptx
Microsoft Active Directory.pptxmasbulosoke
 
Presentation On Group Policy in Windows Server 2012 R2 By Barek-IT
Presentation On Group Policy in Windows Server 2012 R2 By Barek-ITPresentation On Group Policy in Windows Server 2012 R2 By Barek-IT
Presentation On Group Policy in Windows Server 2012 R2 By Barek-ITMd. Abdul Barek
 
Group Policy Windows Server 2008
Group Policy Windows Server 2008Group Policy Windows Server 2008
Group Policy Windows Server 2008Unitek Eduation
 
User Administration in Linux
User Administration in LinuxUser Administration in Linux
User Administration in LinuxSAMUEL OJO
 
Active directory
Active directory Active directory
Active directory deshvikas
 
Active Directory Services
Active Directory ServicesActive Directory Services
Active Directory ServicesVarun Arora
 
2.1 users & groups
2.1 users & groups2.1 users & groups
2.1 users & groupsMuuluu
 
10 implementing GPOs
10 implementing GPOs10 implementing GPOs
10 implementing GPOsHameda Hurmat
 
Active directory and application
Active directory and applicationActive directory and application
Active directory and applicationaminpathan11
 
Active-Directory-Domain-Services.pptx
Active-Directory-Domain-Services.pptxActive-Directory-Domain-Services.pptx
Active-Directory-Domain-Services.pptxMeriemBalhaddad
 

What's hot (20)

Introduction to Active Directory
Introduction to Active DirectoryIntroduction to Active Directory
Introduction to Active Directory
 
Linux and DNS Server
Linux and DNS ServerLinux and DNS Server
Linux and DNS Server
 
What is active directory
What is active directoryWhat is active directory
What is active directory
 
Active directory domain service
Active directory domain serviceActive directory domain service
Active directory domain service
 
Active directory slides
Active directory slidesActive directory slides
Active directory slides
 
Microsoft Active Directory.pptx
Microsoft Active Directory.pptxMicrosoft Active Directory.pptx
Microsoft Active Directory.pptx
 
Presentation On Group Policy in Windows Server 2012 R2 By Barek-IT
Presentation On Group Policy in Windows Server 2012 R2 By Barek-ITPresentation On Group Policy in Windows Server 2012 R2 By Barek-IT
Presentation On Group Policy in Windows Server 2012 R2 By Barek-IT
 
Group Policy Windows Server 2008
Group Policy Windows Server 2008Group Policy Windows Server 2008
Group Policy Windows Server 2008
 
User Administration in Linux
User Administration in LinuxUser Administration in Linux
User Administration in Linux
 
Active directory
Active directory Active directory
Active directory
 
Active Directory
Active DirectoryActive Directory
Active Directory
 
Group Policy
Group PolicyGroup Policy
Group Policy
 
Windows server
Windows serverWindows server
Windows server
 
Active Directory Services
Active Directory ServicesActive Directory Services
Active Directory Services
 
Systems Administration
Systems AdministrationSystems Administration
Systems Administration
 
2.1 users & groups
2.1 users & groups2.1 users & groups
2.1 users & groups
 
10 implementing GPOs
10 implementing GPOs10 implementing GPOs
10 implementing GPOs
 
Active directory and application
Active directory and applicationActive directory and application
Active directory and application
 
Active Directory
Active Directory Active Directory
Active Directory
 
Active-Directory-Domain-Services.pptx
Active-Directory-Domain-Services.pptxActive-Directory-Domain-Services.pptx
Active-Directory-Domain-Services.pptx
 

Similar to Group policy preferences

Ad group policy1
Ad group policy1Ad group policy1
Ad group policy1denogx
 
10 things group policy preferences does better
10 things group policy preferences does better10 things group policy preferences does better
10 things group policy preferences does betterGol D Roger
 
Using GPOs to Configure and Tune Desktops
Using GPOs to Configure and Tune DesktopsUsing GPOs to Configure and Tune Desktops
Using GPOs to Configure and Tune DesktopsUnidesk Corporation
 
Window 2003 server group policy AD
Window 2003 server group policy ADWindow 2003 server group policy AD
Window 2003 server group policy ADsentmery5
 
Win Connections Group Policy Changes (Harold W)
Win Connections   Group Policy Changes (Harold W)Win Connections   Group Policy Changes (Harold W)
Win Connections Group Policy Changes (Harold W)Harold Wong
 
Win Connections Group Policy Changes ( Harold W)
Win  Connections    Group  Policy  Changes ( Harold W)Win  Connections    Group  Policy  Changes ( Harold W)
Win Connections Group Policy Changes ( Harold W)Harold Wong
 
Environment Manager Policy
Environment Manager PolicyEnvironment Manager Policy
Environment Manager PolicyIvanti
 
Chapter09 Implementing And Using Group Policy
Chapter09      Implementing And  Using  Group  PolicyChapter09      Implementing And  Using  Group  Policy
Chapter09 Implementing And Using Group PolicyRaja Waseem Akhtar
 
Group Policy Preferences, Templates, And Scripting
Group Policy Preferences, Templates, And ScriptingGroup Policy Preferences, Templates, And Scripting
Group Policy Preferences, Templates, And ScriptingMicrosoft TechNet
 
Grid Control
Grid ControlGrid Control
Grid Controlbcole23
 
TechNet Live spor 1 sesjon 2 - sc-forefront 2
TechNet Live spor 1   sesjon 2 - sc-forefront 2TechNet Live spor 1   sesjon 2 - sc-forefront 2
TechNet Live spor 1 sesjon 2 - sc-forefront 2Anders Borchsenius
 
MSI / Windows Installer for NGN 'Dummies'
MSI / Windows Installer for NGN 'Dummies'MSI / Windows Installer for NGN 'Dummies'
MSI / Windows Installer for NGN 'Dummies'Roel van Bueren
 
Chapter14 Windows Server 2003 Security Features
Chapter14      Windows  Server 2003  Security  FeaturesChapter14      Windows  Server 2003  Security  Features
Chapter14 Windows Server 2003 Security FeaturesRaja Waseem Akhtar
 
Windows tuning guide_for_vspace
Windows tuning guide_for_vspaceWindows tuning guide_for_vspace
Windows tuning guide_for_vspacekaduger
 
Windows 7 in 60 minutes - New Horizons Bulgaria
Windows 7 in 60 minutes - New Horizons BulgariaWindows 7 in 60 minutes - New Horizons Bulgaria
Windows 7 in 60 minutes - New Horizons BulgariaNew Horizons Bulgaria
 
Windows Accelerate IT Pro Bootcamp: Platform Delivery (Module 2 of 8)
Windows Accelerate IT Pro Bootcamp: Platform Delivery (Module 2 of 8)Windows Accelerate IT Pro Bootcamp: Platform Delivery (Module 2 of 8)
Windows Accelerate IT Pro Bootcamp: Platform Delivery (Module 2 of 8)Intergen
 
Find it don't waste
Find it   don't wasteFind it   don't waste
Find it don't wasteBhairesh M
 

Similar to Group policy preferences (20)

70 640 Lesson07 Ppt 041009
70 640 Lesson07 Ppt 04100970 640 Lesson07 Ppt 041009
70 640 Lesson07 Ppt 041009
 
Ad group policy1
Ad group policy1Ad group policy1
Ad group policy1
 
10 things group policy preferences does better
10 things group policy preferences does better10 things group policy preferences does better
10 things group policy preferences does better
 
Using GPOs to Configure and Tune Desktops
Using GPOs to Configure and Tune DesktopsUsing GPOs to Configure and Tune Desktops
Using GPOs to Configure and Tune Desktops
 
Window 2003 server group policy AD
Window 2003 server group policy ADWindow 2003 server group policy AD
Window 2003 server group policy AD
 
70 640 Lesson08 Ppt 041009
70 640 Lesson08 Ppt 04100970 640 Lesson08 Ppt 041009
70 640 Lesson08 Ppt 041009
 
Win Connections Group Policy Changes (Harold W)
Win Connections   Group Policy Changes (Harold W)Win Connections   Group Policy Changes (Harold W)
Win Connections Group Policy Changes (Harold W)
 
Win Connections Group Policy Changes ( Harold W)
Win  Connections    Group  Policy  Changes ( Harold W)Win  Connections    Group  Policy  Changes ( Harold W)
Win Connections Group Policy Changes ( Harold W)
 
Environment Manager Policy
Environment Manager PolicyEnvironment Manager Policy
Environment Manager Policy
 
Chapter09 Implementing And Using Group Policy
Chapter09      Implementing And  Using  Group  PolicyChapter09      Implementing And  Using  Group  Policy
Chapter09 Implementing And Using Group Policy
 
Group Policy Preferences, Templates, And Scripting
Group Policy Preferences, Templates, And ScriptingGroup Policy Preferences, Templates, And Scripting
Group Policy Preferences, Templates, And Scripting
 
Grid Control
Grid ControlGrid Control
Grid Control
 
TechNet Live spor 1 sesjon 2 - sc-forefront 2
TechNet Live spor 1   sesjon 2 - sc-forefront 2TechNet Live spor 1   sesjon 2 - sc-forefront 2
TechNet Live spor 1 sesjon 2 - sc-forefront 2
 
MSI / Windows Installer for NGN 'Dummies'
MSI / Windows Installer for NGN 'Dummies'MSI / Windows Installer for NGN 'Dummies'
MSI / Windows Installer for NGN 'Dummies'
 
Chapter14 Windows Server 2003 Security Features
Chapter14      Windows  Server 2003  Security  FeaturesChapter14      Windows  Server 2003  Security  Features
Chapter14 Windows Server 2003 Security Features
 
Rapidly deploying software
Rapidly deploying softwareRapidly deploying software
Rapidly deploying software
 
Windows tuning guide_for_vspace
Windows tuning guide_for_vspaceWindows tuning guide_for_vspace
Windows tuning guide_for_vspace
 
Windows 7 in 60 minutes - New Horizons Bulgaria
Windows 7 in 60 minutes - New Horizons BulgariaWindows 7 in 60 minutes - New Horizons Bulgaria
Windows 7 in 60 minutes - New Horizons Bulgaria
 
Windows Accelerate IT Pro Bootcamp: Platform Delivery (Module 2 of 8)
Windows Accelerate IT Pro Bootcamp: Platform Delivery (Module 2 of 8)Windows Accelerate IT Pro Bootcamp: Platform Delivery (Module 2 of 8)
Windows Accelerate IT Pro Bootcamp: Platform Delivery (Module 2 of 8)
 
Find it don't waste
Find it   don't wasteFind it   don't waste
Find it don't waste
 

Recently uploaded

How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?XfilesPro
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2Hyundai Motor Group
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraDeakin University
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 

Recently uploaded (20)

How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning era
 
The transition to renewables in India.pdf
The transition to renewables in India.pdfThe transition to renewables in India.pdf
The transition to renewables in India.pdf
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 

Group policy preferences

  • 1. GROUP POLICY PREFERENCES Easing your way out of logon scripts Rob Dunn
  • 2. WHY USE GROUP POLICY PREFERENCES? “During your career as an IT professional, you’ve likely mapped network drives for users. You probably configured them using logon scripts. This required you to write and debug the logon script, store the script in a central location, and then run the script by configuring User objects in Active Directory® directory service or by creating a Group Policy object (GPO). Think about all the other settings you’ve configured using logon scripts or similar methods. A simple, central system to configure and deploy these settings without requiring you to make scattered changes that are easily forgotten and seldom documented would certainly help reduce costs and make your job easier, wouldn’t it?” -Microsoft
  • 3. WHY USE GROUP POLICY PREFERENCES OVER LOGON SCRIPTS?  Writing and debugging logon scripts can be troublesome for newcomers  It takes a moderate amount of coding/logic to specify certain settings to apply to certain people or computers through scripting  Scripts typically occur at logon/logoff  Group Policies are applied periodically throughout the day or when forced using gpupdate (can be done remotely)  Group Policy Preferences can be run under the logged on user’s security context  Group Policies are easier to navigate and edit for people who have grown accustomed to a GUI.
  • 4. GROUP POLICY PREFERENCES VS. SETTINGS. WHAT’S THE DIFFERENCE? Preferences: Desired settings for a user or computer. Maybe they will need to be changed later at the console. Settings: Required settings for a user or computer. The settings cannot be modified by the end-user.
  • 5. Group Policy Preferences Group Policy Settings Enforcement  Preferences are not enforced  User interface is not disabled  Can be refreshed or applied once  Settings are enforced  User interface is disabled  Settings are refreshed Flexibility  Easily create preference items for registry settings, files, and so on  Import individual registry settings or entire registry branches from a local or a remote computer  Adding policy settings requires application support and creating administrative templates  Cannot create policy settings to manage files, folders, and so on Local Policy  Not available in local Group Policy  Available in local Group Policy Awareness  Supports non-Group Policy-aware applications  Requires Group Policy-aware applications Storage  Original settings are overwritten  Removing the preference item does not restore the original setting  Original settings are not changed  Stored in registry Policy branches  Removing the policy setting restores the original settings Targeting and Filtering  Targeting is granular, with a user interface for each type of targeting item  Supports targeting at the individual preference item level  Filtering is based on Windows Management Instrumentation (WMI) and requires writing WMI queries  Supports filtering at a GPO level User Interface  Provides a familiar, easy-to-use interface for configuring most settings  Provides an alternative user interface for most policy settings
  • 6. WHAT YOU’LL NEED: ADMIN SIDE Where do the new preferences come from? Windows Vista (or newer) or Windows 2008 with GPMC installed Preferences can be edited/viewed using the supported OS’s above.
  • 7. WHAT YOU’LL NEED TO APPLY PREFERENCES: CLIENT SIDE  Windows Vista or newer  Windows Server 2003 SP1+  Windows XP SP2+ * Windows 7 & Server 2008 already have the needed extensions built in. XMLLite Low- Level XML Parser is included with IE7+ and/or Server 2003 SP2 /Windows XP SP3 installations. Info and downloads: Microsoft TechNet - http://goo.gl/cxtun Windows Networking.com article - http://goo.gl/naKvc Client Side Extensions* (CSEs) and XMLLite low-level XML Parser*
  • 8. DEPLOYING CSE’S – METHODS  MS WSUS (Windows Server Update Services – FREE)  MS System Configuration Center Manager (i.e. SCCM aka SMS in the old days) or other systems management tool like Altiris or Zenworks.  Logon/Logoff Scripts  Scheduled Tasks  Manually via PSExec  Sneakernet
  • 9. DEPLOYING XMLLITE PARSER If you do have WSUS, you don’t have the option to deploy XMLLite automatically. But…some other things you CAN deploy with WSUS, which subsequently installs XMLLite parser as part of its package:  IE7+  XP SP3/Server 2003 SP2 * Installation not needed for Windows Vista or higher Info and downloads: Microsoft TechNet - http://goo.gl/cxtun
  • 10. WHAT CAN YOU DO WITH GPP?  ODBC Data Sources  User and Group Preferences  Power Settings  Printers & Mapped Drives  Scheduled Tasks & Services  Copy, Update or Remove Files/Folders  Application Shortcuts  INI Files/Registry Entries  VPN Connections (Windows-based)  Disable USB for specific device types  Etc.
  • 11. WHAT CAN’T YOU DO? Group Policy Preferences are not intended to be able to run processes at startup. You will need to utilize some sort of script or other method to accomplish this (Scripts, Altiris, SCCM, etc.).
  • 12. EASY TO USE Adding a user group to the local Administrators Group
  • 13. TARGETING SETTINGS TO COMPUTER OR USER Using the prior method of Group Policy Settings: In Group Policy Settings, this was called WMI Filtering. WMI Filtering required some knowledge of WQL (like SQL). Queries could be written so that policies could be applied to computers or users that fulfilled the criteria specified in the query. For example: RootCimV2; Select * from Win32_OperatingSystem where Caption = "Microsoft Windows XP Professional“ This would apply the ENTIRE policy only if a computer had Windows XP Professional Installed.
  • 14. TARGETING SETTINGS TO COMPUTER OR USER USING ITEM LEVEL TARGETING Item Level Targeting allows for granular deployment of preferences and configurations to computer/user objects based upon a number of different criteria:  If a computer has a battery  If an object is a member of a particular security group  If a computer has a specific IP address  If an object is a member of a particular OU (Organizational Unit)  Etc.  …or a combination of (but not limited to) the prior items This can be done using a familiar Windows tree-navigable interface. One policy can contain different settings applied to objects using different criteria. No need for multiple policies applying the same settings to different OS’s (for example).
  • 15. Examples of criteria you can use for Item Level Targeting
  • 16. Example 1: Map a drive based on group membership
  • 17. Example 1: Map a drive based on group membership Create, Replace, Update or Delete mapping Specify alternate credentials (optional, common tab allows further settings)
  • 18. Example 1: Map a drive based on group membership Map with user permissions Click here for Item-Level Targeting…
  • 19. Example 1: Map a drive based on group membership
  • 20. Example 1: Map a drive based on group membership
  • 21. Example 1: Map a drive based on group membership
  • 22. Note this is a Control Panel Preference Example 2: Configure Power Management Settings
  • 23. Note this is a Control Panel Preference Example 2: Configure Power Management Settings
  • 24. Example 3: Reset Local Administrator Password Computer Configuration
  • 25. Example 3: Reset Local Administrator Password
  • 26. Addendum: The F5-F8 Keys A WORD ABOUT F5-F8 KEYS Some preferences have multiple options within a configuration window. IE preferences, power settings and Start Menu options are a good example of these. It is important to note that you can control these preferences within the window either individually, or entirely by using the F5 thru F8 keys on your keyboard. Here’s what they do: F5 – activates all visible options (green) F6 – activates only the option that currently has focus (green) F7 – deactivates only the option that currently has focus (dashed red) F8 – deactivates all visible options (dashed red) These are extremely useful if you only want to configure a single preference out of a large grouping.
  • 27. Addendum: The F5-F8 Keys A WORD ABOUT F5-F8 KEYS
  • 28. Variables can be used in some situations: file, registry, and drive operations are good examples. Press ‘F3’ when in an appropriate field to view them. Example: To map a drive to a folder named after the computer on a share…you could use servershare%ComputerName% Note that %LogonUser% is used as the user name variable as opposed to %UserName%; See http://goo.gl/d0NpaV VARIABLES AVAILABLE FOR USE
  • 29. SUMMARY  If you have Windows 2008 or Windows Vista (or higher) on your network, you can use Group Policy Preferences through the GPMC.  GPP is typically not always considered a way to secure an object, but to configure default system preferences for a user/computer.  Group Policy SETTINGS are used to disallow system preferences from being altered.  You can specify many preferences within the same policy for a variety of combinations of user and computer objects using Item Level Targeting  Use the F5-F8 keys to enable/disable individual or all options in a window which contain many preferences  Since Group Policies are applied periodically throughout the day by default, many preferences will be set throughout the day as the policy refreshes (some limitations apply with settings set get set when “run in logged-on user’s security context”).  You can replace a lot of the functionality of a logon script with GPP, while easing the burden of maintenance for your IT staff.  You still need a way of running processes at user startup – i.e. via script or other alternative method to GPP.
  • 30. LINKS Group Policy Preferences: Getting Started (includes downloads for clients): http://goo.gl/cxtun Microsoft Group Policy Home Page: http://goo.gl/rt2sn Group Policy Preferences Overview (Doc): http://goo.gl/fzpF7 10 things GPP can do better than your current script http://goo.gl/QmSjV Environment Variables in GP Preferences http://goo.gl/d0NpaV