Moved ID, added ID to SingleObject

This commit is contained in:
Przemyslaw Klys
2021-08-24 18:29:11 +02:00
parent 996139ab4a
commit e56cf3bde3
+2 -1
View File
@@ -34,6 +34,7 @@
[Array] $CreateGPO['Settings'] = foreach ($Folder in $GPO.DataSet) {
foreach ($Location in $Folder.Location) {
[PSCustomObject] @{
ID = $Folder.ID
FolderType = $FolderID[$Folder.Id]
DestinationPath = $Location.DestinationPath
SecuritySID = $Location.SecurityGroup.SID.'#text'
@@ -63,8 +64,8 @@
DomainName = $GPO.DomainName
GUID = $GPO.GUID
GpoType = $GPO.GpoType
FolderType = $FolderID[$Folder.Id]
Id = $Folder.Id
FolderType = $FolderID[$Folder.Id]
DestinationPath = $Location.DestinationPath
SecuritySID = $Location.SecurityGroup.SID.'#text'
SecurityName = $Location.SecurityGroup.Name.'#text'