萬盛學電腦網

您现在的位置: 萬盛學電腦網 >> 作業系統 >  >> Windows XP 教學

將自訂登錄設定加入 Windows XP 安全性範本(sceregvl.inf)

目的

讓安全性設定精靈(MMC 安全性範本嵌入式管理單元)能顯示並管理自訂的登錄值,方便透過群組原則或安全性範本部署。

操作流程

  1. 備份原始檔:複製 %SystemRoot%\inf\sceregvl.inf 到他處並改名備份。
  2. 以記事本開啟原始 sceregvl.inf。
  3. 在 [Register Registry Values] 區段下新增一行,格式:
    登錄路徑,類型,顯示名稱,顯示類型,選項字串
    範例:
    MACHINE\Software\Microsoft\WindowsNT\CurrentVersion\Winlogon\ScRemoveOption,1,%ScRemove%,3,0|%ScRemove0%,1|%ScRemove1%,2|%ScRemove2%
  4. 在 [Strings] 區段定義對應字串:
    %ScRemove%=智慧卡移除操作
    %ScRemove0%=無動作
    %ScRemove1%=鎖定工作站
    %ScRemove2%=強制登出
  5. 儲存檔案,命令提示字元執行 regsvr32 scecli.dll 重新註冊 DLL。

移除自訂選項

  1. 編輯 sceregvl.inf,在 [Register Registry Values] 刪除該行。
  2. 在標示 delete these values from the UI 區段加入該登錄路徑(如 MACHINE\Software\Microsoft\WindowsNT\CurrentVersion\Winlogon\ScRemoveOption)。
  3. 儲存 → 執行 regsvr32 scecli.dll → 在 MMC 安全性範本中確認已移除。
  4. 最後再編輯 sceregvl.inf 刪除 delete these values from current system 區段下對應路徑,再次執行 regsvr32 scecli.dll。

參考

微軟知識庫 Q214752 提供詳細編輯安全性範本模板資訊。

copyright © 萬盛學電腦網 all rights reserved