Jump to content

Recommended Posts

Posted

I've set up a file restrictions policy to stop .exe files running from pen drives, but it has come to my attention that if you run them from a compressed folder in explorer view then they will open succesfully? Does anyone know a group policy setting that will stop this, and force them to extract the compressed folder? Or can you think of another way of stopping this?

 

Google is only showing reg edits to enable this.

 

thanks

Posted
I've set up a file restrictions policy to stop .exe files running from pen drives, but it has come to my attention that if you run them from a compressed folder in explorer view then they will open succesfully? Does anyone know a group policy setting that will stop this, and force them to extract the compressed folder? Or can you think of another way of stopping this?

 

Google is only showing reg edits to enable this.

 

thanks

 

When running an EXE from a Zip file it first extracts to a temporary location and then runs. I think it's placed in the %temp% folder variable, but if you run Process Monitor (https://technet.microsoft.com/en-us/sysinternals/bb896645), it should show where it has run from in the log.

  • Thanks 1
Posted
Or can you think of another way of stopping this?

I use AppLocker rather than SRP, but the following rule should block all EXEs from executing from your temp folder (inc. subfolders).

 

%OSDRIVE%\Users\*\AppData\Local\Temp\*

Posted
I use AppLocker rather than SRP, but the following rule should block all EXEs from executing from your temp folder (inc. subfolders).

 

%OSDRIVE%\Users\*\AppData\Local\Temp\*

 

This did not work. Had to use %LocalAppData%\Temp\*.zip\*

 

All sorted now. Thanks :o

Posted (edited)
This did not work.

The OSDrive variable must be AppLocker only in that case.

 

Had to use %LocalAppData%\Temp\*.zip\*

Did you try %LocalAppData%\Temp\*?

 

You will probably find that students start using .cab, .7z and .rar files to get around your block if you only do .zip files. :)

Edited by Arthur

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