Click here to Skip to main content
15,909,324 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hello!

I would like to block some of my programs from running on a guest account. So when the user wants to start the application it throws an error. Is there a way to do that? And if yes, can the user get around this somehow?
Posted
Comments
[no name] 1-Jun-11 10:58am    
Is the application you want to block yours or a 3rd party app?
velvet7 1-Jun-11 11:14am    
It is 3rd party app.

The simplest way to do that is to make the file (or the application executable directory) invisible for the guest account. Just use the file (directory) Properties with the shell, => "Security" tab and deny all access. You can also allow access for selected groups, say "Administator" and "Power Users" and deny for anyone else. Read Microsoft help on security for more information.

Work-around with the copy will not work in this case. Denied users won't access anything in first place.

Any questions?

—SA
 
Share this answer
 
Comments
Espen Harlinn 1-Jun-11 18:37pm    
My 5 - Would have thought that this was kind of obvious, seems like it's not :)
Sergey Alexandrovich Kryukov 1-Jun-11 18:43pm    
Thank you, Espen.
--SA
The only way to do that is by Group Policy. ...and the user can get around it if they know what they're doing.

GPEDIT.MSC -> User Configuration -> Administrative Templates -> System, look for "Don't run specified Windows applications" and for better control "Run only specified Windows applications".


There is no guaranteed 100% fool proof method of stopping an app from running.
 
Share this answer
 
Comments
velvet7 1-Jun-11 12:32pm    
Thank you for the answer. And what programs could get around this kind of security?
Dave Kreskowiak 1-Jun-11 13:33pm    
You don't need any. All you have to do is rename the .EXE or make a copy of it (with a different file name) and run the copy.
velvet7 1-Jun-11 13:38pm    
Then this isn't what I am looking for I am afraid :( It's too easy for them.
Dave Kreskowiak 1-Jun-11 18:05pm    
The real solution is to not use Guest accounts and setup proper security acrossed everything, allowing access to only the things the account requires, including the filesystem folders.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900