LoginSignup
0
2

More than 5 years have passed since last update.

PowerShell:ActiveDirectory ユーザー関連コマンド

Last updated at Posted at 2018-08-07

ActiveDirectoryのユーザー一覧

PS C:\> Get-ADUser -Filter *

ActiveDirectoryのOUに所属するユーザー一覧

PS C:\> Get-ADUser -Filter * -SearchBase "OU=OUName,DC=DCName,DC=DCName"

ActiveDirectoryのグループに所属するユーザー一覧

PS C:\> Get-ADGroupMember -Identity <ADGroup>

既存アカウントにメールアドレスを追加する

要:監理者として実行

Set-ADUser -Identity ADAcount -EmailAddress "mail@domain.com"

パスワードの変更

Set-ADAccountPassword -Identity <UserName> -Reset

注:New Passwordを求められる
dsmodだとNew Paswordは不要

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