顯示具有 Active Directory管理 標籤的文章。 顯示所有文章
顯示具有 Active Directory管理 標籤的文章。 顯示所有文章

2009年9月7日 星期一

Audit Active Directory Objects in Windows Server 2003 (設定稽核Windows 2003 Active Directory物件)

若存取AD物件發生此錯誤"Access Denied" error code 0x80007005
可設定稽核來找到未授權存取的LDAP屬性


To configure an audit policy setting for a domain controller:
  1. Click Start, point to Programs, point to Administrative Tools, and then click Active Directory Users and Computers.
  2. On the View menu, click Advanced Features.
  3. Right-click Domain Controllers, and then click Properties.
  4. Click the Group Policy tab, click Default Domain Controller Policy, and then click Edit.
  5. Click Computer Configuration, double-click Windows Settings, double-click Security Settings, double-click Local Policies, and then double-click Audit Policy.
  6. In the right pane, right-click Audit Directory Services Access, and then click Properties.
  7. Click Define These Policy Settings, and then click to select one or both of the following check boxes:
    • Success: Click to select this check box to audit successful attempts for the event category.
    • Failure: Click to select this check box to audit failed attempts for the event category.
  8. Right-click any other event category that you want to audit, and then click Properties.
  9. Click OK.
  10. Because the changes that you make to your computer's audit policy setting take effect only when the policy setting is propagated or applied to your computer, complete either of the following steps to initiate policy propagation:
    • Type gpupdate /Target:computer at the command prompt, and then press ENTER.
    • Wait for automatic policy propagation that occurs at regular intervals that you can configure. By default, policy propagation occurs every five minutes.
  11. Open the Security log to view logged events.

    Note If you are either a domain or an enterprise administrator, you can enable security auditing for workstations, member servers, and domain controllers remotely.

Configure Auditing for Specific Active Directory Objects

After you configure an audit policy setting, you can configure auditing for specific objects, such as users, computers, organizational units, or groups, by specifying both the types of access and the users whose access that you want to audit. To configure auditing for specific Active Directory objects:
  1. Click Start, point to Programs, point to Administrative Tools, and then click Active Directory Users and Computers.
  2. Make sure that Advanced Features is selected on the View menu by making sure that the command has a check mark next to it.
  3. Right-click the Active Directory object that you want to audit, and then click Properties.
  4. Click the Security tab, and then click Advanced.
  5. Click the Auditing tab, and then click Add.
  6. Complete one of the following:

    • Type the name of either the user or the group whose access you want to audit in the Enter the object name to select box, and then click OK.
    • In the list of names, double-click either the user or the group whose access you want to audit.
  7. Click to select either the Successful check box or the Failed check box for the actions that you want to audit, and then click OK.
  8. Click OK, and then click OK.
[Reference]
How to troubleshoot access denied in a split permission model or minimum permissions mode

HOW TO: Audit Active Directory Objects in Windows Server 2003

2009年7月17日 星期五

Apply Group Policy Error Event ID 1058,1030

套用群組原則後發現Event Log有錯誤ID是1058與1030
C:\gpupdate /force



















解決方法可以下命令清除Mup Cache
C:\dfsutil /PurgeMup

2008年11月27日 星期四

Repadmin,DCdiag與Netdiag

Repadmin

repadmin /kcc dcname 強制拓樸和複寫對象檢查
repadmin /rebuildgc dcname 觸發 GC 伺服器傾印及重建他的全域目錄
repadmin /bridgeheads dcname 顯示 bridgehead 伺服器
repadmin /istg dcname 顯示負責跨站台拓樸的DC

• 取得每一台DC的複寫對象:
repadmin /showutdvec dcname naming-context 從dcname的角度,顯示最新的向量
repadmin /showrepl dcname naming-context /verbose 顯示複寫對象

• repadmin /replsummary dcname 編譯DC之間成功/失敗統計列表
• repadmin /queue dcname 列出預備送往指定DC的佇列中的項目

• repadmin /showchanges destdc GUID-of-sourceDC naming-context /verbose 列出從 sourceDC 到 DestDC尚未複寫的所有東西

強制複寫
• repadmin /syncall /e [/P] dcname naming-context
/e – 跨站台
/P – 推出變更
• 例如:
repadmin /syncall /e /P dc1 dc=acme,dc=com
• 使用 repadmin /syncall /j dcname
/j: 只同步到相鄰的DC

名稱範例
• bigfirm.com: dc=bigfirm,dc=com
• Configuration NC: cn=configuration,dc=bigfirm,dc=com
• Schema NC: cn=schema,cn=configuration,dc=bigfirm,dc=com
• 未指定NC 名稱: repadmin /syncall 假定是 configuration NC
• dc=ForestDnsZones,DC=bigfirm,dc=com
(只在Forest root domain中出現)
• dc=DomainDnsZones,dc=bigfirm,dc=com

DCdiag與Netdiag
• 在Support Tools中
• Netdiag 是本機執行指令, DCdiag 可以遠端執行
• 前者測試系統網路基礎架構(netdiag)及網域控制站功能(dcdiag)
• 他們非常有用,而且事件單暨聰明的測試方法

• del dcdiag.log
• del repadmin.log
• del netdiag.log
• dcdiag /e /c /v /ferr:c:\dcdiagerrs.log /f:dcdiag.log
• netdiag /v /l
• repadmin /showrepl * /verbose /all /intersite > repadmin.log

合併使用
• del dcdiag.log
• del repadmin.log
• del netdiag.log
• dcdiag /e /c /v /ferr:c:\dcdiagerrs.log /f:dcdiag.log
• netdiag /v /l
• repadmin /showrepl * /verbose /all /intersite > repadmin.log

資料治理實施

資料治理實施