iT邦幫忙

0

Windows刪除用戶帳號後,刪除共享資料夾權限問題

請問,人員離職將該員帳號刪除後
要如何快速刪除遺留在 共用資料夾 及安全性 權限裡的亂數ID
因為文管中心內 資料夾很多,要一個個找、刪除 實在麻煩
雖然可眼不見為淨、看到再刪就是,但日積月累會有很多亂數ID遺留,歹看
謝謝

圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

1 個回答

14
Ray
iT邦大神 1 級 ‧ 2015-06-07 09:00:35
最佳解答

先來下載一隻叫 SetACL 的免費程式:
https://helgeklein.com/download/

用「以系統管理員身分」開啟 DOS, 然後嘗試以下指令:

列出可能遺失的 SID:

<pre class="c" name="code">SetACL -on D:\Share -ot file -actn list -lst oo:y;f:tab -rec cont

刪除遺失的 SID:

<pre class="c" name="code">SetACL -on D:\Share -ot file -actn delorphanedsids

請自行把 D:\Share 替換成你要查看的資料夾....

這裡另外有 PowerShell 版的, 不需要額外的程式:
Remove orphaned SIDs from File/Folder ACL (PowerShell)
請詳讀它的使用方法, 因為該程式要先匯入變成 Module, 才有新指令可以使用...

我要發表回答

立即登入回答