如何让 ICACLS 报告数字 SID

发布于 2025-01-07 07:16:39 字数 637 浏览 2 评论 0原文

我输入:

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

有木有妳兜一样 2025-01-14 07:16:39

您可以编写 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.

香橙ぽ 2025-01-14 07:16:39

在没有任何其他答案的情况下,我会说唯一的方法是使用“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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文