mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-21 07:10:15 -05:00
14 lines
312 B
PowerShell
14 lines
312 B
PowerShell
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;
|
|
}
|