Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學

Windows Server 2003 LimitLogin 登入管理工具部署指南:Web Service、AD 擴充、MMC 整合

編輯:Windows 2003 系統技巧

LimitLogin 是微軟為 Windows Server 2003 開發的登入管理工具,功能包含:限制使用者同時登入數、分類顯示登入資訊、整合至 Active Directory MMC、匯出 CSV/XML 登入記錄。適合銀行、圖書館、ISP 等需嚴格控制並發登入的場景。本文詳述安裝架構、三階段部署流程與參數設定。

系統需求

  • 作業系統:Windows XP + .NET Framework 1.1 / Windows Server 2003。
  • 網域環境:至少一台 Windows Server 2003 網域控制站。
  • IIS:安裝於同網域伺服器 (可與 DC 同機),需 ASP.NET 1.1。

架構元件

部署流程

階段 1:安裝 LimitLogin Web Service

  1. 執行 LimitLoginWebService.msi。
  2. 自訂 Web Service 名稱 (預設 WSLimitLogin),**務必記住**,後續 AD 安裝需填入。
  3. 自訂連接埠 (預設 80/443),確認防火牆允許。
  4. 安裝完成後,瀏覽器測試 https:///WSLimitLogin/Service.asmx 應顯示服務描述頁。

階段 2:安裝 LimitLogin Active Directory (三步驟)

執行 LimitLoginADSetup.msi,三個核取方塊**全選** (首次安裝):

  1. Prepare your Active Directory Forest for LimitLogin (需 Schema Admin 權限):
    更新配置容器、加入 MMC 選單、擴充 Schema (新增 LimitLogin 類別/屬性)。
    完成後在 %windir%\system32\ 及 \Program Files\LimitLogin\ 產生詳細日誌。
  2. Prepare your Active Directory Domain for LimitLogin:
    建立/部署 llogin.vbs (登入腳本)、llogoff.vbs (登出腳本)、limitlogin.wsdl (Web Service 定義)。
    建立應用程式目錄分割 (儲存登入資料)。
    **需提供三個參數**:
    ① Scripts Share Folder (共用資料夾,所有認證使用者需讀取權限)。
    ② IIS Server Name (執行 Web Service 的電腦名稱)。
    ③ LimitLogin Web Service Name (階段 1 設定的名稱,如 WSLimitLogin)。
    選取建立應用程式目錄分割的 DC。
  3. Install LimitLogin AD MMC add-in tools on this machine:
    複製檔案至 %windir%,註冊 MMC 擴充。
    未來在 ADUC 中右鍵使用者/電腦/OU →「LimitLogin Tasks」即可管理。

替代命令列安裝 (適合自動化)

# Forest Prep (Schema Master)
LimitLoginADSetup.exe /ForestPrep

# Domain Prep (各 Domain)
LimitLoginADSetup.exe /DomainPrep

驗證與操作

  1. 開啟「Active Directory 使用者與電腦」,右鍵任意使用者 →「LimitLogin Tasks」→「View Logon Information」查看登入記錄。
  2. 設定「Limit Logon Count」限制特定使用者/群組同時登入數 (如 1)。
  3. 匯出報表:CSV/XML 格式,供稽核/匯入 SIEM。

常見問題排查

元件角色安裝位置
LimitLogin Web Service接收登入/登出事件、提供查詢 APIIIS 伺服器
LimitLogin Active Directory (Forest/Domain Prep)擴充 Schema、建立應用程式目錄分割、部署登入/登出腳本Schema Master / Domain Controller
LimitLogin AD MMC Add-in管理介面,整合至 ADUC MMC管理工作站 (含 RSAT)
現象原因解決
Web Service 500 錯誤ASP.NET 1.1 未註冊/應用程式集區身分識別權限不足aspnet_regiis -i、集區身分設為 NetworkService 或具備權限的網域帳戶
AD 安裝失敗「存取被拒」非 Schema Admin / Domain Admin 執行使用適當權限帳戶執行 MSI
登入腳本不執行GPO 未套用/腳本路徑錯誤/共用權限不足檢查 gpresult、共用權限 Everyone 讀取、腳本簽署
MMC 擴充不顯示Add-in 未在該機器安裝/註冊失敗重新執行階段 3 或手動 regsvr32 LimitLoginAD.dll

注意事項

  • 微軟未提供官方公開下載點,需透過合作夥伴/支援管道取得。
  • .NET Framework 1.1 已停止支援,新部署建議評估現代替代方案 (如 UserLock、Specops Authentication、Azure AD Conditional Access)。
  • 生產環境部署前務必在測試網域完整驗證登入限制、腳本執行、MMC 操作、高可用性 (Web Service 叢集/負載平衡)。

LimitLogin 提供了 Windows Server 2003 時代較完整的並發登入管理解決方案,但隨著技術演進,建議新專案採用現代身分識別與存取管理 (IAM) 平台。

Copyright © Windows教程網 All Rights Reserved