0

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!

Gup3rSuR4c
  • 661
  • 3
  • 14
  • 29
  • 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

1 Answers1

0

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.

Winter Faulk
  • 471
  • 2
  • 14