【发布时间】:2020-06-16 12:41:15
【问题描述】:
我正在尝试让所有 AD 用户进入表格,其中的列将是这些字段:
samaccountname, name, useraccount control, employeeid, employeetype, 杰出的类型、职务、部门、经理、启用、锁定、 passwordexpired, passwordlastset, passwordneverexpires, lastlogondate, whencreateddate, whenchanged, modified, accountexpirationdate, mail)
然后保存到excel/csv文件中
我试过这个:
Get-ADUser -Filter | samaccountname, name, useraccount control, employeeid, employeetype,
distinguishedtype, title, department, manager, enabled, lockedout, passwordexpired,
passwordlastset, passwordneverexpires, lastlogondate, whencreateddate, whenchanged,
modified, accountexpirationdate, mail
但我没有很好地工作。有人可以帮我写这个脚本吗?
【问题讨论】:
-
whencreateddate->whenCreated和distinguishedtype-> 可能是distinguishedName?
标签: windows powershell active-directory