icinga-powershell-framework/lib/core/framework/Unblock-IcingaPowerShellFiles.psm1

15 lines
312 B
PowerShell
Raw Normal View History

function Unblock-IcingaPowerShellFiles()
{
param(
$Path
);
if ([string]::IsNullOrEmpty($Path)) {
Write-Host 'The specified directory was not found';
return;
}
Write-Host 'Unblocking Icinga PowerShell Files';
Get-ChildItem -Path $Path -Recurse | Unblock-File;
}