Powershell - #HOME DIRECTORY RIGHTS

#HOME DIRECTORY RIGHTS

example user BBunny

$inheritanceflags = [system.security.accesscontrol.inheritanceflags]::containerinherit -bor [system.security.accesscontrol.inheritanceflags]::objectinherit
$propagationflags = [system.security.accesscontrol.propagationflags]::none
$accesscontroltype = [system.security.accesscontrol.accesscontroltype]::allow
$permission = "BBunny","FullControl", $inheritanceflags, $propagationflags, $accesscontroltype