I have no idea what changed.
This commit is contained in:
parent
260d06f8bf
commit
9856d66634
@ -1,5 +1,5 @@
|
||||
$ADUsers = Get-ADUser -Filter '(mail -like "*mpe.ca")' -Properties mail,title,office -SearchBase 'OU=MPEUsers,DC=mpe,DC=ca' | `
|
||||
where name -NotMatch 'Mailbox|Migration|Federated|Boardroom|Presentation|Survey|Conferences|room|safety|helpdesk|sask|quality|vacation|holiday' | select surname, GivenName, name, mail, title,samaccountname
|
||||
$ADUsers = Get-ADUser -Filter '(mail -like "*mpe.ca")' -Properties mail,title,office,extensionAttribute1,mobile,telephoneNumber -SearchBase 'OU=MPEUsers,DC=mpe,DC=ca' | `
|
||||
where name -NotMatch 'Mailbox|Migration|Federated|Boardroom|Presentation|Survey|Conferences|room|safety|helpdesk|sask|quality|vacation|holiday'
|
||||
|
||||
$ADUsers | Select-Object name,title,mail,GivenName,surname | sort-object name | Export-Csv -Path '.\Active-Users.CSV' -NoTypeInformation
|
||||
$ADUsers | Select-Object name,title,mail,GivenName,surname,extensionAttribute1,mobile,telephoneNumber, office | sort-object name | Export-Csv -Path '.\Active-Users.CSV' -NoTypeInformation
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user