Link to home
Start Free TrialLog in
Avatar of illfusion82
illfusion82

asked on

Prevent users from using pushd command

Does anyone know how to disable the pushd command in Windows? I want to restrict our users from using this command at the command prompt.
Avatar of Bill Prew
Bill Prew

Unfortunately there is no way to prevent the use of PUSHD from a command prompt, or a BAT file.  PUSHD is a built in command as part of the cmd processor, so there is no way to disable internal selective internal commands. Not what you wanted to hear, sorry.

~bp
Just, curious, what problem are you trying to solve / prevent?

~bp
Avatar of illfusion82

ASKER

We have users that have two accounts; each account has access to different locations. An example would be accountA has access to the E: drive and AccountB has access to the F: drive. We want to prevent AccountA from performing a runas on the command prompt using AccountB's credentials and executing a pushd to access the F: drive. We are trying to lock down our system so users cannot copy data from the F: drive to the E: drive and vice versa.

I think I may have solved my own problem. I can restrict users from executing the runas.exe. It would be nice to also restrict the pushd, but it looks like it is not possible.  
Gotcha.

~bp
ASKER CERTIFIED SOLUTION
Avatar of ReneGe
ReneGe
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Glad I could help
I forgot to give you the link, from where I got the instructions:
http://www.windowsnetworking.com/kbase/WindowsTips/Windows2003/AdminTips/Admin/DisablingtheRunAsCommand.html

Thanks Bill for the reminder :)