As Technet Gallery is retiring so moving the code to Git Hub. (click below github download link for this script)
Take Ownership and Grant Permissions
Sharing a advanced script that I have used for one of our projects, This script is compatible with Powershell Version 2.0 & 3.0
There was a requirement from Backup Team that
- When they run the script on particular folder it should recurse thru all subfolder
- Take ownership of only those folder where Backup account gets access denied
- Grant permissions to those folders so that backup can be taken.
- Log each & every change so they can track for which folders permissions were altered
Let me demonstrate the script with an example:
Create a Share folder Name Root:
Thanks for reading and downloading…
Tech Wizard