Admin Power
Chapter 14 of 18
Chapter 14: Set Rules Once, Apply Them Everywhere
This chapter is about Group Policy Objects, which are bundles of settings that apply to users and computers in a domain. You will learn how to list them, read a report of what one actually contains, back one up before you touch it, restore it if needed, and force a refresh. That matters because a setting that looks right in one place can be beaten by another policy, and guessing is a poor way to fix a logon problem. You will learn to look at the final result, not just at one policy on its own. After this chapter, you will be able to list policies, make a readable report, back up and restore a policy, refresh policy on demand, and explain what finally applies to a user.
2 lessons 3 learning objectives 7 related commands
Topics at a glance: Get a GPO and read its reports, Back up, restore, and refresh a GPO.
Where this chapter fits
This chapter comes after Chapter 13: Control Who Gets In and Out in the journey, so ideas from that chapter will feel familiar here.
After this chapter comes Chapter 15: Small Commands, Big Everyday Wins.
Learning objectives
By the end of this chapter, you will be able to:
- Read GPOs and their reports
- Back up and restore a GPO
- Refresh policy and read the resultant set for a user
Lessons in this chapter
Work through the lessons in order. Each lesson page has explanations, examples, common mistakes, and a knowledge check.
Lesson 1: Get a GPO and read its reports
Get-GPO lists policy objects. Get-GPOReport turns one into a readable report, and Get-GPResultantSetOfPolicy shows what actually applies to a user or computer, after all GPOs combine.
3 things to learn in this lesson
Lesson 2: Back up, restore, and refresh a GPO
Back up a GPO before you change it. Restore brings it back. Refresh applies policy now, instead of waiting for the normal refresh interval.
3 things to learn in this lesson
Related command references
These command pages are linked to lessons in this chapter. Each command page has its syntax, parameters, and examples.
Get-GPO
Lists Group Policy Objects in a domain.
From the lesson: Get a GPO and read its reports
Backup-Gpo
Backs up a GPO to a folder.
From the lesson: Back up, restore, and refresh a GPO
Restore-Gpo
Restores a GPO from a backup.
From the lesson: Back up, restore, and refresh a GPO
Import-Gpo
Imports a backed up GPO into a target GPO.
From the lesson: Back up, restore, and refresh a GPO
Invoke-GPUpdate
Forces a Group Policy refresh, locally or remotely.
From the lesson: Back up, restore, and refresh a GPO
Get-GPOReport
Generates a report for a GPO, as HTML or XML.
From the lesson: Get a GPO and read its reports
Get-GPResultantSetOfPolicy
Shows the resultant set of policy for a user or computer.
From the lesson: Get a GPO and read its reports
Tip: read the lesson first, then use the command page as a quick reference.