Powershell - Creating Home Folders


Powershell
ForEach ($User in (Get-ADUser -Filter * | Select -ExpandProperty SamAccountName )) { New-Item -Path \\server\home$\$User -ItemType directory }