Tuesday, September 27, 2011

Add a License Key to Exchange Server 2007



From the Shell (EMS), you can enter the product key using the Set-ExchangeServer cmdlet:
Set-ExchangeServer SERVERNAME -ProductKey aaaaa-aaaaa-aaaaa-aaaaa-aaaaa
To get a list of all Exchange 2007/Exchange 2010 servers and their product keys and trial status, including number of days left:

Get-ExchangeServer | Select name,ProductID,*trial*

(Note: I typically format this as a list rather than a default table, particularly for a smaller number of objects. The table tends to chop off bits of a field when you have too many fields displayed:

Get-ExchangeServer | Select name,ProductID,*trial* | fl

The output looks something like this:

Name: E12EDGE
ProductID:
IsExchange2007TrialEdition: True
IsExpiredExchange2007TrialEdition: False
RemainingTrialPeriod: 29.19.12.55.8950288

Yes, the timing displayed is very precise, down to the seconds and milliseconds :) – but you can probably tell it’s 29 days.

Friday, September 02, 2011

ไม่มี share folder ของ netlogon และ sysvol เมื่อเราทำการรีสตาร์ทเครื่อง DC (Windows 2003)

ในบางครั้งเครื่อง DC (Windows 2003) ของเรา ไม่มี share folder ของ netlogon และ sysvol เมื่อเราทำการรีสตาร์ทเครื่อง จะมีวิธีการแก้หลายวิธี ก่อนที่จะทำตามวิธีเหล่านี้ อย่าลืม backup ไว้ก่อนด้วยนะคับ
วิธีที่ 1 ตามลิงค์นี้ http://support.microsoft.com/kb/315457 วิธีนี้จะเป็นให้แก้ BurFlags registry ที่ HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NtFrs\Parameters\Cumulative Replica Sets\GUID เป็น D4 สำหรับเครื่องหลัก ส่วนเครื่องอื่นเป็น D2
วิธีที่ 2 ตามลิงค์นี้ http://support.microsoft.com/kb/947022 วิธีนี้จะแก้ค่าของ SysvolReady registry ที่ HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Netlogon\Parameters ให้เป็น 1
วิธีที่3 ให้ทำการ 1. Stop NetLogon and FRS on the domain controller. 2. rename the Ntfrs.jdb file to Ntfrs.jdb.tmb in the \Ntfrs\Jet folder. 3. rename the Edb.chk file to Edb.chk.tmb in the \Ntfrs\Jet\Sys folder. 4. rename the Edb.log file, the Res1.log file, and the Res2.log file to Edb.log.tmp file, the Res1.log.tmp file, and the Res2.log.tmp in the\Ntfrs\Jet\Log folder. 5. Restart the NetLogon and FRS services on the domain controller.
Ref : http://itvithblog.exteen.com/20100512/share-folder-netlogon-sysvol-dc-windows-2003