This commit is contained in:
Przemyslaw Klys
2020-07-16 00:03:28 +02:00
parent f841f41de0
commit c99c33d0fa
8 changed files with 485 additions and 10 deletions
+3 -3
View File
@@ -56,9 +56,9 @@ function ConvertTo-XMLSoftwareInstallation {
#GpoCategory = $GPOEntry.GpoCategory
#GpoSettings = $GPOEntry.GpoSettings
Count = 0
Data = $null
Settings = $null
}
[Array] $CreateGPO['Data'] = foreach ($MsiInstallerr in $GPO.DataSet) {
[Array] $CreateGPO['Settings'] = foreach ($MsiInstallerr in $GPO.DataSet) {
[PSCustomObject] @{
Identifier = $MsiInstallerr.Identifier #: { 10495e9e-79c1-4a32-b278-a24cd495437f }
Name = $MsiInstallerr.Name #: Local Administrator Password Solution (2)
@@ -84,7 +84,7 @@ function ConvertTo-XMLSoftwareInstallation {
LossOfScopeAction = $MsiInstallerr.LossOfScopeAction #: Unmanage
}
}
$CreateGPO['Count'] = $CreateGPO['Data'].Count
$CreateGPO['Count'] = $CreateGPO['Settings'].Count
$CreateGPO['Linked'] = $GPO.Linked
$CreateGPO['LinksCount'] = $GPO.LinksCount
$CreateGPO['Links'] = $GPO.Links