Browse Source

Fix typo ActiveHours, WSL, RunAsDifferentUserContext also Wrapper Config WSL

pull/222/head
iamteerawut 4 years ago
parent
commit
0169e0ece5
  1. 12
      Sophia/LTSC/Module/Sophia.psm1
  2. 14
      Sophia/PowerShell 5.1/Module/Sophia.psm1
  3. 14
      Sophia/PowerShell 7/Module/Sophia.psm1
  4. 4
      Wrapper/Config/config.json

12
Sophia/LTSC/Module/Sophia.psm1

@ -5750,14 +5750,14 @@ function NetworkDiscovery
.PARAMETER Automatically .PARAMETER Automatically
Automatically adjust active hours for me based on daily usage Automatically adjust active hours for me based on daily usage
.PARAMETER Manual .PARAMETER Manually
Manually adjust active hours for me based on daily usage Manually adjust active hours for me based on daily usage
.EXAMPLE .EXAMPLE
ActiveHours -Automatically ActiveHours -Automatically
.EXAMPLE .EXAMPLE
ActiveHours -Manual ActiveHours -Manually
.NOTES .NOTES
Machine-wide Machine-wide
@ -5775,10 +5775,10 @@ function ActiveHours
[Parameter( [Parameter(
Mandatory = $true, Mandatory = $true,
ParameterSetName = "Manual" ParameterSetName = "Manually"
)] )]
[switch] [switch]
$Manual $Manually
) )
switch ($PSCmdlet.ParameterSetName) switch ($PSCmdlet.ParameterSetName)
@ -5787,7 +5787,7 @@ function ActiveHours
{ {
New-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings -Name SmartActiveHoursState -PropertyType DWord -Value 1 -Force New-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings -Name SmartActiveHoursState -PropertyType DWord -Value 1 -Force
} }
"Manual" "Manually"
{ {
New-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings -Name SmartActiveHoursState -PropertyType DWord -Value 0 -Force New-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings -Name SmartActiveHoursState -PropertyType DWord -Value 0 -Force
} }
@ -8025,7 +8025,7 @@ function RunAsDifferentUserContext
ParameterSetName = "Hide" ParameterSetName = "Hide"
)] )]
[switch] [switch]
$Remove $Hide
) )
switch ($PSCmdlet.ParameterSetName) switch ($PSCmdlet.ParameterSetName)

14
Sophia/PowerShell 5.1/Module/Sophia.psm1

@ -7003,14 +7003,14 @@ function NetworkDiscovery
.PARAMETER Automatically .PARAMETER Automatically
Automatically adjust active hours for me based on daily usage Automatically adjust active hours for me based on daily usage
.PARAMETER Manual .PARAMETER Manually
Manually adjust active hours for me based on daily usage Manually adjust active hours for me based on daily usage
.EXAMPLE .EXAMPLE
ActiveHours -Automatically ActiveHours -Automatically
.EXAMPLE .EXAMPLE
ActiveHours -Manual ActiveHours -Manually
.NOTES .NOTES
Machine-wide Machine-wide
@ -7028,10 +7028,10 @@ function ActiveHours
[Parameter( [Parameter(
Mandatory = $true, Mandatory = $true,
ParameterSetName = "Manual" ParameterSetName = "Manually"
)] )]
[switch] [switch]
$Manual $Manually
) )
switch ($PSCmdlet.ParameterSetName) switch ($PSCmdlet.ParameterSetName)
@ -7040,7 +7040,7 @@ function ActiveHours
{ {
New-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings -Name SmartActiveHoursState -PropertyType DWord -Value 1 -Force New-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings -Name SmartActiveHoursState -PropertyType DWord -Value 1 -Force
} }
"Manual" "Manually"
{ {
New-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings -Name SmartActiveHoursState -PropertyType DWord -Value 0 -Force New-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings -Name SmartActiveHoursState -PropertyType DWord -Value 0 -Force
} }
@ -7803,7 +7803,7 @@ function WSL
Write-Warning -Message $Localization.RestartWarning Write-Warning -Message $Localization.RestartWarning
} }
"Disable" "Uninstall"
{ {
Disable-WindowsOptionalFeature -Online -FeatureName $WSLFeatures -NoRestart Disable-WindowsOptionalFeature -Online -FeatureName $WSLFeatures -NoRestart
@ -11012,7 +11012,7 @@ function RunAsDifferentUserContext
ParameterSetName = "Hide" ParameterSetName = "Hide"
)] )]
[switch] [switch]
$Remove $Hide
) )
switch ($PSCmdlet.ParameterSetName) switch ($PSCmdlet.ParameterSetName)

