Re: Fully Disable Command Prompt

From: P Basham (anonymous_at_discussions.microsoft.com)
Date: 10/08/04


Date: Fri, 8 Oct 2004 07:21:02 -0700

Steve

Thanks for the reply.

I suspected it was going to be difficult. We need to
allow cmd.exe to run when a user logs on to allow scripts
to run. I found if I disable the command prompt script
processing in the "prevent access to the command prompt"
policy discussed earlier, the user gets nothing but a
blue desktop. Obviously this is not good.

As for ntfs permissions, hows this for an odd one. I
created a file, temp.txt on the root of C:\. Permissions,
Everyone-Read, Dom Admins-Full control. Logged on as a
user, ran a .bat script to open command prompt, and was
able to delete the file. BTW, this action was performed
over a terminal service session from a thin client.

Now I'm very worried

Regards
P Basham
>-----Original Message-----
>That is going to be difficult to do in W2K. If you use
XP Pro you can use
>Software Restriction Policies to lock down a computer.
One thing you could
>try is to remove the users group from ntfs permissions
for every instance of
>cmd.exe and command.com on the computer. You will have
to search the
>computer for those files as they may be located in more
than one place such
>as in the dllcache folder or service pack files folder.
Even so that will
>not stop a user from copying a cmd.exe from a floppy to
their user profile
>to access if they are that determined. As far as users
being able to delete
>files from the hard drive, you may have to review your
ntfs permissions for
>the users. If they are local administrators or power
users fro some reason
>that will be next to impossible to do. -- Steve
>
>
>"Pbas" <anonymous@discussions.microsoft.com> wrote in
message
>news:3f0a01c4ac6f$3774df10$a501280a@phx.gbl...
>> Hi
>>
>> We have a problem I hope someone can help us with.
>>
>> In an OU group policy for a group of users we have
>> enabled the User Configuration-Admin Templates-System-
>> "Prevent access to the command prompt". We have also
>> added cmd.exe to the "Don't run specified windows
>> applications". However we have found that if a user
runs
>> a .bat file with say, ipconfig as the text, Windows is
>> quite happy to allow the user to open the command
prompt
>> window. From here, the user can view and delete files
on
>> the hard drive.
>>
>> If the user types cmd.exe from the command prompt, this
>> is in fact disallowed. How do we stop the user from
>> opening the command prompt.
>>
>> Regards
>> P Basham
>
>
>.
>



Relevant Pages

  • Re: Fully Disable Command Prompt
    ... try is to remove the users group from ntfs permissions for every instance of ... as in the dllcache folder or service pack files folder. ... > a .bat file with say, ipconfig as the text, Windows is ... > quite happy to allow the user to open the command prompt ...
    (microsoft.public.win2000.security)
  • Re: & Now, a Script to List the Running Process Info - Re: Useful little Script to Show the
    ... Done that to the desktop folder, ... at a Command Prompt, with the Name of the Script File (after a Space, ... a Folder where the Command Prompt Opens (either the Root of the ...
    (uk.people.silversurfers)
  • Re: Finding members of RDP groups of a list of computers
    ... got the script to work by double clicking the vbs file. ... cscript //nologo RDPMembers.vbs> report.txt from the command prompt? ... MVP Directory Services ... Your text file of computer names must be located in a folder on ...
    (microsoft.public.scripting.vbscript)
  • Re: export account details from an OU
    ... The script can be run on any computer authenticated to the domain. ... I would run it at a command prompt with the cscript host. ... Const ADS_SCOPE_SUBTREE = 2 ... Set objConnection = CreateObject ...
    (microsoft.public.windows.server.active_directory)
  • Re: Perl vs. W2000
    ... >default to the test directory on c: via the command prompt (e.g., ... in a perl script it is normal to have the first line start with: ... >different from where the script resides, ...
    (microsoft.public.win2000.general)

Loading