diff --git a/src/PowerShellGet/private/functions/Set-InstalledModulesVariable.ps1 b/src/PowerShellGet/private/functions/Set-InstalledModulesVariable.ps1 index 04a77f0d..9c358aac 100644 --- a/src/PowerShellGet/private/functions/Set-InstalledModulesVariable.ps1 +++ b/src/PowerShellGet/private/functions/Set-InstalledModulesVariable.ps1 @@ -11,6 +11,7 @@ function Set-InstalledModulesVariable $GetChildItemParams = @{ Path = $location Recurse = $true + Force = $true Filter = $script:PSGetItemInfoFileName ErrorAction = 'SilentlyContinue' WarningAction = 'SilentlyContinue'