Code
:: Uninstall Cortana in Windows 10 version 2004
@Echo Off & Cls
(Net session >nul 2>&1)||(PowerShell start """%~0""" -verb RunAs & Exit /B)
:choice
Cls & Mode CON LINES=11 COLS=55 & Color 0E & Title Created By FreeBooter
Echo.
Echo.
Echo.
Echo Uninstall Cortana for Current User (C)?
Echo.
Echo Uninstall Cortana for All Users (A)?
Echo.
Set /p input= RESPONSE:
If /i Not %input%==C (Goto :_Ex) Else (Goto :_CurrentUser)
:_Ex
If /i Not %input%==A (Goto :choice) Else (Goto :_AllUsers)
:_CurrentUser
Echo Get-AppxPackage *Microsoft.549981C3F5F10* ^| Remove-AppxPackage > CurrentUser.ps1
Powershell -ExecutionPolicy ByPass -File CurrentUser.ps1
Del CurrentUser.ps1
Exit
:_AllUsers
Echo Get-appxpackage -allusers *Microsoft.549981C3F5F10* ^| Remove-AppxPackage > AllUsers.ps1
Powershell -ExecutionPolicy ByPass -File AllUsers.ps1
Del AllUsers.ps1
Exit
