diff --git a/vCheck.ps1 b/vCheck.ps1 index a54b4138..888572f8 100644 --- a/vCheck.ps1 +++ b/vCheck.ps1 @@ -564,7 +564,7 @@ if ($job) { foreach ($PluginPath in ($jobConfig.vCheck.plugins.path -split ";")) { if (Test-Path $PluginPath) { $PluginPaths += (Get-Item $PluginPath).Fullname - $PluginPaths += Get-Childitem $PluginPath -Directory -recurse | Select -expandproperty FullName + $PluginPaths += Get-Childitem $PluginPath -recurse | ?{ $_.PSIsContainer } | Select -expandproperty FullName } else { $PluginPaths += $ScriptPath + "\Plugins"