Veeam® is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers. It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.
The code works only if unwanted permission exist only in Sub3 .I need exact same user permission as like F:\correct for F:\new\sub 1\sub2\sub . But if any un-needed permission have access to it previous folder,or parent folder, the un-wanted permissions doesn't get removed.
$acl= get-acl F:\correct # correct folder permission. $files= get-childItem F:\new\sub 1\sub2\sub 3|set-acl -aclobject $acl
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.