我想生成特定驱动器(F :)上所有文件夹和文件的访问详细信息列表,然后导出到.csv。我相当肯定这可以使用Powershell完成,但我不知道如何。请帮忙!
答案 0 :(得分:0)
只需使用icacls并传递/Save
和/t
参数即可重新通过传入的路径并将结果保存到文件中。
icacls F:\ /Save allAcls.txt /t
以下是输出示例
D:(A;ID;FA;;;BA)(A;OICIIOID;GA;;;BA)(A;ID;FA;;;SY)(A;OICIIOID;GA;;;SY)(A;ID;0x1301bf;;;AU)(A;OICIIOID;SDGXGWGR;;;AU)(A;ID;0x1200a9;;;BU)(A;OICIIOID;GXGR;;;BU) COM_HISTORY D:(A;ID;FA;;;BA)(A;OICIIOID;GA;;;BA)(A;ID;FA;;;SY)(A;OICIIOID;GA;;;SY)(A;ID;0x1301bf;;;AU)(A;OICIIOID;SDGXGWGR;;;AU)(A;ID;0x1200a9;;;BU)(A;OICIIOID;GXGR;;;BU) Documents D:(A;ID;FA;;;BA)(A;OICIIOID;GA;;;BA)(A;ID;FA;;;SY)(A;OICIIOID;GA;;;SY)(A;ID;0x1301bf;;;AU)(A;OICIIOID;SDGXGWGR;;;AU)(A;ID;0x1200a9;;;BU)(A;OICIIOID;GXGR;;;BU) COM_HISTORY\server.metadata D:(A;ID;FA;;;BA)(A;ID;FA;;;SY)(A;ID;0x1301bf;;;AU)(A;ID;0x1200a9;;;BU)
F:\COM_HISTORY
和F:\Documents
F:\COM_HISTORY\server.metadata