Skip to content

Commit

Permalink
Small code refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
farag2 committed Oct 20, 2024
1 parent b870b93 commit 8da2b81
Show file tree
Hide file tree
Showing 16 changed files with 37 additions and 16 deletions.
2 changes: 1 addition & 1 deletion Wrapper/Localizations/en-US/tooltip_Windows_10.json
Original file line number Diff line number Diff line change
Expand Up @@ -2084,7 +2084,7 @@
"Arg": {
"Zero": {
"Tag": "",
"ToolTip": "Display all policy registry keys (even manually created ones) in the Local Group Policy Editor snap-in (gpedit.msc). This can take up to 30 minutes, depending on on the number of policies created in the registry and your system resources."
"ToolTip": "Display all policy registry keys (even manually created ones) in the Local Group Policy Editor snap-in (gpedit.msc). This can take up to 30 minutes, depending on the number of policies created in the registry and your system resources."
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion Wrapper/Localizations/en-US/tooltip_Windows_11.json
Original file line number Diff line number Diff line change
Expand Up @@ -1955,7 +1955,7 @@
"Arg": {
"Zero": {
"Tag": "",
"ToolTip": "Display all policy registry keys (even manually created ones) in the Local Group Policy Editor snap-in (gpedit.msc). This can take up to 30 minutes, depending on on the number of policies created in the registry and your system resources."
"ToolTip": "Display all policy registry keys (even manually created ones) in the Local Group Policy Editor snap-in (gpedit.msc). This can take up to 30 minutes, depending on the number of policies created in the registry and your system resources."
}
}
}
Expand Down
5 changes: 4 additions & 1 deletion src/Sophia_Script_for_Windows_10/Module/Sophia.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -14658,7 +14658,7 @@ function UseStoreOpenWith
<#
.SYNOPSIS
Display all policy registry keys (even manually created ones) in the Local Group Policy Editor snap-in (gpedit.msc)
This can take up to 30 minutes, depending on on the number of policies created in the registry and your system resources
This can take up to 30 minutes, depending on the number of policies created in the registry and your system resources
.EXAMPLE
UpdateLGPEPolicies
Expand Down Expand Up @@ -14689,6 +14689,8 @@ function UpdateLGPEPolicies
Write-Verbose -Message ([WinAPI.GetStrings]::GetString(12612)) -Verbose

Write-Verbose -Message $Localization.GPOUpdate -Verbose

Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message HKLM -Verbose
Write-Information -MessageData "" -InformationAction Continue

Expand Down Expand Up @@ -14749,6 +14751,7 @@ function UpdateLGPEPolicies

Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message HKCU -Verbose
Write-Information -MessageData "" -InformationAction Continue

# Current User policies paths to scan recursively
$CU_Paths = @(
Expand Down
2 changes: 1 addition & 1 deletion src/Sophia_Script_for_Windows_10/Sophia.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -1408,7 +1408,7 @@ UseStoreOpenWith -Hide
#region Update Policies
<#
Display all policy registry keys (even manually created ones) in the Local Group Policy Editor snap-in (gpedit.msc)
This can take up to 30 minutes, depending on on the number of policies created in the registry and your system resources
This can take up to 30 minutes, depending on the number of policies created in the registry and your system resources
Отобразить все политики реестра (даже созданные вручную) в оснастке Редактора локальной групповой политики (gpedit.msc)
Это может занять до 30 минут в зависимости от количества политик, созданных в реестре, и мощности вашей системы
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11210,7 +11210,7 @@ function MultipleInvokeContext
<#
.SYNOPSIS
Display all policy registry keys (even manually created ones) in the Local Group Policy Editor snap-in (gpedit.msc)
This can take up to 30 minutes, depending on on the number of policies created in the registry and your system resources
This can take up to 30 minutes, depending on the number of policies created in the registry and your system resources
.EXAMPLE
UpdateLGPEPolicies
Expand Down Expand Up @@ -11241,6 +11241,8 @@ function UpdateLGPEPolicies
Write-Verbose -Message ([WinAPI.GetStrings]::GetString(12612)) -Verbose

Write-Verbose -Message $Localization.GPOUpdate -Verbose

Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message HKLM -Verbose
Write-Information -MessageData "" -InformationAction Continue

Expand Down Expand Up @@ -11301,6 +11303,7 @@ function UpdateLGPEPolicies

Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message HKCU -Verbose
Write-Information -MessageData "" -InformationAction Continue

# Current User policies paths to scan recursively
$CU_Paths = @(
Expand Down
2 changes: 1 addition & 1 deletion src/Sophia_Script_for_Windows_10_LTSC_2019/Sophia.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -1047,7 +1047,7 @@ MultipleInvokeContext -Enable
#region Update Policies
<#
Display all policy registry keys (even manually created ones) in the Local Group Policy Editor snap-in (gpedit.msc)
This can take up to 30 minutes, depending on on the number of policies created in the registry and your system resources
This can take up to 30 minutes, depending on the number of policies created in the registry and your system resources
Отобразить все политики реестра (даже созданные вручную) в оснастке Редактора локальной групповой политики (gpedit.msc)
Это может занять до 30 минут в зависимости от количества политик, созданных в реестре, и мощности вашей системы
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12560,7 +12560,7 @@ function MultipleInvokeContext
<#
.SYNOPSIS
Display all policy registry keys (even manually created ones) in the Local Group Policy Editor snap-in (gpedit.msc)
This can take up to 30 minutes, depending on on the number of policies created in the registry and your system resources
This can take up to 30 minutes, depending on the number of policies created in the registry and your system resources
.EXAMPLE
UpdateLGPEPolicies
Expand Down Expand Up @@ -12591,6 +12591,8 @@ function UpdateLGPEPolicies
Write-Verbose -Message ([WinAPI.GetStrings]::GetString(12612)) -Verbose

Write-Verbose -Message $Localization.GPOUpdate -Verbose

Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message HKLM -Verbose
Write-Information -MessageData "" -InformationAction Continue

Expand Down Expand Up @@ -12651,6 +12653,7 @@ function UpdateLGPEPolicies

Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message HKCU -Verbose
Write-Information -MessageData "" -InformationAction Continue

# Current User policies paths to scan recursively
$CU_Paths = @(
Expand Down
2 changes: 1 addition & 1 deletion src/Sophia_Script_for_Windows_10_LTSC_2021/Sophia.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -1212,7 +1212,7 @@ MultipleInvokeContext -Enable
#region Update Policies
<#
Display all policy registry keys (even manually created ones) in the Local Group Policy Editor snap-in (gpedit.msc)
This can take up to 30 minutes, depending on on the number of policies created in the registry and your system resources
This can take up to 30 minutes, depending on the number of policies created in the registry and your system resources
Отобразить все политики реестра (даже созданные вручную) в оснастке Редактора локальной групповой политики (gpedit.msc)
Это может занять до 30 минут в зависимости от количества политик, созданных в реестре, и мощности вашей системы
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14674,7 +14674,7 @@ function UseStoreOpenWith
<#
.SYNOPSIS
Display all policy registry keys (even manually created ones) in the Local Group Policy Editor snap-in (gpedit.msc)
This can take up to 30 minutes, depending on on the number of policies created in the registry and your system resources
This can take up to 30 minutes, depending on the number of policies created in the registry and your system resources

.EXAMPLE
UpdateLGPEPolicies
Expand Down Expand Up @@ -14705,6 +14705,8 @@ function UpdateLGPEPolicies
Write-Verbose -Message ([WinAPI.GetStrings]::GetString(12612)) -Verbose

Write-Verbose -Message $Localization.GPOUpdate -Verbose

Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message HKLM -Verbose
Write-Information -MessageData "" -InformationAction Continue

Expand Down Expand Up @@ -14765,6 +14767,7 @@ function UpdateLGPEPolicies

Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message HKCU -Verbose
Write-Information -MessageData "" -InformationAction Continue

# Current User policies paths to scan recursively
$CU_Paths = @(
Expand Down
2 changes: 1 addition & 1 deletion src/Sophia_Script_for_Windows_10_PowerShell_7/Sophia.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -1419,7 +1419,7 @@ UseStoreOpenWith -Hide
#region Update Policies
<#
Display all policy registry keys (even manually created ones) in the Local Group Policy Editor snap-in (gpedit.msc)
This can take up to 30 minutes, depending on on the number of policies created in the registry and your system resources
This can take up to 30 minutes, depending on the number of policies created in the registry and your system resources
Отобразить все политики реестра (даже созданные вручную) в оснастке Редактора локальной групповой политики (gpedit.msc)
Это может занять до 30 минут в зависимости от количества политик, созданных в реестре, и мощности вашей системы
Expand Down
5 changes: 4 additions & 1 deletion src/Sophia_Script_for_Windows_11/Module/Sophia.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -13728,7 +13728,7 @@ function OpenWindowsTerminalAdminContext
<#
.SYNOPSIS
Display all policy registry keys (even manually created ones) in the Local Group Policy Editor snap-in (gpedit.msc)
This can take up to 30 minutes, depending on on the number of policies created in the registry and your system resources
This can take up to 30 minutes, depending on the number of policies created in the registry and your system resources

.EXAMPLE
UpdateLGPEPolicies
Expand Down Expand Up @@ -13759,6 +13759,8 @@ function UpdateLGPEPolicies
Write-Verbose -Message ([WinAPI.GetStrings]::GetString(12612)) -Verbose

Write-Verbose -Message $Localization.GPOUpdate -Verbose

Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message HKLM -Verbose
Write-Information -MessageData "" -InformationAction Continue

Expand Down Expand Up @@ -13819,6 +13821,7 @@ function UpdateLGPEPolicies

Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message HKCU -Verbose
Write-Information -MessageData "" -InformationAction Continue

# Current User policies paths to scan recursively
$CU_Paths = @(
Expand Down
2 changes: 1 addition & 1 deletion src/Sophia_Script_for_Windows_11/Sophia.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -1338,7 +1338,7 @@ OpenWindowsTerminalAdminContext -Enable
#region Update Policies
<#
Display all policy registry keys (even manually created ones) in the Local Group Policy Editor snap-in (gpedit.msc)
This can take up to 30 minutes, depending on on the number of policies created in the registry and your system resources
This can take up to 30 minutes, depending on the number of policies created in the registry and your system resources
Отобразить все политики реестра (даже созданные вручную) в оснастке Редактора локальной групповой политики (gpedit.msc)
Это может занять до 30 минут в зависимости от количества политик, созданных в реестре, и мощности вашей системы
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12598,7 +12598,7 @@ function MultipleInvokeContext
<#
.SYNOPSIS
Display all policy registry keys (even manually created ones) in the Local Group Policy Editor snap-in (gpedit.msc)
This can take up to 30 minutes, depending on on the number of policies created in the registry and your system resources
This can take up to 30 minutes, depending on the number of policies created in the registry and your system resources

.EXAMPLE
UpdateLGPEPolicies
Expand Down Expand Up @@ -12629,6 +12629,8 @@ function UpdateLGPEPolicies
Write-Verbose -Message ([WinAPI.GetStrings]::GetString(12612)) -Verbose

Write-Verbose -Message $Localization.GPOUpdate -Verbose

Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message HKLM -Verbose
Write-Information -MessageData "" -InformationAction Continue

Expand Down Expand Up @@ -12689,6 +12691,7 @@ function UpdateLGPEPolicies

Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message HKCU -Verbose
Write-Information -MessageData "" -InformationAction Continue

# Current User policies paths to scan recursively
$CU_Paths = @(
Expand Down
2 changes: 1 addition & 1 deletion src/Sophia_Script_for_Windows_11_LTSC_2024/Sophia.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -1225,7 +1225,7 @@ MultipleInvokeContext -Enable
#region Update Policies
<#
Display all policy registry keys (even manually created ones) in the Local Group Policy Editor snap-in (gpedit.msc)
This can take up to 30 minutes, depending on on the number of policies created in the registry and your system resources
This can take up to 30 minutes, depending on the number of policies created in the registry and your system resources

Отобразить все политики реестра (даже созданные вручную) в оснастке Редактора локальной групповой политики (gpedit.msc)
Это может занять до 30 минут в зависимости от количества политик, созданных в реестре, и мощности вашей системы
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13744,7 +13744,7 @@ function OpenWindowsTerminalAdminContext
<#
.SYNOPSIS
Display all policy registry keys (even manually created ones) in the Local Group Policy Editor snap-in (gpedit.msc)
This can take up to 30 minutes, depending on on the number of policies created in the registry and your system resources
This can take up to 30 minutes, depending on the number of policies created in the registry and your system resources

.EXAMPLE
UpdateLGPEPolicies
Expand Down Expand Up @@ -13775,6 +13775,8 @@ function UpdateLGPEPolicies
Write-Verbose -Message ([WinAPI.GetStrings]::GetString(12612)) -Verbose

Write-Verbose -Message $Localization.GPOUpdate -Verbose

Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message HKLM -Verbose
Write-Information -MessageData "" -InformationAction Continue

Expand Down Expand Up @@ -13835,6 +13837,7 @@ function UpdateLGPEPolicies

Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message HKCU -Verbose
Write-Information -MessageData "" -InformationAction Continue

# Current User policies paths to scan recursively
$CU_Paths = @(
Expand Down
2 changes: 1 addition & 1 deletion src/Sophia_Script_for_Windows_11_PowerShell_7/Sophia.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -1349,7 +1349,7 @@ OpenWindowsTerminalAdminContext -Enable
#region Update Policies
<#
Display all policy registry keys (even manually created ones) in the Local Group Policy Editor snap-in (gpedit.msc)
This can take up to 30 minutes, depending on on the number of policies created in the registry and your system resources
This can take up to 30 minutes, depending on the number of policies created in the registry and your system resources

Отобразить все политики реестра (даже созданные вручную) в оснастке Редактора локальной групповой политики (gpedit.msc)
Это может занять до 30 минут в зависимости от количества политик, созданных в реестре, и мощности вашей системы
Expand Down

0 comments on commit 8da2b81

Please sign in to comment.