Thursday, September 19, 2013

Set deny permissions on a file via command line

One server
cacls "c:\Program Files (x86)\BigFix Enterprise\BES Client\BESClientUI.exe" /e /d "EVERYONE"

Multiple servers
List servers in a file named C:\servers.txt

for /f %x in (c:\servers.txt) do cacls c:\Program Files (x86)\BigFix Enterprise\BES Client\BESClientUI.exe" /e /d "EVERYONE"