Jump to content

Recommended Posts

Posted

Hi,

can anyone enligten me as how to prevent students running windows batch files in there home directories.

We have an OU setup in Active Directory, which contains all the pupils also in seperate OU's for each year group

I need to block all students regardless of their location for logging on.

For their areas, we have a main network share setup called students, with hidden shares (\\server\share name$) setup for all student areas.

I tried applying a new gp object to the Pupil OU and the following paths, but this didnt work! (See attachment)

Thanks if anyone can help,

Mark

blockbatchfiles.doc

Posted

There is an easy way, but for the life of me I can't remember what it is! You can, however try:

Computer Config - Windows Settings - Software Restriction Policies - Designated file types and getting rid of .BAT and others, as always please be careful.

Posted

Per user ... and since that is pretty much the last thing that happens when a user logs in the GPO would prevent the login script if it is a batch file.

 

I tried it a while ago and that is why I don't restrict .bat files atm

 

An alternative is to user software like NTPs file & quota sentinel ... it will kill off certain files as they are saved ... or better still, give the user access to create and save it, but they then can't delete or run it ... and so it sits there, waiting for you to find it and have a conversation with the luser in question ...

 

Mwuhahaha ... Mwuhahahahahaha .... MWUHAHAHAHAHA!!!!!

 

koff ... sorry ... forgot myself for a minute.

Posted
A bit of a bugger if you have your logon scripts as .bat files

 

Another reason to move to vbs I suppose.

 

You should block .vbs across the domain too though.

 

We block *.bat, *.cmd, *.vbs and the allow 'pupil.bat' (or whatever) as a hash rule. A hash rule over-rules a path rule, also a 'more specific' path rule unrestricted over-rules a less specific path rule. I.e. if you block *.bat but allow pupil.bat then the pupil.bat should run as the rule is more specific. We've found that isn't too reliable in the past though. Allowing hash rules does seem to work for us every time.

Posted

cant you just take away exec rights on the home drives?

 

Just give them List Read and Write, even tho they dont have "Modify", it will still let them make changes to existing files, but voila, no exec rights for anything...

Posted
@E1uSiV3: Then you can't open folders.

 

Not if you get the inheritable and owner permissions correct. :)

 

But it's a pain in the arse to set up!

Posted
@E1uSiV3: Then you can't open folders.

 

Not if you get the inheritable and owner permissions correct. :)

 

But it's a pain in the arse to set up!

 

Yes I know. Much easier on Linux. :)

 

mount /home rw,noexec,nosuid,nodev

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...