Skip to Content
Published on
Takes approximately 1 minute to read
Post History

Active Directory/Group Policy Cheatsheet

Introduction

I always need to lookup Group Policy/Active Directory commands, I just don't touch it enough - which might be by design....

Get a User's/Workstation's Effective Policy

PowerShell
code block
Skip
gpresult /h "$(pwd)\gpo-report.html"

# And open the report in the default browser.
Invoke-Item "$(pwd)\gpo-report.html"
  • /h "html report", generate an HTML report.

Source

Force Replication between All sites/domain Controllers

PowerShell
code block
Skip
repadmin /syncall /d /e
  • /d "distinguished name", forces displaying domain controllers by their distinguished name instead their useless GUID.
  • /e "everything", forces replication between all sites.

Source