Skip to content

Commit

Permalink
Minor fixes. Install-WSA removed
Browse files Browse the repository at this point in the history
  • Loading branch information
farag2 committed Jun 5, 2024
1 parent 48f04d6 commit 9b0d854
Show file tree
Hide file tree
Showing 15 changed files with 91 additions and 259 deletions.
13 changes: 0 additions & 13 deletions Wrapper/Config/config_Windows_11.json
Original file line number Diff line number Diff line change
Expand Up @@ -1599,19 +1599,6 @@
"Preset": "Zero",
"WindowsDefault": "One"
},
{
"Region": "System",
"Control": "cmb",
"Required": "false",
"Function": "Install-WSA",
"Arg": {
"Zero": {
"Tag": ""
}
},
"Preset": "",
"WindowsDefault": ""
},
{
"Region": "System",
"Control": "cmb",
Expand Down
10 changes: 0 additions & 10 deletions Wrapper/Localizations/de-DE/tooltip_Windows_11.json
Original file line number Diff line number Diff line change
Expand Up @@ -1413,16 +1413,6 @@
}
}
},
{
"Region": "System",
"Function": "Install-WSA",
"Arg": {
"Zero": {
"Tag": "",
"ToolTip": "Alle erforderlichen Abhängigkeiten aktivieren (ein Neustart kann erforderlich sein) und die Microsoft Store WSA-Seite öffnen, um Windows Subsystem for Android™ mit Amazon-Appstore manuell zu installieren."
}
}
},
{
"Region": "System",
"Function": "PreventEdgeShortcutCreation",
Expand Down
10 changes: 0 additions & 10 deletions Wrapper/Localizations/en-US/tooltip_Windows_11.json
Original file line number Diff line number Diff line change
Expand Up @@ -1413,16 +1413,6 @@
}
}
},
{
"Region": "System",
"Function": "Install-WSA",
"Arg": {
"Zero": {
"Tag": "",
"ToolTip": "Enable all necessary dependencies (reboot may require) and open Microsoft Store WSA page to install Windows Subsystem for Android™ with Amazon Appstore manually."
}
}
},
{
"Region": "System",
"Function": "PreventEdgeShortcutCreation",
Expand Down
10 changes: 0 additions & 10 deletions Wrapper/Localizations/ru-RU/tooltip_Windows_11.json
Original file line number Diff line number Diff line change
Expand Up @@ -1413,16 +1413,6 @@
}
}
},
{
"Region": "System",
"Function": "Install-WSA",
"Arg": {
"Zero": {
"Tag": "",
"ToolTip": "Включить все необходимые зависимости (может потребоваться перезагрузка) и открыть страницу WSA в Microsoft Store, чтобы вручную установить Windows Subsystem for Android™ with Amazon Appstore."
}
}
},
{
"Region": "System",
"Function": "PreventEdgeShortcutCreation",
Expand Down
19 changes: 15 additions & 4 deletions src/Sophia_Script_for_Windows_10/Module/Sophia.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -1020,6 +1020,9 @@ function CreateRestorePoint
.EXAMPLE
Set-Policy -Scope Computer -Path SOFTWARE\Policies\Microsoft\Windows\DataCollection -Name AllowTelemetry -Type DWORD -Value 0
.EXAMPLE
Set-Policy -Scope User -Path Software\Policies\Microsoft\Windows\Explorer -Name DisableSearchBoxSuggestions -Type DWORD -Value 1
.NOTES
https://techcommunity.microsoft.com/t5/microsoft-security-baselines/lgpo-exe-local-group-policy-object-utility-v1-0/ba-p/701045
Expand Down Expand Up @@ -1312,7 +1315,9 @@ function ErrorReporting

# Remove all policies in order to make changes visible in UI only if it's possible
Remove-ItemProperty -Path "HKLM:\Software\Policies\Microsoft\Windows\Windows Error Reporting" -Name Disabled -Force -ErrorAction Ignore
Remove-ItemProperty -Path "HKCU:\Software\Policies\Microsoft\Windows\Windows Error Reporting" -Name Disabled -Force -ErrorAction Ignore
Set-Policy -Scope Computer -Path "SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting" -Name Disabled -Type CLEAR
Set-Policy -Scope User -Path "Software\Policies\Microsoft\Windows\Windows Error Reporting" -Name Disabled -Type CLEAR

switch ($PSCmdlet.ParameterSetName)
{
Expand Down Expand Up @@ -2215,13 +2220,13 @@ function TailoredExperiences

<#
.SYNOPSIS
Bing search in the Start Menu
Bing search in Start Menu
.PARAMETER Disable
Disable Bing search in the Start Menu
Disable Bing search in Start Menu
.PARAMETER Enable
Enable Bing search in the Start Menu
Enable Bing search in Start Menu
.EXAMPLE
BingSearch -Disable
Expand Down Expand Up @@ -13935,7 +13940,9 @@ function CommandLineProcessAudit
}
"Disable"
{
auditpol /set /subcategory:"{0CCE922B-69AE-11D9-BED3-505054503030}" /success:disable /failure:disable
Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\Audit -Name ProcessCreationIncludeCmdLine_Enabled -Force -ErrorAction Ignore

Set-Policy -Scope Computer -Path SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\Audit -Name ProcessCreationIncludeCmdLine_Enabled -Type CLEAR
}
}
Expand Down Expand Up @@ -14019,7 +14026,7 @@ function EventViewerCustomView
}

