Browse Source

Improved UpdateLGPEPolicies

pull/437/head
Dmitry Nefedov 2 years ago
parent
commit
62a5eeeced
  1. 4
      src/Sophia_Script_for_Windows_10/Module/Sophia.psm1
  2. 3
      src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1
  3. 4
      src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1
  4. 4
      src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Sophia.psm1
  5. 4
      src/Sophia_Script_for_Windows_11/Module/Sophia.psm1
  6. 4
      src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1

4
src/Sophia_Script_for_Windows_10/Module/Sophia.psm1

@ -13599,6 +13599,10 @@ function UpdateLGPEPolicies
return return
} }
Get-Partition | Where-Object -FilterScript{$_. DriveLetter -eq "C"} | Get-Disk | Get-PhysicalDisk | ForEach-Object -Process {
Write-Verbose -Message ([string]($_.FriendlyName, '|', $_.MediaType, '|' ,$_.BusType)) -Verbose
}
Write-Verbose -Message $Localization.Patient -Verbose Write-Verbose -Message $Localization.Patient -Verbose
Write-Verbose -Message $Localization.GPOUpdate -Verbose Write-Verbose -Message $Localization.GPOUpdate -Verbose
Write-Verbose -Message HKLM -Verbose Write-Verbose -Message HKLM -Verbose

3
src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1

@ -10021,6 +10021,9 @@ function UpdateLGPEPolicies
{ {
return return
} }
Get-Partition | Where-Object -FilterScript{$_. DriveLetter -eq "C"} | Get-Disk | Get-PhysicalDisk | ForEach-Object -Process {
Write-Verbose -Message ([string]($_.FriendlyName, '|', $_.MediaType, '|' ,$_.BusType)) -Verbose
}
Write-Verbose -Message $Localization.Patient -Verbose Write-Verbose -Message $Localization.Patient -Verbose
Write-Verbose -Message $Localization.GPOUpdate -Verbose Write-Verbose -Message $Localization.GPOUpdate -Verbose

4
src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1

@ -11243,6 +11243,10 @@ function UpdateLGPEPolicies
return return
} }
Get-Partition | Where-Object -FilterScript{$_. DriveLetter -eq "C"} | Get-Disk | Get-PhysicalDisk | ForEach-Object -Process {
Write-Verbose -Message ([string]($_.FriendlyName, '|', $_.MediaType, '|' ,$_.BusType)) -Verbose
}
Write-Verbose -Message $Localization.Patient -Verbose Write-Verbose -Message $Localization.Patient -Verbose
Write-Verbose -Message $Localization.GPOUpdate -Verbose Write-Verbose -Message $Localization.GPOUpdate -Verbose
Write-Verbose -Message HKLM -Verbose Write-Verbose -Message HKLM -Verbose

4
src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Sophia.psm1

@ -13629,6 +13629,10 @@ function UpdateLGPEPolicies
return return
} }
Get-Partition | Where-Object -FilterScript{$_. DriveLetter -eq "C"} | Get-Disk | Get-PhysicalDisk | ForEach-Object -Process {
Write-Verbose -Message ([string]($_.FriendlyName, '|', $_.MediaType, '|' ,$_.BusType)) -Verbose
}
Write-Verbose -Message $Localization.Patient -Verbose Write-Verbose -Message $Localization.Patient -Verbose
Write-Verbose -Message $Localization.GPOUpdate -Verbose Write-Verbose -Message $Localization.GPOUpdate -Verbose
Write-Verbose -Message HKLM -Verbose Write-Verbose -Message HKLM -Verbose

4
src/Sophia_Script_for_Windows_11/Module/Sophia.psm1

@ -12947,6 +12947,10 @@ function UpdateLGPEPolicies
return return
} }
Get-Partition | Where-Object -FilterScript{$_. DriveLetter -eq "C"} | Get-Disk | Get-PhysicalDisk | ForEach-Object -Process {
Write-Verbose -Message ([string]($_.FriendlyName, '|', $_.MediaType, '|' ,$_.BusType)) -Verbose
}
Write-Verbose -Message $Localization.Patient -Verbose Write-Verbose -Message $Localization.Patient -Verbose
Write-Verbose -Message $Localization.GPOUpdate -Verbose Write-Verbose -Message $Localization.GPOUpdate -Verbose
Write-Verbose -Message HKLM -Verbose Write-Verbose -Message HKLM -Verbose

4
src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1

@ -12974,6 +12974,10 @@ function UpdateLGPEPolicies
return return
} }
Get-Partition | Where-Object -FilterScript{$_. DriveLetter -eq "C"} | Get-Disk | Get-PhysicalDisk | ForEach-Object -Process {
Write-Verbose -Message ([string]($_.FriendlyName, '|', $_.MediaType, '|' ,$_.BusType)) -Verbose
}
Write-Verbose -Message $Localization.Patient -Verbose Write-Verbose -Message $Localization.Patient -Verbose
Write-Verbose -Message $Localization.GPOUpdate -Verbose Write-Verbose -Message $Localization.GPOUpdate -Verbose
Write-Verbose -Message HKLM -Verbose Write-Verbose -Message HKLM -Verbose

Loading…
Cancel
Save