查看sid

本文详细介绍了如何通过命令行工具查看当前用户的SID以及系统的SID。使用`whoami/user`命令可以获取当前用户的SID,而`PSTools`工具中的`psgetsid.exe`命令则用于查看系统的SID。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

查看用户sid:

whoami /user

 

查看系统sid:

使用PSTools工具中的 psgetsid.exe命令查看

PsGetSid是PsTools工具集中,由sysinternals发布,目前的最新版本是2.44。个人感觉sysinternals的工具功能非常强大也非常好用,如果用好这些工具工作效率大为提高。 下载地址:[url]http://download.sysinternals.com/Files/PsTools.zip[/url] 下面是PsGetSid的描述 PsGetSid Have you performed a rollout and only to discover that your network might suffer from the SID duplication problem? In order to know which systems have to be assigned a new SID (using a SID updater like Sysinternals' own NewSID) you have to know what a computer's machine SID is. Up until now there's been no way to tell the machine SID without knowing Regedit tricks and exactly where to look in the Registry. PsGetSid makes reading a computer's SID easy, and works across the network so that you can query SIDs remotely. PsGetSid also lets you see the SIDs of user accounts. Installation Copy PsPsGetSid onto your executable path and type "psgetsid". Usage Usage: psgetsid [\\computer[,computer[,...] | @file [-u username [-p password]]] [account] If you want to see a computer's SID just pass the computer's name as a command-line argument. If you want to see a user's SID, name the account (e.g. "administrator") on the command-line and an optional computer name. Specify a user name if the account you are running from doesn't have administrative privileges on the computer you want to query. If you don't specify a password as an option PsGetSid will prompt you for one so that you can type it in without having it echoed to the display. 下面是使用psgetsid查询sid实例 C:\Documents and Settings\psyadmin>psgetsid /? PsGetSid v1.43 - Translates SIDs to names and vice versa Copyright (C) 1999-2006 Mark Russinovich Sysinternals - [url]www.sysinternals.com[/url] Usage: psgetsid [\\computer[,computer2[,...] | @file] [-u Username [-p Password] ]] [account | SID] -u Specifies optional user name for login to remote computer. -p Specifies optional password for user name. If you omit this you will be prompted to enter a hidden password.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值