# Save ProcessCreation.xml in the UTF-8 without BOM encoding
Set-Content -Path "$env:ProgramData\Microsoft\Event Viewer\Views\ProcessCreation.xml" -Value $XML -Encoding UTF8 -NoNewline -Force
Set-Content -Path "$env:ProgramData\Microsoft\Event Viewer\Views\ProcessCreation.xml" -Value $XML -Encoding Default -NoNewline -Force
}
"Disable"
{
Expand Down Expand Up @@ -15192,6 +15199,10 @@ function UseStoreOpenWith
$Show
)

# Remove all policies in order to make changes visible in UI only if it's possible
Remove-ItemProperty -Path HKLM:\Policies\Microsoft\Windows\Explorer -Name NoUseStoreOpenWith -Force -ErrorAction Ignore
Set-Policy -Scope Computer -Path SOFTWARE\Policies\Microsoft\Windows\Explorer -Name NoUseStoreOpenWith -Type CLEAR

switch ($PSCmdlet.ParameterSetName)
{
"Hide"
Expand Down
4 changes: 2 additions & 2 deletions src/Sophia_Script_for_Windows_10/Sophia.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -249,11 +249,11 @@ TailoredExperiences -Disable
# Разрешите корпорации Майкософт использовать ваши диагностические данные для предоставления вам персонализированных советов, рекламы и рекомендаций, чтобы улучшить работу со службами Майкрософт (значение по умолчанию)
# TailoredExperiences -Enable

# Disable Bing search in the Start Menu
# Disable Bing search in Start Menu
# Отключить в меню "Пуск" поиск через Bing
BingSearch -Disable

# Enable Bing search in the Start Menu (default value)
# Enable Bing search in Start Menu (default value)
# Включить поиск через Bing в меню "Пуск" (значение по умолчанию)
# BingSearch -Enable

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -989,6 +989,9 @@ function CreateRestorePoint
.EXAMPLE
Set-Policy -Scope Computer -Path SOFTWARE\Policies\Microsoft\Windows\DataCollection -Name AllowTelemetry -Type DWORD -Value 0
.EXAMPLE
Set-Policy -Scope User -Path Software\Policies\Microsoft\Windows\Explorer -Name DisableSearchBoxSuggestions -Type DWORD -Value 1
.NOTES
https://techcommunity.microsoft.com/t5/microsoft-security-baselines/lgpo-exe-local-group-policy-object-utility-v1-0/ba-p/701045
Expand Down Expand Up @@ -1268,7 +1271,9 @@ function ErrorReporting

# Remove all policies in order to make changes visible in UI only if it's possible
Remove-ItemProperty -Path "HKLM:\Software\Policies\Microsoft\Windows\Windows Error Reporting" -Name Disabled -Force -ErrorAction Ignore
Remove-ItemProperty -Path "HKCU:\Software\Policies\Microsoft\Windows\Windows Error Reporting" -Name Disabled -Force -ErrorAction Ignore
Set-Policy -Scope Computer -Path "SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting" -Name Disabled -Type CLEAR
Set-Policy -Scope User -Path "Software\Policies\Microsoft\Windows\Windows Error Reporting" -Name Disabled -Type CLEAR

switch ($PSCmdlet.ParameterSetName)
{
Expand Down Expand Up @@ -10477,7 +10482,9 @@ function CommandLineProcessAudit
}
"Disable"
{
auditpol /set /subcategory:"{0CCE922B-69AE-11D9-BED3-505054503030}" /success:disable /failure:disable
Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\Audit -Name ProcessCreationIncludeCmdLine_Enabled -Force -ErrorAction Ignore

Set-Policy -Scope Computer -Path SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\Audit -Name ProcessCreationIncludeCmdLine_Enabled -Type CLEAR
}
}
Expand Down Expand Up @@ -10561,7 +10568,7 @@ function EventViewerCustomView
}

