Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

So, I have a couple of batch files that install some executables and they work, but when the executables setup shortcuts on the desktop only SYSTEM has access to them. Is there a way I can prevent that or make it so it adds Domain Users access or something like that. I realize that the batch files are ran under the SYSTEM context, but I'd like to find a way to clean up after them.

Thanks in advance!

share|improve this question
3  
It's not clear what you mean by "only SYSTEM has access to them". Define "access". Are the shortcuts getting put into the SYSTEM profile's desktop instead of the "Public" desktop? It might just be a matter of changing the batch file to reference the machine's "Public" desktop folder, since files created there will inherit that folder's ACL. –  Evan Anderson Oct 26 '12 at 22:30
add comment

1 Answer

You cold have the batch file change the permissions on the file to add the Domain Users group to the file by using the ICACLS command.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.