Public/Disable-Cortana.ps1

Function Disable-Cortana {
    <#
    .Description
    Simply disables Cortana Functionality
 
    .Notes
    To undo this change delete the following registry key or change the value to 1
    'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search\AllowCortana'
    #>


    New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\' -Name 'Windows Search'
    New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search' -Name 'AllowCortana' -PropertyType DWORD -Value '0'
}