Skip to content
This repository was archived by the owner on May 28, 2021. It is now read-only.

Commit 0924774

Browse files
committed
Add "Uninstall Math Recognizer"
1 parent fa45830 commit 0924774

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

Default.preset

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ DisableMediaSharing # EnableMediaSharing
205205
# UninstallInternetExplorer # InstallInternetExplorer
206206
# UninstallWorkFolders # InstallWorkFolders
207207
# UninstallHelloFace # InstallHelloFace
208+
# UninstallMathRecognizer # InstallMathRecognizer
208209
# UninstallPowerShellV2 # InstallPowerShellV2
209210
# InstallLinuxSubsystem # UninstallLinuxSubsystem
210211
# InstallHyperV # UninstallHyperV

Win10.psm1

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3351,6 +3351,18 @@ Function InstallHelloFace {
33513351
Get-WindowsCapability -Online | Where-Object { $_.Name -like "Hello.Face*" } | Add-WindowsCapability -Online | Out-Null
33523352
}
33533353

3354+
# Uninstall Math Recognizer - Not applicable to Server
3355+
Function UninstallMathRecognizer {
3356+
Write-Output "Uninstalling Math Recognizer..."
3357+
Get-WindowsCapability -Online | Where-Object { $_.Name -like "MathRecognizer*" } | Remove-WindowsCapability -Online | Out-Null
3358+
}
3359+
3360+
# Install Math Recognizer - Not applicable to Server
3361+
Function InstallMathRecognizer {
3362+
Write-Output "Installing Math Recognizer..."
3363+
Get-WindowsCapability -Online | Where-Object { $_.Name -like "MathRecognizer*" } | Add-WindowsCapability -Online | Out-Null
3364+
}
3365+
33543366
# Uninstall PowerShell 2.0 Environment
33553367
# PowerShell 2.0 is deprecated since September 2018. This doesn't affect PowerShell 5 or newer which is the default PowerShell environment.
33563368
# May affect Microsoft Diagnostic Tool and possibly other scripts. See https://blogs.msdn.microsoft.com/powershell/2017/08/24/windows-powershell-2-0-deprecation/

0 commit comments

Comments
 (0)