I have no idea what changed.

This commit is contained in:
Erik Eckert 2024-11-29 09:08:30 -07:00
parent 260d06f8bf
commit 9856d66634

View File

@ -1,5 +1,5 @@
$ADUsers = Get-ADUser -Filter '(mail -like "*mpe.ca")' -Properties mail,title,office -SearchBase 'OU=MPEUsers,DC=mpe,DC=ca' | ` $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' | select surname, GivenName, name, mail, title,samaccountname 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