これもPowershellで。

PS C:\Users\Administrator> Get-ADUser -Filter * -SearchBase "OU=test,DC=CHASE,DC=local"  | Set-ADUser -AccountExpirationDate '2018/09/10'

なしにする場合は「$null」を指定する
※このパターン結構多い

PS C:\Users\Administrator> Get-ADUser -Filter * -SearchBase "OU=test,DC=CK2VME1,DC=local"  | Set-ADUser -AccountExpirationDate $null

<スポンサーリンク>

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

*

日本語が含まれない投稿は無視されますのでご注意ください。(スパム対策)