在ActiveDirectory导出中,我希望邮件地址全部小写,我知道ToLower()但是我正在努力将它放在正确的位置:
(电源外壳)
Get-ADUser
-SearchBase "OU=11-something,DC=somethingelse,DC=somethingelser"
-Filter {somefilters} -Properties name,mail
|Select-Object Name,(mail).ToLower()
| Export-Csv -Path "D:\Path"
-Encoding UTF8 -NoTypeInformation
Run Code Online (Sandbox Code Playgroud)
甚至有可能Get-ADUser吗?