From e56cf3bde39d8d6d50dd6ef9bf0b08a37db65e6d Mon Sep 17 00:00:00 2001 From: Przemyslaw Klys Date: Tue, 24 Aug 2021 18:29:11 +0200 Subject: [PATCH] Moved ID, added ID to SingleObject --- Private/ConvertTo-XMLFolderRedirection.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Private/ConvertTo-XMLFolderRedirection.ps1 b/Private/ConvertTo-XMLFolderRedirection.ps1 index c43401b..2f5836e 100644 --- a/Private/ConvertTo-XMLFolderRedirection.ps1 +++ b/Private/ConvertTo-XMLFolderRedirection.ps1 @@ -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'