Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a powershell script which takes some data and dumps into a logfile whenever its executed.The script resides in single location and shortcut is distributed to all.

I want to log the events on the script when it's executed; How can I give the users only append access to the log file ; I don't want them deleting the logs; they only need to apped to that.

Please do let me know of any questions or clarifications.

share|improve this question
up vote 1 down vote accepted

You need to modify the NTFS permissions on the log file. You need to ensure that the "Create folders / append data" permission only is granted to the individuals or groups that you want to be able to only append to the log file. That setting is in the "Advanced" portion of the permissions on the file.

enter image description here

Also see:

Create Folders/Append Data: This Create Folders permission allows users to create folders within a folder. (This applies to folders only.) The Append Data permission allows users to make changes to the end of the file, but they can't change, delete, or overwrite existing data. (This applies to files only.)

share|improve this answer
Should the inheritence be disabled? – Darktux Feb 8 '13 at 17:50
It doesn't need to be - permissions granted explicitly on a file will take precedence over inherited permissions. An explicit deny takes precedence over an inherited allow, an explicit allow takes precedence over an inherited deny, etc. – Ryan Ries Feb 8 '13 at 17:54
for some reason, it doesn't work for me :( – LogicDaemon Jun 24 '15 at 8:50
this seem to be minimal permission set for append (via command line redirection) to work: My guess is that Write is actually required for appending data, but without Append permission, you can't resize the file. – LogicDaemon Jun 24 '15 at 8:55

Your Answer


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.