Poswershell - Setting A Home Folder

get-aduser -filter * foreach {New-Item -ItemType Directory -Force -Path ('\\server\home$\' + $_.SamAccountName) }