Windows 10 Overwriting a file, does it preserve permissions?


New Member
When I overwrite a file (e.g. with a file copy command from Puppet, SaltStack, or Chef) that was set specific permissions, may the set permissions be lost or no?

I ask because I want to store a password in a file accessible only to SYSTEM user and Admin users, and am afraid that when I overwrite it, permissions may reset rendering the password readable to every user. (Yes, I know about hashing passwords.)

Also, does Windows have some secure (accessible only to SYSTEM user) vault to store there passwords?
If you copy a file it really is copying the data only and should not override permissions.
If you move a file you are moving the data and utilizing it's meta data in the MFT. Basically everything will carry over including the ACL list