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

Commit fa45830

Browse files
committed
Add "Uninstall Windows Hello Face"
1 parent 2f391ca commit fa45830

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
@@ -204,6 +204,7 @@ DisableMediaSharing # EnableMediaSharing
204204
# UninstallMediaPlayer # InstallMediaPlayer
205205
# UninstallInternetExplorer # InstallInternetExplorer
206206
# UninstallWorkFolders # InstallWorkFolders
207+
# UninstallHelloFace # InstallHelloFace
207208
# UninstallPowerShellV2 # InstallPowerShellV2
208209
# InstallLinuxSubsystem # UninstallLinuxSubsystem
209210
# InstallHyperV # UninstallHyperV

Win10.psm1

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3339,6 +3339,18 @@ Function InstallWorkFolders {
33393339
Get-WindowsOptionalFeature -Online | Where-Object { $_.FeatureName -eq "WorkFolders-Client" } | Enable-WindowsOptionalFeature -Online -NoRestart -WarningAction SilentlyContinue | Out-Null
33403340
}
33413341

3342+
# Uninstall Windows Hello Face - Not applicable to Server
3343+
Function UninstallHelloFace {
3344+
Write-Output "Uninstalling Windows Hello Face..."
3345+
Get-WindowsCapability -Online | Where-Object { $_.Name -like "Hello.Face*" } | Remove-WindowsCapability -Online | Out-Null
3346+
}
3347+
3348+
# Install Windows Hello Face - Not applicable to Server
3349+
Function InstallHelloFace {
3350+
Write-Output "Installing Windows Hello Face..."
3351+
Get-WindowsCapability -Online | Where-Object { $_.Name -like "Hello.Face*" } | Add-WindowsCapability -Online | Out-Null
3352+
}
3353+
33423354
# Uninstall PowerShell 2.0 Environment
33433355
# PowerShell 2.0 is deprecated since September 2018. This doesn't affect PowerShell 5 or newer which is the default PowerShell environment.
33443356
# 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)