小编chr*_*ris的帖子

在AD导出之前将一个项目转换为小写

在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吗?

powershell export active-directory tolower

0
推荐指数
1
解决办法
100
查看次数

标签 统计

active-directory ×1

export ×1

powershell ×1

tolower ×1