Copy permissions from file copied from “Previous Versions”

I try to copy permissions from files in a “Previous Versions” Folder with Get-ACL

Get-Acl "\localhostP$ProjectsrestoreFilecopiedFromPreviousVersion.pdf" | Set-ACL "\localhostP$ProjectsArchivSameFile.pdf" 

It didn’t work when I tried to get the permissions directly from the previous versions folder but it also doesn’t work when I copy the file to a normal folder (restore). It does work though when I try to copy the permissions from a different file that isn’t copied from the previous versions folder. What is wrong here?

submitted by /u/aemmeroli
[link] [comments]

Leave a Reply