更新Office属性Powershell

时间:2018-09-28 17:46:32

标签: powershell directory

Get-AdUser -filter "displayname -eq 'John Snow'" | Set-ADObject -Office "New Office"

如何在Powershell中更新用户“ Office”(physicalDeliveryOfficeName)?

我也没有运气尝试过-Replace

1 个答案:

答案 0 :(得分:-1)

Get-AdUser -filter“ displayname -eq'John Snow'” | 设置ADUser -Office“新办公室”