How to disable CMD for other users or non-admin users in Windows 10?


  1. Posts : 55
    Windows 10
       #1

    How to disable CMD for other users or non-admin users in Windows 10?


    This is driving me crazy, because I have read over a dozen instructions which I have carried out to the letter, only to see the command prompt still working without a problem.

    The instructions that do work, tend to be for the current logged in user. So I have succeeded in disabling it for the current logged in user, which is non-sense because current logged in user would be admin. I need to disable it for another user account that is not logged. This user is also a standard user(non-admin user).

    I have tried doing this through the registry and also through gpedit.msc without any success. It only works for currently logged in user.

    I would also be willing to consider any third party software programs that make it easy to do these things ie. disable CMD, regedit etc
      My Computer


  2. Posts : 22,929
    Win 10 Home ♦♦♦19045.4170 (x64) [22H2]
       #2
    Last edited by Brink; 20 Jul 2021 at 20:48. Reason: added tutorial link for more info
      My Computer


  3. Posts : 13,848
    Win10 Version 22H2 Pro and Home, Win11 Pro and Home
       #3

    IF you were running the Pro version of Win10 the settings desired may be obtained in Group Policy Editor [not usually available in Home]. I seldom need to use GP.
      My Computers


  4. Posts : 55
    Windows 10
    Thread Starter
       #4

    Actually I read that page.

    I've read everything these is to this online.

    icalse.exe command not recognized. Does that mean I need to install it? This presented me another problem. But would like to do it if possible. How to make it work?
      My Computer


  5. Posts : 22,929
    Win 10 Home ♦♦♦19045.4170 (x64) [22H2]
       #5

    MikeGreo said:
    Actually I read that page.

    I've read everything these is to this online.

    icalse.exe command not recognized. Does that mean I need to install it? This presented me another problem. But would like to do it if possible. How to make it work?


    Are you spelling it properly... icacls


    type: icacls /?





    How to disable CMD for other users or non-admin users in Windows 10?-image1.png



    takeown /f cmd.exe <--- gives you ownership of cmd.exe


    icacls cmd.exe /deny xxxxxxxx:RX <--- denies user xxxxxxxx the ability to use cmd.exe
      My Computer


  6. Posts : 55
    Windows 10
    Thread Starter
       #6

    It's working now! Thanks for the advice mate.

    Now I just need to do the same for regedit, but doesn't recognize the username in terminal fo some reason. Any ideas how to disable regedit for another user?
      My Computer


  7. Posts : 22,929
    Win 10 Home ♦♦♦19045.4170 (x64) [22H2]
       #7

    MikeGreo said:
    It's working now! Thanks for the advice mate.

    Now I just need to do the same for regedit, but doesn't recognize the username in terminal fo some reason. Any ideas how to disable regedit for another user?

    Well the regedit filename is regedit.exe So you would need to substitute regedit.exe for cmd.exe in the commands above.

    As for the user name, I'm guessing you need to spell it correctly and I assume capitalize, spaces, etc... exactly the same as the user name.

    The RX at the end of the command will "deny" Read and Execute permissions.
      My Computer


  8. Posts : 55
    Windows 10
    Thread Starter
       #8

    Ghot said:
    Well the regedit filename is regedit.exe So you would need to substitute regedit.exe for cmd.exe in the commands above.

    As for the user name, I'm guessing you need to spell it correctly and I assume capitalize, spaces, etc... exactly the same as the user name.

    The RX at the end of the command will "deny" Read and Execute permissions.

    I had to be in the right directory and it worked.

    Thanks a million!
      My Computer


  9. Posts : 22,929
    Win 10 Home ♦♦♦19045.4170 (x64) [22H2]
       #9

    MikeGreo said:
    I had to be in the right directory and it worked.

    Thanks a million!
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 02:11.
Find Us




Windows 10 Forums