ユーザ一覧を取得する

ユーザ一覧を取得する

バッチ

システムアカウントを表示する

コマンド:


wmic SYSACCOUNT get /value

実行例:


C:\>wmic SYSACCOUNT get /value

Caption=PCNAME\Everyone
Description=PCNAME\Everyone
Domain=PCNAME
InstallDate=
LocalAccount=TRUE
Name=Everyone
SID=S-1-1-0
SIDType=5
Status=OK
Caption=PCNAME\LOCAL
Description=PCNAME\LOCAL
Domain=PCNAME
InstallDate=
LocalAccount=TRUE
Name=LOCAL
SID=S-1-2-0
SIDType=5
Status=OK
Caption=PCNAME\CREATOR OWNER
Description=PCNAME\CREATOR OWNER
Domain=PCNAME
InstallDate=
LocalAccount=TRUE
Name=CREATOR OWNER
SID=S-1-3-0
SIDType=5
Status=OK
Caption=PCNAME\CREATOR GROUP
Description=PCNAME\CREATOR GROUP
Domain=PCNAME
InstallDate=
LocalAccount=TRUE
Name=CREATOR GROUP
SID=S-1-3-1
SIDType=5
Status=OK
Caption=PCNAME\CREATOR OWNER SERVER
Description=PCNAME\CREATOR OWNER SERVER
Domain=PCNAME
InstallDate=
LocalAccount=TRUE
Name=CREATOR OWNER SERVER
SID=S-1-3-2
SIDType=5
Status=OK
Caption=PCNAME\CREATOR GROUP SERVER
Description=PCNAME\CREATOR GROUP SERVER
Domain=PCNAME
InstallDate=
LocalAccount=TRUE
Name=CREATOR GROUP SERVER
SID=S-1-3-3
SIDType=5
Status=OK
Caption=PCNAME\OWNER RIGHTS
Description=PCNAME\OWNER RIGHTS
Domain=PCNAME
InstallDate=
LocalAccount=TRUE
Name=OWNER RIGHTS
以下省略

コマンド:


wmic USERACCOUNT get /value

実行例:


C:\>wmic USERACCOUNT get /value

AccountType=512
Caption=PCNAME\Administrator
Description=コンピューター/ドメインの管理用 (ビルトイン アカウント)
Disabled=TRUE
Domain=PCNAME
FullName=
InstallDate=
LocalAccount=TRUE
Lockout=FALSE
Name=Administrator
PasswordChangeable=TRUE
PasswordExpires=FALSE
PasswordRequired=TRUE
SID=S-1-5-21-4193830735-681569592-348402080-500
SIDType=1
Status=Degraded
AccountType=512
Caption=PCNAME\DefaultAccount
Description=システムで管理されるユーザー アカウントです。
Disabled=TRUE
Domain=PCNAME
FullName=
InstallDate=
LocalAccount=TRUE
Lockout=FALSE
Name=DefaultAccount
PasswordChangeable=TRUE
PasswordExpires=FALSE
PasswordRequired=FALSE
SID=S-1-5-21-4193830735-681569592-348402080-503
SIDType=1
Status=Degraded
AccountType=512
Caption=PCNAME\Guest
Description=コンピューター/ドメインへのゲスト アクセス用 (ビルトイン アカウント)
Disabled=TRUE
Domain=PCNAME
FullName=
InstallDate=
LocalAccount=TRUE
Lockout=FALSE
Name=Guest
PasswordChangeable=FALSE
PasswordExpires=FALSE
PasswordRequired=FALSE
SID=S-1-5-21-4193830735-681569592-348402080-501
SIDType=1
Status=Degraded
AccountType=512
Caption=PCNAME\username
Description=
Disabled=FALSE
以下省略

コマンドサンプル一覧