# Save ProcessCreation.xml in the UTF-8 without BOM encoding
Set-Content -Path "$env:ProgramData\Microsoft\Event Viewer\Views\ProcessCreation.xml" -Value $XML -Encoding UTF8 -NoNewline -Force
Set-Content -Path "$env:ProgramData\Microsoft\Event Viewer\Views\ProcessCreation.xml" -Value $XML -Encoding Default -NoNewline -Force
}
"Disable"
{
Expand Down
15 changes: 11 additions & 4 deletions src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -989,6 +989,9 @@ function CreateRestorePoint
.EXAMPLE
Set-Policy -Scope Computer -Path SOFTWARE\Policies\Microsoft\Windows\DataCollection -Name AllowTelemetry -Type DWORD -Value 0
.EXAMPLE
Set-Policy -Scope User -Path Software\Policies\Microsoft\Windows\Explorer -Name DisableSearchBoxSuggestions -Type DWORD -Value 1
.NOTES
https://techcommunity.microsoft.com/t5/microsoft-security-baselines/lgpo-exe-local-group-policy-object-utility-v1-0/ba-p/701045
Expand Down Expand Up @@ -1268,7 +1271,9 @@ function ErrorReporting

# Remove all policies in order to make changes visible in UI only if it's possible
Remove-ItemProperty -Path "HKLM:\Software\Policies\Microsoft\Windows\Windows Error Reporting" -Name Disabled -Force -ErrorAction Ignore
Remove-ItemProperty -Path "HKCU:\Software\Policies\Microsoft\Windows\Windows Error Reporting" -Name Disabled -Force -ErrorAction Ignore
Set-Policy -Scope Computer -Path "SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting" -Name Disabled -Type CLEAR
Set-Policy -Scope User -Path "Software\Policies\Microsoft\Windows\Windows Error Reporting" -Name Disabled -Type CLEAR

switch ($PSCmdlet.ParameterSetName)
{
Expand Down Expand Up @@ -1955,13 +1960,13 @@ function TailoredExperiences

<#
.SYNOPSIS
Bing search in the Start Menu
Bing search in Start Menu
.PARAMETER Disable
Disable Bing search in the Start Menu
Disable Bing search in Start Menu
.PARAMETER Enable
Enable Bing search in the Start Menu
Enable Bing search in Start Menu
.EXAMPLE
BingSearch -Disable
Expand Down Expand Up @@ -11612,7 +11617,9 @@ function CommandLineProcessAudit
}
"Disable"
{
auditpol /set /subcategory:"{0CCE922B-69AE-11D9-BED3-505054503030}" /success:disable /failure:disable
Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\Audit -Name ProcessCreationIncludeCmdLine_Enabled -Force -ErrorAction Ignore

Set-Policy -Scope Computer -Path SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\Audit -Name ProcessCreationIncludeCmdLine_Enabled -Type CLEAR
}
}
Expand Down Expand Up @@ -11696,7 +11703,7 @@ function EventViewerCustomView
}

