Hack Forums
[Shell] Uninstall Cortana in Windows 10 version 2004 - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [Shell] Uninstall Cortana in Windows 10 version 2004 (/showthread.php?tid=6084456)



Uninstall Cortana in Windows 10 version 2004 - Emre_ - Jun 3, 2020

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