0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Windows PowerShell AD関連 コマンド

Last updated at Posted at 2021-10-13

あいさつ

ども、こんにちは。
自分の中に「めんどくさい」の概念がないことがめんどくさい、けいしーです。

PowerShellコマンドの備忘録の記事を一括りにしていたのですが、別分けした方が見やすいかなと感じ、別で記事として出した次第です。
恐らく仕事で使用するコマンドがバラバラと出てくると思うので、これも随時更新する方針です。(´・ω・`)

AD関連

コンピューターアカウントが所属するグループ名の情報を取得する。

PowerShell
Get-ADGroup -Filter *| select Name, @{Label = "MemberNames"; Expression = {($_| Get-ADGroupMember| select -ExpandProperty Name) -join ","}}| Format-List

以下、元ネタ。

コンピューターアカウントが所属するグループ名の情報を取得する。パート 2

PowerShell
Get-CimInstance -Class Win32_GroupUser -Filter 'Caption LIKE "a"'

あとがき

ひとまず、整理するという形で転記だけ。(´・ω・`)
何かあれば追記、大きな追加がされたらSNSとかで宣伝させていただくかもしれません。
よろしくお願い致します。m(_ _)m

0
2
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
0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?