diff --git a/modules/AdminToolbox.FileManagement/ChangeLog.md b/modules/AdminToolbox.FileManagement/ChangeLog.md index 960f57bf..2ae60ee6 100644 --- a/modules/AdminToolbox.FileManagement/ChangeLog.md +++ b/modules/AdminToolbox.FileManagement/ChangeLog.md @@ -152,4 +152,5 @@ * **1.15.115** CI Maintenance Release * **1.15.116** CI Maintenance Release * **1.15.117** CI Maintenance Release -* **1.15.118** CI Maintenance Release \ No newline at end of file +* **1.15.118** CI Maintenance Release +* **1.16.119** Fix invoke-robocopy /xd and /xf parameter data types \ No newline at end of file diff --git a/modules/AdminToolbox.FileManagement/Public/Invoke-Robocopy.ps1 b/modules/AdminToolbox.FileManagement/Public/Invoke-Robocopy.ps1 index 0fe5235a..a82f285b 100644 --- a/modules/AdminToolbox.FileManagement/Public/Invoke-Robocopy.ps1 +++ b/modules/AdminToolbox.FileManagement/Public/Invoke-Robocopy.ps1 @@ -596,9 +596,9 @@ function Invoke-Robocopy { [Parameter(ParameterSetName = 'Default')] [string]$ExcludeAttributes, [Parameter(ParameterSetName = 'Default')] - [switch]$ExcludeFileName, + [string]$ExcludeFileName, [Parameter(ParameterSetName = 'Default')] - [switch]$ExcludeDirName, + [string]$ExcludeDirName, [Parameter(ParameterSetName = 'Default')] [switch]$ExcludeChanged, [Parameter(ParameterSetName = 'Default')] @@ -1031,14 +1031,14 @@ function Invoke-Robocopy { OriginalName = '/XF' OriginalPosition = '0' Position = '2147483647' - ParameterType = 'switch' + ParameterType = 'string' NoGap = $False } ExcludeDirName = @{ OriginalName = '/XD' OriginalPosition = '0' Position = '2147483647' - ParameterType = 'switch' + ParameterType = 'string' NoGap = $False } ExcludeChanged = @{ diff --git a/modules/AdminToolbox.FileManagement/build/robocopy.crescendo.json b/modules/AdminToolbox.FileManagement/build/robocopy.crescendo.json index 3b1371cd..a1caf940 100644 --- a/modules/AdminToolbox.FileManagement/build/robocopy.crescendo.json +++ b/modules/AdminToolbox.FileManagement/build/robocopy.crescendo.json @@ -445,7 +445,7 @@ { "Name": "ExcludeFileName", "OriginalName": "/XF", - "ParameterType": "switch", + "ParameterType": "string", "Description": "File Selection Options \neXclude Files matching given names/paths/wildcards.", "ParameterSetName": [ "Default" @@ -454,7 +454,7 @@ { "Name": "ExcludeDirName", "OriginalName": "/XD", - "ParameterType": "switch", + "ParameterType": "string", "Description": "File Selection Options \neXclude Directories matching given names/paths.", "ParameterSetName": [ "Default"