Experts Exchange connects you with the people and services you need so you can get back to work.
takeown /f $Folder /R /A /D Y
Open in new window
If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.
Get-ChildItem $folder -force -recurse | Select -exand Fullname | % `
takeown /f $_ /A /D Y
icacls $_ /grant "PHI\gocadmin:(F)"
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Have a better answer? Share it in a comment.
Please enter a first name
Please enter a last name
Must be at least 4 characters long.
Join and Comment
If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.