PowerShell: Recursively taking ownership of files and folders and adding permissions without removing existing permissions
Sam | 07/02/2012 | Tags: acls, icacls, owner, permissions, PowerShell, PowerShell, recurse, Security, server, takeown, takeown.exe, Windows
This is every file server admin’s nightmare: hundreds of shares, thousands of folders, hundreds of thousands of files – and custom or not inherited rights on many of them. Terabytes of data that need auditing – e.g. to find customer data, or credit card information. How do you go about accessing all the data in all the trees? What about backups failing because someone removed the System account? Of course you can seize control of the folder by taking ownership and pushing down from a top level – but how do you preserve the existing Access Control Lists? (more…)
Tags
3rd Party Software
Active Directory
appliance
Automation
blogengine
Blogging
Certificate Services
ESX and ESXi
esxi
Exchange
Exchange
Exchange 2010
Hardware
lab
Networking
nsx
nsx-t
NSX/vCNS
opsmgr
PowerCLI
PowerShell
PowerShell
Security
System Center
vcac
vCenter Server
vco
VMUG
vmug
VMWare
vmworld
vRA
vRealize Automation
vRealize Orchestrator
vro
vrops
VSAN
vsphere
Webinar
webinar
What's new
Windows
Windows Server 2003
Windows Server 2008
Windows Vista