{I+=codeWee;}
[PowerShell] Searching specific folders to take owner and change permission
Get-ChildItem "{Path}" -include "FolderName" -Recurse   | % {
     takeown /F $_.FullName
     icacls  $_.FullName /grant:r "administrator:(OI)(CI)F" /T
}
HTML | PHP | C++ | DirectX11 | Javascript | C# | HTML5 | ASP | SQL | General | CSS | Oculus Rift | Unity3d | Virtools SDK | Tip | NSIS | PowerShell | node.js | Web API | RTSP | All
Copyright© 2016 CodeWee.com All rights reserved.