2009年3月21日 星期六

如何讓一般使用者可以在 Windows Vista 的 C: 下建立檔案

方法一:
1. 設定 C: 的 NTFS 資料夾權限為 Users 或 Domain Users 具有寫入 (Write) 的權限。
2. 使用管理員權限提升權限執行 (按右鍵選 "以系統管理員身份執行") 命令提示字元 (cmd.exe),輸入以下指令:
代碼:
icacls c: /setintegritylevel M

這樣可以將 C: 的 Integrity Level 調到 Medium。

好了,這樣一般使用者就可以在 Windows Vista 的 C: 建立檔案了。

這是因為預設 C: 的 Integrity Level 是 High,可是使用者的程式的 Integrity Level 是 Medium,低於 C: 的 Integrity Level,所以會禁止存取。

方法二:
關閉uac即可

沒有留言: