Jump to content

Kids saving notepad files as command.bat


Recommended Posts

Posted

On one of my visits to a year 8 class today the teacher pointed out a little problem that she was worried about,

 

The kids are opening notepad, typing command.com and then saving the file as a .bat file.

 

This worried me a little is there a way this can be stopped? The run command is removed in GP and i am sure that i read R2 can stop these files from being saved.

 

Suggestions please?

Posted

What you should be more worroed about is them being able to excute arbitrary batch scripts. They don't need to bother with command.com why not just use VBS. Get more done.

 

Use software restriction policy so that the only executables (exe, cmd or bat) are the ones you yourself have created or deployed.

Posted
Use software restriction policy so that the only executables (exe, cmd or bat) are the ones you yourself have created or deployed.

 

How?

Posted
@Kyle: If you search the forums there's been lots of stuff on software restriction policies. An easier way would be to use File Screening Filters on R2 - there's a pre-defined template for just this! ;)
Posted
Sounds like the Prevent Access to Command line option isn't specified, just that Run is removed from the Start Menu.

 

Could be wrong - has been know ;)

 

Nope, we're having this same problem and we've got that policy enabled

 

Does anyone know how to ban all .bat and .exe from a users documents with software restriction policies? Ive blocked command.com and cmd.exe but id like to block all batch files

 

Getting R2 sorted near christmas but would like to stop this now

Posted
Does anyone know how to ban all .bat and .exe from a users documents with software restriction policies? Ive blocked command.com and cmd.exe but id like to block all batch files

 

We do this by whitelisting software that we want to run in Win 2000 GPO - user config - Admin templates - system - run only allowed windows applications. Then combining this with McAfee to ban users saving .exe .bat files.

 

Samba can do this natively.

Posted
Sounds like the Prevent Access to Command line option isn't specified, just that Run is removed from the Start Menu.

 

Could be wrong - has been know ;)

 

Nope, we're having this same problem and we've got that policy enabled

 

Does anyone know how to ban all .bat and .exe from a users documents with software restriction policies? Ive blocked command.com and cmd.exe but id like to block all batch files

 

Getting R2 sorted near christmas but would like to stop this now

 

Presumably they can only save these files to their 'home' drives & public file areas?

 

In which case add a DENY permission under security (in advanced)for :

 

Traverse Folder / Execute

 

they then cannot execute any files stored in this location.

 

 

so right-click root of students home drives folder, properties / security / advanced. Add Students group with explicit DENY for Traverse / Execute.

 

repeat for any area where they can save files.

 

You can also explicitly dney them access to notepad as an executable within AD blocked exe files (forget where exactly),

 

the traverse folders / execute one is useful - stops alot of their nefarious type activities.

 

Only way round it is for them to find somewhere they can save to, that you havent applied that permission.

Posted

Right, an update today.

The command prompt and run command are blocked in GPO, and the setting to stop command or bat files is enabled as well, they have even have all vbs log on scripts to keep this working. They have no access to the c:drive at all.

 

The kids have a mandatory roaming profile and they are saving this file to their desktops which found weird has they have no access to the c:drive. Roaming profiles are set not o be cached and do clear when they log off. BUT this is what i noticed, when the user logs on it creates a temp profile on the local computer. While they are logged on i checked the security permissions of the temp profile and they have full control, so this is why they can save temporarily to the c: drive in the documents and settings/desktop folder.

 

Should this happen? Should the temp profile have full control for the user.

 

Please help .....?

Posted

@Kyle

 

While I do have a mandatory profile mine are not roaming and with a combination of desktop lockdowns via GPO they can NOT save or change anything on the desktop.

 

With regard to stopping file types in home directories I currently do not have R2 so the file screening is not an option but for the last 18 months I have been using a server product called SRM SpaceGuard via policies which can be setup for the students is filetype control simply specify the filetypes apply the policy and hey presto no more file saving.

 

You can get info from http://www.tools4ever.com/products/spaceguard/ and at a cost of £399 less educational discount (ask for or you won't get it) it was a no brainer for me.

Posted
I can only guess that he has the profile stored on the local machine perhaps?? I always thought that mandatory profiles "roamed" as it were IE loading and unloading like a Roaming should do, hence why you can destroy your mandatory but when you log off it ignores your changes and deletes them, but I may be miss-understanding.
Posted

To keep it short and sweet as this has been covered many times here already, but I have a hidden share on our NAS server called profiles$ within this is a set of profiles for students, teachers, etc.

 

Within AD under the user properties -> profile I point this at the profiles share and ensure it is the students one that is loaded. Local profiles ARE NOT CREATED and as it is mandatory and read only its the same for each student.

 

if you want more info on profiles and the differences between them check out --> http://www.russdev.com/edugeek/doku.php?id=different_types_of_profile

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...