Search This Blog

Wednesday, March 18, 2009

Enable Strict Replication Consistency

Description
Supposed a domain controller get disconnected from the replication topology for an extended period and then later on reconnect it. You need to make sure that no outdated Active Directory objects can be replicated within the forest.

Resolution
Use regedit command and go to: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NTDS\Parameters
Create a Strict Replication Consistency with REG_DWORD data type. Set 1 as the value.

This setting ensures that no outdated objects are reintroduced into Active Directory Domain Services (AD DS).
You need to set it on all of the Domain Controller within the Forest.

Wednesday, March 11, 2009

Error when burning CD

Have you ever get an issue when trying to burn some files to a CD/DVD?
In my case I got error writing Lead-In when trying to burn some file using UltraISO on my IBM T42 CD ROM (HL-DT-ST RW/DVD GCC-4242N). I can use it to read any CD/DVD with no issue.
I try to change the burner software to Nero but got similar error too. Try to lower the burning speed with no luck.
Previously I remember that I can burn a CD with that CD ROM, somehow it's just stop working.
I try to search for a driver update but cannot find any. A firmware update maybe available but I think that's too much for the issue.
Finally I try to clean the lenses. Just wipe it with a clean tissue, try to burn, and it works.

Tuesday, February 3, 2009

AD Modify

If you ever need to change an attribute for a lot of user in Active Directory, you might want to use ADModify.Net tools. It is available free.

Following is the example for querying any user that has empty mobile phone number field in Active Directory.

(&(&(objectcategory=person)(objectclass=user))(!mobile=*))

Wednesday, December 31, 2008

VMWare - Cannot start Client Machine - Failed to lock the file

Description
You have setup a VMWare host and configure a couple of client machines inside.
One day you want to start the client machine but recieve an error "cannot open the ***********.vmdk or one of the snapshot disks it depends on. Reason: Failed to lock the file." You are certain that nothing is using that file.

Resolution
Find the file with *.lck extension inside the VM directory on the host machine. Rename the extension into something else. Try to start the VM client again.

Friday, November 7, 2008

Script to Add Windows Registry Keys

You can add / create windows registry key through command line by using REG.Exe tool.

Example:

Reg Add HKLM\Software\Classes\Excel.Sheet.8\ /v Browserflags /t REG_DWORD /d "8" /f

/v value name to add, under the selected Key
/t RegKey data types:
[ REG_SZ, REG_MULTI_SZ, REG_DWORD_BIG_ENDIAN, REG_DWORD, REG_BINARY, REG_DWORD_LITTLE_ENDIAN, REG_NONE, REG_EXPAND_SZ ] If omitted, REG_SZ is assumed
/d data to assign to the registry ValueName being added
/f force overwriting the existing registry entry without prompt

Search Google