Thursday, February 24, 2011

Domain Controller ไม่ Duplicate หรือ dcpromo แล้วฟ้องว่า schema ไม่ sync

ให้ run dcdiag เพื่อตรวจสอบ
หากมีข้อความประมาณนี้

Testing server: Default-First-Site-Name\SERVER01

Starting test: Replications

[Replications Check,SERVER01] Inbound replication is disabled.

To correct, run "repadmin /options SERVER01 -DISABLE_INBOUND_REPL"

[Replications Check,SERVER01] Outbound replication is disabled.

To correct, run "repadmin /options SERVER01 -DISABLE_OUTBOUND_REPL"

......................... SERVER01 failed test Replications

Starting test: NCSecDesc

......................... SERVER01 passed test NCSecDesc

Starting test: NetLogons

......................... SERVER01 passed test NetLogons


ให้ใช้ command ที่ dos

"repadmin /options SERVER01 -DISABLE_INBOUND_REPL"

repadmin /options SERVER01 -DISABLE_OUTBOUND_REPL

จากนั้นใช้ dcpromo อีกครั้ง

Saturday, February 12, 2011

Backup IIS Config

Run the script using the command line cscript
Cscript c:\windows\system32\iisback.vbs /backup /b BKIIS /overwrite
The backup can be copied to a different location, copy all files in the
C:\Windows\system32\Metaback directory that are named what the backup was (i.e. BKIIS.*)