This commit is contained in:
2024-02-16 08:29:27 +00:00
parent be58518f3b
commit 1e6222cf9e

View File

@@ -43,12 +43,6 @@ Param
[String]
$DownloadURLGPOBackup = 'https://git.totalservice.cz/public/AD-TIER/raw/branch/main/GPO_TIER.zip'
)
Begin
@@ -230,9 +224,6 @@ Process
)
}
# DEBUG
$ADGroupMapping
#Prepare GPO
#Reference https://gallery.technet.microsoft.com/Migrate-Group-Policy-2b5067d8#content
#Change variables in the GPO migration table to suit environment by recursing through the migration table and then changing the values to suit the current environment.
@@ -282,10 +273,6 @@ Process
if ($GPOName -eq '') {$GPOName = "SEC-Admin-Workstations"}
Import-GPO -CreateIfNeeded -path "$WorkFolderPath" -BackupGpoName 'SEC-Admin-Workstations' -TargetName $GPOName -MigrationTable "$WorkFolderPath\SEC-Admin-Workstations.migtable"
# TODO
#- doplnit upozornění, aby všechny GPO politiky zkontrolovali a zvážili dopad na infastrukutru než je nalinkuji
}
End
{