mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-20 23:00:35 -05:00
14 lines
341 B
PowerShell
14 lines
341 B
PowerShell
function Unblock-IcingaPowerShellFiles()
|
|
{
|
|
param(
|
|
$Path
|
|
);
|
|
|
|
if ([string]::IsNullOrEmpty($Path)) {
|
|
Write-IcingaConsoleError 'The specified directory was not found';
|
|
return;
|
|
}
|
|
|
|
Write-IcingaConsoleNotice 'Unblocking Icinga PowerShell Files';
|
|
Get-ChildItem -Path $Path -Recurse | Unblock-File;
|
|
}
|