18 December, 2006

Configuring the Windows Time Service to use an EXTERNAL Time Source.

(source Microsoft kb/816042)

I try and do this evertime I install a server, especially domain controllers to help your internal network keep good time. The following instructions are taken directly from micosofts artical, it's just that I like to keep a copy for my use just in case they remove theirs!


Configuring the Windows Time service to use an external time source.
To configure an internal time server to synchronize with an external time source, follow these steps:


1. Change the server type to NTP. To do this, follow these steps:
a. Click Start, click Run, type regedit, and then click OK.
b. Locate and then click the following registry subkey:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters\Type
c. In the right pane, right-click Type, and then click Modify.
d. In Edit Value, type NTP in the Value data box, and then click OK.

2. Set AnnounceFlags to 5. To do this, follow these steps:
a. Locate and then click the following registry subkey:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config\AnnounceFlags
b. In the right pane, right-click AnnounceFlags, and then click Modify.
c. In Edit DWORD Value, type 5 in the Value data box, and then click OK.

3. Enable NTPServer. To do this, follow these steps:
a. Locate and then click the following registry subkey:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpServer
b. In the right pane, right-click Enabled, and then click Modify.
c. In Edit DWORD Value, type 1 in the Value data box, and then click OK.

4. Specify the time sources. To do this, follow these steps:
a. Locate and then click the following registry subkey:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters\NtpServer
b. In the right pane, right-click NtpServer, and then click Modify.
c. In Edit Value, type Peers in the Value data box, and then click OK.Note Peers is a placeholder for a space-delimited list of peers from which your computer obtains time stamps. Each DNS name that is listed must be unique. You must append ,0x1 to the end of each DNS name. If you do not append ,0x1 to the end of each DNS name, the changes made in step 5 will not take effect. If you don't have an NTP server to use, I always use the public ntp server "tock.usno.navy.mil,0x1"

5. Select the poll interval. To do this, follow these steps:
a. Locate and then click the following registry subkey:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpClient\SpecialPollInterval
b. In the right pane, right-click SpecialPollInterval, and then click Modify.
c. In Edit DWORD Value, type TimeInSeconds in the Value data box, and then click OK. Note TimeInSeconds is a placeholder for the number of seconds that you want between each poll. A recommended value is 900 Decimal. This value configures the Time Server to poll every 15 minutes.

6. Configure the time correction settings. To do this, follow these steps:
a. Locate and then click the following registry subkey:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config\MaxPosPhaseCorrection
b. In the right pane, right-click MaxPosPhaseCorrection, and then click Modify.
c. In Edit DWORD Value, click to select Decimal in the Base box.
d. In Edit DWORD Value, type TimeInSeconds in the Value data box, and then click OK. Note TimeInSeconds is a placeholder for a reasonable value, such as 1 hour (3600) or 30 minutes (1800). The value that you select will depend upon the poll interval, network condition, and external time source.
e. Locate and then click the following registry subkey: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config\MaxNegPhaseCorrection
f. In the right pane, right-click MaxNegPhaseCorrection, and then click Modify.
g. In Edit DWORD Value, click to select Decimal in the Base box.
h. In Edit DWORD Value, type TimeInSeconds in the Value data box, and then click OK. Note TimeInSeconds is a placeholder for a reasonable value, such as 1 hour (3600) or 30 minutes (1800). The value that you select will depend upon the poll interval, network condition, and external time source.

7. Quit Registry Editor.

8. At the command prompt, type the following command to stop and restart the Windows Time service, and then press ENTER:
net stop w32time && net start w32time

19 October, 2006

Utilising an External USB Floppy during Windows XP/2003 Server F6 Mass Storage Driver Install

I was stuck in a pickle the other day when I was on site installing a proliant server that had a RAID card fitted with 2 mirrored drives. This would not normally be a problem, dump the mass storage device driver on a floppy, press F6 when installing Windows 2003 Server, bob's your uncle. That's when I hit my first hurdle, tried to create a floppy and realised that my laptop didn't have a floppy drive, neither did any other workstation in the building. No worries I thought, nipped out to the local hardware supplier and picked up a USB Floppy to save the day.

Got the drivers on the disk, started the install with the USB Floppy drive connected to the server, hit the F6 key hey presto picked up the storage drivers, windows carried on copying files and then rebooted as part of the install. On rebooting the install carries on, and at some point needs to copy the drivers from the floppy, but the USB Floppy is no longer there !!! AAAARRRGGGG!!!!!!

Bit of searching on my good freind google, landed my at a lifesaving article
http://www.kortekservices.com/support/forum/forum_posts.asp?TID=105&PID=122#122
that I felt worthwhile posting up here just in case I or anyone else needed it in the future.

-------------------------------------
Windows Setup F6 USB Floppy Drive FixCreate your Storage device driver disk and open textsetup.oem Add the following lines to the bottom of [HardwareIds.scsi.(device name)] If this section does not exist you must create it!If your USB floppy drive still does not work, look for the hardware ID in the floppy drive driver's .inf file, and make sure any legacy floppy drives are disabled in the bios.

CODE
id = "USB\VID_03F0&PID_2001", "usbstor" #--HP

id = "USB\VID_054C&PID_002C", "usbstor" #--Sony
id = "USB\VID_057B&PID_0001", "usbstor" #--Y-E Data
id = "USB\VID_0409&PID_0040", "usbstor" #--NEC
id = "USB\VID_0424&PID_0FDC", "usbstor" #--SMSC
id = "USB\VID_08BD&PID_1100", "usbstor" #--Iomega
id = "USB\VID_055D&PID_2020", "usbstor" #--Samsung


Here is an example textsetup.oem file with the additional info inserted:

CODE
#//////////////////////////////////////////////////////////////////
[Disks]
d1 = "Intel Embedded Server RAID Technology",\MegaSR,
[Defaults]
scsi = MegaSR

[scsi]
MegaSR ="Intel Embedded Server RAID Technology (Windows XP/2003 64-bit)", MegaSR[Files.scsi.MegaSR]driver = d1, MegaSR.sys, MegaSRinf = d1, MegaSR.infinf = d1, NODEV.infcatalog = d1, MegaSR.cat[HardwareIds.scsi.MegaSR]

id="PCI\VEN_8086&DEV_2682&SUBSYS_10901734", "MegaSR"
id="PCI\VEN_8086&DEV_2683&SUBSYS_10901734", "MegaSR"
id="PCI\VEN_8086&DEV_2682&SUBSYS_81FF1043", "MegaSR"
#--The following lines give additional USB floppy support
id = "USB\VID_03F0&PID_2001", "usbstor" #--HP
id = "USB\VID_054C&PID_002C", "usbstor" #--Sony
id = "USB\VID_057B&PID_0001", "usbstor" #--Y-E Data
id = "USB\VID_0409&PID_0040", "usbstor" #--NEC
id = "USB\VID_0424&PID_0FDC", "usbstor" #--SMSC
id = "USB\VID_08BD&PID_1100", "usbstor" #--Iomega
id = "USB\VID_055D&PID_2020", "usbstor" #--Samsung

[Config.MegaSR]
value = "Parameters\PnpInterface", 5, REG_DWORD, 1

#//////////////////////////////////////////////////////////////////