windows系统查看用户sid

查看当前用户SID:whoami /user

C:\Users\Administrator>whoami /user

用户信息
----------------

用户名                        SID
============================= ============================================
sc-201911242110\administrator S-1-5-21-763608681-2285505965-4142930035-500

查询SID:whoami /all

wmic useraccount get name,sid (查看当前系统所有用户的SID)

C:\Users\Administrator>wmic useraccount get name,sid
Name                SID
Administrator       S-1-5-21-763608681-2285505965-4142930035-500
DefaultAccount      S-1-5-21-763608681-2285505965-4142930035-503
Guest               S-1-5-21-763608681-2285505965-4142930035-501
helaowu             S-1-5-21-763608681-2285505965-4142930035-1011
heqy                S-1-5-21-763608681-2285505965-4142930035-1020
sshd                S-1-5-21-763608681-2285505965-4142930035-1008
sshd_server         S-1-5-21-763608681-2285505965-4142930035-1009
WDAGUtilityAccount  S-1-5-21-763608681-2285505965-4142930035-504

posted @ 2021-01-19 19:24  贺秋雨  阅读(5834)  评论(0编辑  收藏  举报