How to disable a Cortana with .bat for netlogon

Lucas Crespo 1 Reputation point
2021-06-24T12:31:25.79+00:00

Guys, good morning!

I have a demand to disable the cortana for all users on my network, for that, I would need to create a .bat to use in netlogon.

I even managed to create one that disables via .reg, but it needs to be run as ADM and thus, it is not working with netlogon.

Would you have any suggestion/solution to create or edit my .bat?

Here's what I did and it worked only locally and as adm:

@Echo off

reg add "HKEY_LOCAL_MACHINE\Software\Policies"

reg add "HKEY_LOCAL_MACHINE\Software\Policies\Microsoft"

reg add "HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows"

reg add "HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\Windows Search"

reg add "HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\Windows Search" /v AllowCortana /t REG_DWORD /d 0 /f

exit

thanks!

Windows for business | Windows Server | Devices and deployment | Set up, install, or upgrade
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2021-06-25T03:15:46.937+00:00

    Hi ,

    If you are trying to write to any registry keys besides HKEY CURRENT USER you must have local administrator rights. As far as I know, there is no way around this.

    Best Regards,
    Candy

    --------------------------------------------------------------

    If the Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.