viagra
phentermine

Archive for the ‘System configuration’ Category

Joining a Server to a Domain

Monday, February 18th, 2008

Using a graphical user interface

  1. Log onto the computer you want to join and open Control Panel System applet.
  2. Click the Computer Name tab.
  3. Click the Change button.
  4. Under Member of, select Domain.
  5. Enter the domain you want to join and click OK.
  6. You may be prompted to enter credentials that have permission to join the computer.
  7. Reboot the computer.
  8. Note that the tabs in the System applet vary between Windows 2000, Windows XP, and Windows Server 2003.

(more…)

Setting the Name of a Server

Monday, February 18th, 2008

Using a graphical user interface

  1. From the Control Panel, open the System applet.
  2. Select the Computer Name tab (or Network Identification on Windows 2000).
  3. Click the Change button (or Properties on Windows 2000).
  4. Enter the new name in the Computer name field.
  5. If the computer is a member of the domain, you will be prompted for credentials to use for renaming the account in the domain unless you are logged in with a domain administrator account.
  6. Click OK.
  7. Click OK to confirm that you’ll need to restart (this won’t actually restart the computer).
  8. Click OK again.
  9. Click Yes if you want to restart now or No to restart later.

(more…)

Setting the System Time, Date, and Time Zone

Monday, February 18th, 2008

Using a graphical user interface

  1. From the Control Panel, open the Date and Time applet. This can also be accomplished by double-clicking the clock on the system tray or running timedate.cpl from the command line.
  2. You can configure the year, month, day, and time on the Date & Time tab and the time zone on the Time Zone tab.
  3. On Windows Server 2003, you can configure clock synchronization (Network Time Protocol (NTP) settings) from the Internet Time tab if the system is not part of a domain. If it is member of a domain, then the clock is synchronized automatically from an Active Directory domain controller.

More...Using a command-line interface

The following commands set the time to 11:02 p.m. and the date to November 1, 2005:

> time 23:02:00

> date 11/01/2005

The date format may vary depending on your locale.

Run this command to display the current date, time, and time zone:

> date /t & time /t & w32tm -tz

You can use this command to display time zone information from the registry:

> reg query \\<ServerName>\HKLM\SYSTEM\CurrentControlSet\Control\TimeZoneInformation

This command sets the SNTP server list:

> net time /setsntp:<ServerList>

For example:

> net time /setsntp:mytime.rallencorp.com,time.windows.com

This command queries the SNTP server:

> net time /querysntp

This command forces the local system to sync its time from the time source:

> net time /set

Using VBScript

' This code displays the local date, time, and time zone on a target computer' ------ SCRIPT CONFIGURATION ------strComputer = "."   ' e.g. rallen-srv01' ------ END CONFIGURATION ---------WScript.Echo "Current time using Now function: "WScript.Echo vbTab & Now

set dicDaysOfWeek = CreateObject("Scripting.Dictionary")dicDaysOfWeek.Add 0, "Sun"dicDaysOfWeek.Add 1, "Mon"dicDaysOfWeek.Add 2, "Tue"dicDaysOfWeek.Add 3, "Wed"dicDaysOfWeek.Add 4, "Thu"dicDaysOfWeek.Add 5, "Fri"dicDaysOfWeek.Add 6, "Sat"

set objWMI = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")set objDateTime = objWMI.Get("Win32_Localtime=@")WScript.Echo "Current time using WMI: "WScript.Echo vbTab & dicDaysOfWeek.Item(objDateTime.DayOfWeek) & " " & _         objDateTime.Month & "/" & objDateTime.Day & "/" & _         objDateTime.Year & " " & objDateTime.Hour & ":" & objDateTime.MinuteWScript.Echo "Time zone:"set colTZ = objWMI.ExecQuery("select * from Win32_TimeZone")for each objTZ in colTZ    Wscript.Echo vbTab & objTZ.Captionnext

The easiest way to set the time and date via a script is by shelling out to the time and date commands, but this means the script must be run locally. Here is an example:

WScript.Echo "Current time: " & Now

strCommand = "cmd.exe /c time 23:02:00"set objWshShell = WScript.CreateObject("WScript.Shell")intRC = objWshShell.Run(strCommand, 0, TRUE)if intRC <> 0 then   WScript.Echo "Error returned from time command: " & intRCelse   WScript.Echo "time command completed successfully"end if

strCommand = "cmd.exe /c date 11/01/2004"intRC = objWshShell.Run(strCommand, 0, TRUE)if intRC <> 0 then   WScript.Echo "Error returned from date command: " & intRCelse   WScript.Echo "date command completed successfully"end if

WScript.Echo "New time: " & Now

If your server is part of a workgroup or NT 4 domain, you must manually configure the time and date settings on it. You can either set the time and date based on some external time source (such as your watch) or you can configure the server to synch from a time server. The latter is the preferred method because as long as the time server you are pointing your servers to has the correct time, your servers will have the correct time. If your server is part of an Active Directory domain, it will automatically sync its time from a domain controller.

Time and date synchronization is handled by the Windows Time service (W32Time), which was originally developed for Windows 2000 and is a compliant implementation of RFC 1769Simple Network Time Protocol (SNTP). For Windows Server 2003, W32Time was updated to support NTP, a more accurate protocol than SNTP.

W32Time is highly configurable via the registry. See MS KB 223184 for the list of registry settings you can configure for Windows 2000. A similar KB article has not been produced yet showing the differences for Windows Server 2003.

For a good whitepaper on the Windows 2000 Time service, visit the following URL: http://www.microsoft.com/windows2000/docs/wintimeserv.doc.

For more on the Windows Server 2003 Time service, visit the following URL: http://www.microsoft.com/Resources/Documentation/windowsserv/2003/all/techref/en-us/W2K3TR_times_intro.asp.

Viewing System Properties

Monday, February 18th, 2008

Using a graphical user interface

From the Start menu, select All Programs (or Programs on Windows 2000) Accessories System Tools System Information.

You can also get some system information by going to Start Run. Type WinVer and click OK.

If you want to view the installed hardware on a machine, go to Start Run. Type devmgmt.msc and click OK.

(more…)

Installing an Application or Service Pack via Group Policy

Friday, February 15th, 2008


Using a graphical user interface

  1. Open the Group Policy Management snap-in.
  2. In the left pane, navigate to the GPO you want to modify. Left-click on it and select Edit.
  3. If you want to publish an application to computers the GPO applies to, expand Software Settings under Computer Configuration. If you want it to apply to users, expand Software Settings under User Configuration.
  4. Right-click Software installation and select New > Package.
  5. Enter the UNC path of the location of the MSI installation file (even if it resides on a local drive on the domain controller.
  6. Select the MSI file and click Open.
  7. Select Assigned if you want this application to be installed automatically on each client the GPO applies to. Select Published if you want this application to be downloaded and made available to be installed via an Add/Remove Programs applet if the client chooses to install it (this option is only available for the User Configuration section of a GPO).
  8. Click OK.

(more…)