14
Sophia/PowerShell 7/Module/Sophia.psm1

@ -7017,14 +7017,14 @@ function NetworkDiscovery
.PARAMETER Automatically .PARAMETER Automatically
Automatically adjust active hours for me based on daily usage Automatically adjust active hours for me based on daily usage
.PARAMETER Manual .PARAMETER Manually
Manually adjust active hours for me based on daily usage Manually adjust active hours for me based on daily usage
.EXAMPLE .EXAMPLE
ActiveHours -Automatically ActiveHours -Automatically
.EXAMPLE .EXAMPLE
ActiveHours -Manual ActiveHours -Manually
.NOTES .NOTES
Machine-wide Machine-wide
@ -7042,10 +7042,10 @@ function ActiveHours
[Parameter( [Parameter(
Mandatory = $true, Mandatory = $true,
ParameterSetName = "Manual" ParameterSetName = "Manually"
)] )]
[switch] [switch]
$Manual $Manually
) )
switch ($PSCmdlet.ParameterSetName) switch ($PSCmdlet.ParameterSetName)
@ -7054,7 +7054,7 @@ function ActiveHours
{ {
New-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings -Name SmartActiveHoursState -PropertyType DWord -Value 1 -Force New-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings -Name SmartActiveHoursState -PropertyType DWord -Value 1 -Force
} }
"Manual" "Manually"
{ {
New-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings -Name SmartActiveHoursState -PropertyType DWord -Value 0 -Force New-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings -Name SmartActiveHoursState -PropertyType DWord -Value 0 -Force
} }
@ -7817,7 +7817,7 @@ function WSL
Write-Warning -Message $Localization.RestartWarning Write-Warning -Message $Localization.RestartWarning
} }
"Disable" "Uninstall"
{ {
Disable-WindowsOptionalFeature -Online -FeatureName $WSLFeatures -NoRestart Disable-WindowsOptionalFeature -Online -FeatureName $WSLFeatures -NoRestart
@ -11042,7 +11042,7 @@ function RunAsDifferentUserContext
ParameterSetName = "Hide" ParameterSetName = "Hide"
)] )]
[switch] [switch]
$Remove $Hide
) )
switch ($PSCmdlet.ParameterSetName) switch ($PSCmdlet.ParameterSetName)

4
Wrapper/Config/config.json

@ -2313,14 +2313,14 @@
"Function": "WSL", "Function": "WSL",
"Arg": { "Arg": {
"Zero": { "Zero": {
"Tag": "Enable", "Tag": "Install",
"ToolTip": { "ToolTip": {
"EN": "Install the Windows Subsystem for Linux (WSL)", "EN": "Install the Windows Subsystem for Linux (WSL)",
"RU": "Установить подсистему Windows для Linux (WSL)" "RU": "Установить подсистему Windows для Linux (WSL)"
} }
}, },
"One": { "One": {
"Tag": "Disable", "Tag": "Uninstall",
"ToolTip": { "ToolTip": {
"EN": "Uninstall the Windows Subsystem for Linux (WSL)", "EN": "Uninstall the Windows Subsystem for Linux (WSL)",
"RU": "Удалить подсистему Windows для Linux (WSL)" "RU": "Удалить подсистему Windows для Linux (WSL)"

Loading…
Cancel
Save