Author Posts

November 13, 2013 at 10:47 pm

Need to set the ACL. Only that user should have full control for his foledr & all deny.

—–SCRIPT——

$Users = Get-Content "Users.txt"
ForEach ($user in $users)
{
$newPath = Join-Path "\\WIN-85IOGS94Q68\netshare$\" -childpath $user
New-Item $newPath -type directory
}

November 16, 2013 at 10:29 am

Read the help files for Get-ACL and Set-ACL.