Browse Source

Fixed bug when CleanupTask function couldn't create a value in the BranchCache

pull/378/head 6.1.2
Dmitry Nefedov 2 years ago
parent
commit
61c417a651
  1. 4
      Sophia Script/Sophia Script for Windows 10 LTSC 2019/Module/Sophia.psm1
  2. 4
      Sophia Script/Sophia Script for Windows 10 LTSC 2021/Module/Sophia.psm1
  3. 4
      Sophia Script/Sophia Script for Windows 10 PowerShell 7/Module/Sophia.psm1
  4. 4
      Sophia Script/Sophia Script for Windows 10/Module/Sophia.psm1
  5. 4
      Sophia Script/Sophia Script for Windows 11 PowerShell 7/Module/Sophia.psm1
  6. 4
      Sophia Script/Sophia Script for Windows 11/Module/Sophia.psm1

4
Sophia Script/Sophia Script for Windows 10 LTSC 2019/Module/Sophia.psm1

@ -7375,6 +7375,10 @@ function CleanupTask
)
foreach ($VolumeCache in $VolumeCaches)
{
if (-not (Test-Path -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\$VolumeCache"))
{
New-Item -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\$VolumeCache" -Force
}
New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\$VolumeCache" -Name StateFlags1337 -PropertyType DWord -Value 2 -Force
}

4
Sophia Script/Sophia Script for Windows 10 LTSC 2021/Module/Sophia.psm1

@ -8475,6 +8475,10 @@ function CleanupTask
)
foreach ($VolumeCache in $VolumeCaches)
{
if (-not (Test-Path -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\$VolumeCache"))
{
New-Item -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\$VolumeCache" -Force
}
New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\$VolumeCache" -Name StateFlags1337 -PropertyType DWord -Value 2 -Force
}

4
Sophia Script/Sophia Script for Windows 10 PowerShell 7/Module/Sophia.psm1

@ -10729,6 +10729,10 @@ function CleanupTask
)
foreach ($VolumeCache in $VolumeCaches)
{
if (-not (Test-Path -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\$VolumeCache"))
{
New-Item -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\$VolumeCache" -Force
}
New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\$VolumeCache" -Name StateFlags1337 -PropertyType DWord -Value 2 -Force
}

4
Sophia Script/Sophia Script for Windows 10/Module/Sophia.psm1

@ -10688,6 +10688,10 @@ function CleanupTask
)
foreach ($VolumeCache in $VolumeCaches)
{
if (-not (Test-Path -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\$VolumeCache"))
{
New-Item -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\$VolumeCache" -Force
}
New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\$VolumeCache" -Name StateFlags1337 -PropertyType DWord -Value 2 -Force
}

4
Sophia Script/Sophia Script for Windows 11 PowerShell 7/Module/Sophia.psm1

@ -10192,6 +10192,10 @@ function CleanupTask
)
foreach ($VolumeCache in $VolumeCaches)
{
if (-not (Test-Path -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\$VolumeCache"))
{
New-Item -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\$VolumeCache" -Force
}
New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\$VolumeCache" -Name StateFlags1337 -PropertyType DWord -Value 2 -Force
}

4
Sophia Script/Sophia Script for Windows 11/Module/Sophia.psm1

@ -10152,6 +10152,10 @@ function CleanupTask
)
foreach ($VolumeCache in $VolumeCaches)
{
if (-not (Test-Path -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\$VolumeCache"))
{
New-Item -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\$VolumeCache" -Force
}
New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\$VolumeCache" -Name StateFlags1337 -PropertyType DWord -Value 2 -Force
}

Loading…
Cancel
Save