Take Ownership and Grant Permissions

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:

Capture

Capture

Capture

Thanks for reading and downloading…

Tech Wizard

https://techwizard.cloud

https://syscloudpro.com/

PowerShell Cheat Book

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s