# Save ProcessCreation.xml in the UTF-8 without BOM encoding
Set-Content -Path "$env:ProgramData\Microsoft\Event Viewer\Views\ProcessCreation.xml" -Value $XML -Encoding UTF8 -NoNewline -Force
Set-Content -Path "$env:ProgramData\Microsoft\Event Viewer\Views\ProcessCreation.xml" -Value $XML -Encoding Default -NoNewline -Force
}
"Disable"
{
Expand Down
4 changes: 2 additions & 2 deletions src/Sophia_Script_for_Windows_10_LTSC_2021/Sophia.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -212,11 +212,11 @@ TailoredExperiences -Disable
# Разрешите корпорации Майкософт использовать ваши диагностические данные для предоставления вам персонализированных советов, рекламы и рекомендаций, чтобы улучшить работу со службами Майкрософт (значение по умолчанию)
# TailoredExperiences -Enable

# Disable Bing search in the Start Menu
# Disable Bing search in Start Menu
# Отключить в меню "Пуск" поиск через Bing
BingSearch -Disable

# Enable Bing search in the Start Menu (default value)
# Enable Bing search in Start Menu (default value)
# Включить поиск через Bing в меню "Пуск" (значение по умолчанию)
# BingSearch -Enable
#endregion Privacy & Telemetry
Expand Down
17 changes: 14 additions & 3 deletions src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Sophia.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -1026,6 +1026,9 @@ function CreateRestorePoint
.EXAMPLE
Set-Policy -Scope Computer -Path SOFTWARE\Policies\Microsoft\Windows\DataCollection -Name AllowTelemetry -Type DWORD -Value 0

.EXAMPLE
Set-Policy -Scope User -Path Software\Policies\Microsoft\Windows\Explorer -Name DisableSearchBoxSuggestions -Type DWORD -Value 1

.NOTES
https://techcommunity.microsoft.com/t5/microsoft-security-baselines/lgpo-exe-local-group-policy-object-utility-v1-0/ba-p/701045

Expand Down Expand Up @@ -1318,7 +1321,9 @@ function ErrorReporting

# Remove all policies in order to make changes visible in UI only if it's possible
Remove-ItemProperty -Path "HKLM:\Software\Policies\Microsoft\Windows\Windows Error Reporting" -Name Disabled -Force -ErrorAction Ignore
Remove-ItemProperty -Path "HKCU:\Software\Policies\Microsoft\Windows\Windows Error Reporting" -Name Disabled -Force -ErrorAction Ignore
Set-Policy -Scope Computer -Path "SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting" -Name Disabled -Type CLEAR
Set-Policy -Scope User -Path "Software\Policies\Microsoft\Windows\Windows Error Reporting" -Name Disabled -Type CLEAR

switch ($PSCmdlet.ParameterSetName)
{
Expand Down Expand Up @@ -2221,13 +2226,13 @@ function TailoredExperiences

<#
.SYNOPSIS
Bing search in the Start Menu
Bing search in Start Menu

.PARAMETER Disable
Disable Bing search in the Start Menu
Disable Bing search in Start Menu

.PARAMETER Enable
Enable Bing search in the Start Menu
Enable Bing search in Start Menu

.EXAMPLE
BingSearch -Disable
Expand Down Expand Up @@ -13961,7 +13966,9 @@ function CommandLineProcessAudit
}
"Disable"
{
auditpol /set /subcategory:"{0CCE922B-69AE-11D9-BED3-505054503030}" /success:disable /failure:disable
Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\Audit -Name ProcessCreationIncludeCmdLine_Enabled -Force -ErrorAction Ignore

Set-Policy -Scope Computer -Path SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\Audit -Name ProcessCreationIncludeCmdLine_Enabled -Type CLEAR
}
}
Expand Down Expand Up @@ -15218,6 +15225,10 @@ function UseStoreOpenWith
$Show
)

# Remove all policies in order to make changes visible in UI only if it's possible
Remove-ItemProperty -Path HKLM:\Policies\Microsoft\Windows\Explorer -Name NoUseStoreOpenWith -Force -ErrorAction Ignore
Set-Policy -Scope Computer -Path SOFTWARE\Policies\Microsoft\Windows\Explorer -Name NoUseStoreOpenWith -Type CLEAR

switch ($PSCmdlet.ParameterSetName)
{
"Hide"
Expand Down
4 changes: 2 additions & 2 deletions src/Sophia_Script_for_Windows_10_PowerShell_7/Sophia.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -260,11 +260,11 @@ TailoredExperiences -Disable
# Разрешите корпорации Майкософт использовать ваши диагностические данные для предоставления вам персонализированных советов, рекламы и рекомендаций, чтобы улучшить работу со службами Майкрософт (значение по умолчанию)
# TailoredExperiences -Enable

# Disable Bing search in the Start Menu
# Disable Bing search in Start Menu
# Отключить в меню "Пуск" поиск через Bing
BingSearch -Disable

# Enable Bing search in the Start Menu (default value)
# Enable Bing search in Start Menu (default value)
# Включить поиск через Bing в меню "Пуск" (значение по умолчанию)
# BingSearch -Enable

Expand Down
Loading

0 comments on commit 9b0d854

Please sign in to comment.