This simple command allows you to get the GPO GUID in your Active Directory domain. Since Windows 2012, you can use the cmdlet get-gpo to play with Group policies get-gpo -all | select id Reference Get-GPO Gets one GPO or
Retrieve the Active Directory functional levels
You can retrieve the Active Directory forest functional level with the powershell cmdlet Get-ADForest import-module activedirectory Get-ADForest | select forestmode For the domain functional level, you can use the powershell cmdlet Get-ADDomain Get-ADDomain | select domainmode Reference Get-ADForest Syntax Get-ADForest