命令行查询本地账户
net user
来宾账户默认来宾组:
···
net localgroup Guests
···
查询guest账号SID
wmic group get name,sid | findstr Guests
powershell 查询本地用户和 SID
Get-WmiObject -Class Win32_UserAccount -Filter
"Domain='$env:computername'" | Select-Object Name,SID