LoginSignup
1
1

More than 3 years have passed since last update.

ActiveDirectory 管理シェル ユーザ情報取り出し

Posted at

ActiveDirectory 管理シェルで、ユーザ情報を引き出すのに苦労したのでメモ

通常表示される値(メンバ)は少なすぎて、例えば、拠点とか事業所とか
そんな値は取れない
中に格納されている値はもっとたくさんあるはずなのにね

やっと辿り着いた引数が、Properties
-Properties DistinguishedName などとやると、名前が取れるが、1項目しか取れない
ということで

Get-ADUser -Filter * -Properties * | Select-Object Name,DistinguishedName,mail

などで好きなものが取れる

後は、

Export-Object -NoTypeInformation -Path C:¥hoge.csv -Encoding:Default

なんかで、csv出力可能

やっとスッキリした

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1