DLL Filer i windows som er blocked
Powershell script til at unblocke alle .dll filer for en mappe og alle undermapper.
Hvis man trykker egenskaber på en .dll man har hentet kan man se om den er blokeret eller ej.
$folderPath = "C:\Overmappe\Undermappe\Jackpot"
# Get all .dll files in the folder
$dllFiles = Get-ChildItem -Path $folderPath -Filter "*.dll" -Recurse
# Loop through each .dll file and unblock it
foreach ($file in $dllFiles) {
$filePath = $file.FullName
# Check if the file is blocked
$isBlocked = Unblock-File -Path $filePath -ErrorAction SilentlyContinue
# Display information about the file and its blocking status
if ($isBlocked) {
Write-Host "Unblocked: $filePath"
} else {
Write-Host "Not blocked or already unblocked: $filePath"
}
}
Ellers kan overstående også klares ved at gå til hver enkel .dll fils egenskaber og giv "Fjern Blokering" et flueben.