Skip to content

Commit

Permalink
fixed a minor bug with group policy
Browse files Browse the repository at this point in the history
  • Loading branch information
OneLogicalMyth committed Oct 5, 2016
1 parent 0b4c1e5 commit ffc9908
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Config Files/Group Policy/New-GroupPolicyXML.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ $XMLs = Get-ChildItem -File -Recurse -Filter gpreport.xml | Select-Object -Expan

$GPOs = Foreach($XML IN $XMLs)
{
$GPOGuid = ((Split-Path $XMLs[0]).split('\') | Select -Last 1).Trim()
$GPOGuid = ((Split-Path $XML).split('\') | Select -Last 1).Trim()
$GPOName = ([xml](Get-Content $XML)).GPO.Name

@"
Expand Down
16 changes: 8 additions & 8 deletions Config Files/GroupPolicy.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,52 +11,52 @@
<LinksTo>
<Link>OU=Servers,OU=Live</Link>
</LinksTo>
<BackupID>{1C8C8D8D-E2A0-4606-AE1F-70F9807573D8}</BackupID>
<BackupID>{732165DF-AA90-4000-832D-D9E18B165C7A}</BackupID>
</GPO>
<GPO>
<Name>BOTH-People-U</Name>
<LinksTo>
<Link>OU=People,OU=Live</Link>
<Link>OU=People,OU=Test</Link>
</LinksTo>
<BackupID>{1C8C8D8D-E2A0-4606-AE1F-70F9807573D8}</BackupID>
<BackupID>{932FF507-2E2A-4412-A527-5B6E80B9EEBD}</BackupID>
</GPO>
<GPO>
<Name>Default Domain Policy</Name>
<LinksTo />
<BackupID>{1C8C8D8D-E2A0-4606-AE1F-70F9807573D8}</BackupID>
<BackupID>{97C015B7-F66B-4B5F-8255-F791CF221B63}</BackupID>
</GPO>
<GPO>
<Name>LIVE-Client_Devices-C</Name>
<LinksTo>
<Link>OU=Client Devices,OU=Live</Link>
</LinksTo>
<BackupID>{1C8C8D8D-E2A0-4606-AE1F-70F9807573D8}</BackupID>
<BackupID>{C043F3D2-4E56-4C5D-89B7-D4A188D17906}</BackupID>
</GPO>
<GPO>
<Name>LIVE-Admin_Users-U</Name>
<LinksTo>
<Link>OU=Admins,OU=Administrative</Link>
</LinksTo>
<BackupID>{1C8C8D8D-E2A0-4606-AE1F-70F9807573D8}</BackupID>
<BackupID>{CB0A509F-DD51-4B5D-82F4-5E3CD2C5947C}</BackupID>
</GPO>
<GPO>
<Name>TEST-Server-C</Name>
<LinksTo>
<Link>OU=Servers,OU=Test</Link>
</LinksTo>
<BackupID>{1C8C8D8D-E2A0-4606-AE1F-70F9807573D8}</BackupID>
<BackupID>{E91C2BBC-367E-43D0-81A2-EF4B48A1E036}</BackupID>
</GPO>
<GPO>
<Name>Default Domain Controllers Policy</Name>
<LinksTo />
<BackupID>{1C8C8D8D-E2A0-4606-AE1F-70F9807573D8}</BackupID>
<BackupID>{E9C6EBA4-B600-40E2-AD99-9A0626FE16DC}</BackupID>
</GPO>
<GPO>
<Name>TEST-Client_Devices-C</Name>
<LinksTo>
<Link>OU=Client Devices,OU=Test</Link>
</LinksTo>
<BackupID>{1C8C8D8D-E2A0-4606-AE1F-70F9807573D8}</BackupID>
<BackupID>{ED2BFC80-36BE-41C5-B72F-CE3232B291A1}</BackupID>
</GPO>
</GroupPolicy>

0 comments on commit ffc9908

Please sign in to comment.