I am trying to make a new GAL and i am using this code. The pupils ad account have the deparment field populated as pupil. When i come to look at the GAL its empty.
Any thoughts please?
New-GlobalAddressList -Name "FPHS Pupil GAL" -IncludedRecipients MailboxUsers -ConditionalDepartment "pupil"