如何让 ICACLS 报告数字 SID
我输入:
ICACLS filename
结果是:
filename No mapping between account names and security IDs was done.
(R,W)
NT AUTHORITY\SYSTEM:(I)(F)
BUILTIN\Administrators:(I)(F)
BUILTIN\Users:(I)(RX)
我希望它报告实际的 SID,尤其是“...之间没有映射”。 ICACLS 可以做到这一点吗?如果没有,什么工具可以做到这一点?
(2012 年 2 月 22 日更新)我了解“ICACLS 文件名 /save saveFile”语法,但必须打开中间文件会增加编写脚本的复杂性。我更喜欢控制台输出。存储在“saveFile”中的输出看起来像这样......
filename
D:AI(A;ID;FA;;;SY)(A;ID;FA;;;BA)(A;ID;0x1200a9;;;BU)(A;ID;0x12008f;;;S-1-5-83-1-xxxxxxxxxx-xxxxxxxxxx-xxxxxxxxxx-xxxxxxxxxx)
I type:
ICACLS filename
Results are:
filename No mapping between account names and security IDs was done.
(R,W)
NT AUTHORITY\SYSTEM:(I)(F)
BUILTIN\Administrators:(I)(F)
BUILTIN\Users:(I)(RX)
I would like it to report the actual SIDs, especially the one "No mapping between ...". Is that possible with ICACLS? And if not, what tool will do this?
(Update 2/22/2012) I know about the "ICACLS filename /save saveFile" syntax, but having to open an intermediate file adds complexity to writing scripts. I would prefer console output. The output stored in "saveFile" looks like this...
filename
D:AI(A;ID;FA;;;SY)(A;ID;FA;;;BA)(A;ID;0x1200a9;;;BU)(A;ID;0x12008f;;;S-1-5-83-1-xxxxxxxxxx-xxxxxxxxxx-xxxxxxxxxx-xxxxxxxxxx)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以编写
ICACLS filename /SAVE con:
将输出发送到控制台。但我怀疑这种格式可能仍然不太符合您的想法。You can write
ICACLS filename /SAVE con:
to send the output to the console. But I suspect that format may still not quite be what you had in mind.在没有任何其他答案的情况下,我会说唯一的方法是使用“ICACLS 文件名/保存输出文件”语法。不是我想要的。
In the absense of any other answers, I will say that the only way is to use the "ICACLS filename /SAVE output_file" syntax. Not what I wanted.