Upload files to "/"

This commit is contained in:
2026-07-21 13:30:02 +02:00
commit 060dfad252
15 changed files with 716 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
# DisableVHDExpand.ps1
# Wymaga uruchomienia z uprawnieniami Administratora
#Requires -RunAsAdministrator
Write-Host "Konfiguracja dysków VHD..." -ForegroundColor Cyan
$regPath = "HKLM:\SYSTEM\CurrentControlSet\Services\FsDepends\Parameters"
# Upewniamy się, że klucz Parameters istnieje (domyślnie powinien, ale lepiej sprawdzić)
if (-not (Test-Path $regPath)) {
New-Item -Path $regPath -Force | Out-Null
}
try {
# Wartość 4 oznacza wyłączenie rozszerzania VHD przy rozruchu
Set-ItemProperty -Path $regPath -Name "VirtualDiskExpandOnMount" -Value 4 -Type DWord
Write-Host "[SUKCES] Ustawiono VirtualDiskExpandOnMount na wartość 4." -ForegroundColor Green
Write-Host " Dynamiczne dyski VHD nie będą już sztucznie puchnąć przy starcie." -ForegroundColor Green
} catch {
Write-Host "[BŁĄD] Nie udało się zmodyfikować rejestru. Szczegóły: $_" -ForegroundColor Red
}