Managing Servers Remotely


Objective:

Manage servers remotely

There are always situations in which the system administrator must perform a task on a Windows Server 2003 server but is currently not physically located near the server console. In some cases, the system administrator is not located in the same part of the building as the server room or may even be located in a different country!

Microsoft has included several tools for remotely managing servers with Windows Server 2003. These tools allow the system administrator to perform system management tasks as though he or she were physically sitting in front of the console of each server in the organization. Knowing which tool to use in specific situations allows you to be more effective as a system administrator.

The Microsoft Management Console: Where Management Begins

Objective:

Manage a server by using available support tools

In Chapter 1, "Windows Server 2003 Environment," we introduced the Microsoft Management Console (MMC) and showed you how to add additional snap-ins to create a custom console.

However, the real beauty of the MMC snap-in administrative tools is that they don't limit you to managing only the local machine you are working on. As you saw when working with the Shared Folders snap-in in Chapter 4, "Managing and Maintaining Access to Resources," by selecting Connect to Another Computer, you can connect the tool to a remote computer and perform the administrative tasks as though you were sitting at the system console. This allows you not only to manage all your servers from one server but to manage either servers or workstations from any Windows 2000 or later computer by starting the appropriate MMC and snap-ins.

In the following challenge exercise, we review some of the things we have looked at in the previous chapters to refresh your memory and prepare you for the rest of the chapter.

Challenge

In this scenario, you must connect to a remote server and check to see what local user accounts are configured. You should do this using as few steps as possible.

How would you accomplish this task?

You should try working through this problem on your own first. If you get stuck, or if you'd like to see one possible solution, follow these steps:

1.

From the Start menu, select All Programs, Administrative Tools, Computer Management.

2.

In the left pane of the Computer Management MMC, right-click the Computer Management (Local) entry and then select Connect to Another Computer from the pop-up menu. This opens the Select Computer dialog box.

3.

From the Select Computer dialog box, you can either browse for or enter the name of the remote computer to manage. Enter the name of the computer and then click the OK button.

4.

The Computer Management MMC opens with the focus assigned to the remote computer.

5.

Select System Tools, and then Local users and Groups. Next, click the Users folder and observe the configured user accounts in the right pane of the Computer Management MMC.


If the user has the proper permissions, she can use any computer in the Windows 2000/2003/XP family to manage other family members via the Computer Management MMC. For example, a Windows 2000 Professional computer can be used to manage a Windows Server 2003 or Windows XP Professional computer. Only the features supported on the remote computer are available in the Computer Management MMC. For example, if you are using a Windows Server 2003 computer to manage a Windows XP Professional computer, the selection for RAID-5 within the Disk Management snap-in is not available because it is not supported on the remote computer, which in this case is Windows XP Professional.

You can access the rest of the tools that appear in this book either through their own administrative tools or by creating a custom MMC and adding their respective snap-ins. A good example of an MMC with a variety of snap-ins included is the Computer Management MMC. The purpose of the Computer Management MMC is to group together a selection of Windows utilities in a single MMC that can be connected to either the local computer or a remote computer. We have used the Computer Management MMC to access various snap-ins in the previous chapters, but we haven't taken the time to examine it yet.

The Computer Management MMC comes prepopulated with the most commonly used administrative tools:

  • Event Viewer Used to view the events that are recorded in the Application, System, and Security logs. These logs are used to identify possible hardware, software, or security issues.

  • Shared Folders Use to view and manage shared folders.

  • Local Users and Groups Used to create and manage local computers and groups.

  • Performance Logs and Alerts Used to monitor and collect performance data.

  • Device Manager Used to view, manage, and troubleshoot the hardware devices installed on your servers.

  • Removable Storage Used to manage your removable storage media and manage the libraries that they are members of.

  • Disk Defragmenter Used to analyze and defragment your hard disks.

  • Disk Management Used to manage your hard disk volumes and partitions.

  • Services Used to stop, start, pause, resume, or disable a service.

  • WMI Control Used to manage the Windows Management Service.

  • Indexing Service Used to configure and manage the Indexing service that speeds up searches for files on your server.

As you can see, using the Computer Management MMC, you can perform tasks such as adding and managing disks, adding shared folders, and stopping and starting services on local or remote computers.

Note: Administrative Tools

By running adminpak.msi, you can add additional MMC-based tools to manage your domain. For a Step by Step on how to accomplish this, see Chapter 1.


In addition to the capabilities mentioned previously, the MMC can be used to manage tasks simultaneously on multiple remote computers. That is the scenario used in the Challenge Exercise.

Challenge

In this scenario, you must log the performance of four Windows Server 2003 servers from a remote computer. You should do this using as few steps as possible.

How would you set this up?

You should try working through this problem on your own first. If you get stuck, or if you'd like to see one possible solution, follow these steps:

1.

From the Start menu, select Start, Run. Type MMC into the field and click OK.

2.

The MMC appears. Select File, Add/Remove Snap-In from the Console menu.

3.

The Add/Remove Snap-In dialog box appears. Click the Add button.

4.

The Add Standalone Snap-In dialog box appears. Select the Performance Logs and Alerts snap-in and then click the Add button.

5.

Repeat the previous step three more times to add additional instances of the Performance Logs and Alerts snap-in.

6.

At the Add Standalone Snap-In dialog box, click the Close button. This returns you to the Add/Remove Snap-In dialog box. If the selections are correct, click the OK button.

7.

From the custom MMC, you can right-click each instance of Performance Logs and Alerts and add objects and counters from different servers on the General tab of the Properties dialog box.


There are many advantages to using the MMC for server management. For example, as you have seen in this Challenge Exercise, you can manage multiple instances of the same or different tools connected to multiple servers, all within a single MMC. Moving from server to server or tool to tool is as simple as clicking the mouse.

Administrative Groups

However, not every user can manage a server. For security (and common sense) reasons, it is best to limit the number and scope of users who have management access to the servers on your network. As was covered briefly in Chapter 3, "Managing Groups," the following domain local groups can be used to delegate various management tasks on your network:

  • Administrators Can perform all tasks on any client or server on the network.

  • Account Operators Can create, modify, and delete user accounts and groups, except for members of the Administrators group or any of the Operators groups.

  • Backup Operators Can back up and restore files and folders on any client or server on the network, even if the user has not been granted access to them.

  • Print Operators Can set up and configure local or network printers.

  • Server Operators Can back up and restore files and folders, share folders, manage services, format the hard drive, and shut down and reboot the server. Members of the Server Operators group are the only group besides the Administrators that can log on locally on a domain controller.

Users should always be assigned to the group that gives them the minimum of permissions and rights necessary to perform their duties. This will improve the security of the domain and prevent users from performing unauthorized functions.

Remote Desktop for Administration

Objective:

Manage a server by using Terminal Services remote administration mode

The basic functionality of the Remote Desktop for Administration feature has been available for some time from other vendors, such as Citrix, and even from Microsoft, as Windows Terminal Services.

Terminal Services is available in two modes: Remote Desktop for Administration (formerly called Remote Administration mode) and Application Server mode. Application Server mode configures the Windows Server 2003 machine to operate similar to the previous version of Windows NT Terminal Server 4.0. Remote Desktop for Administration mode is used to provide remote server management. Unlike in Windows 2000, where the Remote Administration mode was an option, the Remote Desktop for Administration mode is automatically installed in Windows Server 2003. However, incoming connections are disabled by default.

Note: More Info on Terminal Services Modes

For a detailed discussion of Windows Server 2003 Terminal Services in Application Server mode, see Chapter 11, "Managing and Maintaining Terminal Services."


Terminal Services in Remote Desktop for Administration Mode

As mentioned previously, the Terminal Services (TS) Remote Administration mode was first available in Windows 2000. The previous versions of Windows Server and Windows Terminal Services did not have this feature.

With Windows 2003 Terminal Services in Remote Desktop for Administration mode, you are allowed two concurrent sessions, plus a console session to the Windows server. These sessions can be used to remotely access any programs or data on the server. The console session takes over the physical console of the server. In the past, a lot of tools and applications could not be run via a Terminal Services session because they were written to interact directly with "session 0," the physical server console. Also, most system messages are automatically routed to the console, so if you are trying to manage the server remotely and receive a pop-up error message, you won't be able to see it.

Using the Terminal Services client is just like working on the server console. The Remote Desktop for Administration mode allows you to have two concurrent TS sessions without any additional Client Access Licenses required. The beauty of the Remote Desktop for Administration mode is that it allows you to manage your server from just about anywhere and from just about any computer. Because the TS client is supported on a variety of Windows clients, including Windows CE, you can load the client on any Windows box that you have available and manage your server. Imagine managing your server from your Pocket PC!

Like the tools discussed in the previous section, Remote Desktop enables you to open a session on a remote Windows Server 2003 machine and run applications as though you were physically sitting at the console of the remote machine. In addition, because the Remote Desktop Protocol (RDP) connection between the server and the client requires a minimum of bandwidth, you are not limited to having a high-speed LAN connection. The Terminal Services client can access the servers via a dial-up connection, the Internet, or even a wireless connection. With this feature, you can connect to your Windows Server 2003 servers from home or a hotel room and have full access to all your applications, files, and other network resources.

Exam Alert: Required Port

If the RDP client is connecting to a server through a firewall, port 3389 must be open. This is important to know in the field, and for the exam.


To use Remote Desktop, you must enable it on your server and grant access to the appropriate users and groups by following the procedure in Step by Step 5.1.

Step by Step

5.1 Enabling the Remote Desktop for Administration feature

1.

Log on to the Windows Server 2003 server as a member of the local Administrators group.

2.

Open Control Panel and select the System applet.

3.

In the System Properties dialog box, select the Remote tab.

4.

From the Remote tab, shown in Figure 5.1, select the Enable Remote Desktop on This Computer check box.

Figure 5.1. Remote Desktop must be manually enabled on Windows Server 2003.


5.

When the Remote Sessions information prompt appears, read the information, and then click the OK button to continue.

6.

Click the Select Remote Users button. By default, members of the local Administrators group have been granted access.

7.

The Remote Desktop Users dialog box appears.

8.

Click the Add button. The Select Users dialog box appears.

9.

In the Select Users dialog box, you are given the opportunity to select the users and/or groups that are granted access to your machine via Remote Desktop for Administration. The terminology can be somewhat confusing. Just remember that users and groups are objects, and the location is either the individual server or a domain. Table 5.1 defines the terms used in this interface.

Table 5.1. Object Type Definitions

Prompt

Meaning

Object Types

Users or groups.

Locations

This can show users or groups from an individual machine. If you're connected to a domain, you can select the domain directory.

Object Names

User or group names.


10.

After making your other selections, if you click the Advanced button, a search dialog box opens, and you can search for the users or groups you want to add.

11.

When you're finished, click OK three times to save your settings.

These steps configure Windows Server 2003 to accept incoming connections. The Windows 2003 Remote Desktop Connection (RDC) client can be installed on any version of Windows from Windows 95 and later. To install the client, insert the Windows Server 2003 CD-ROM into the client machine's CD-ROM drive. When the Welcome page appears, click Perform Additional Tasks and then click Set Up Remote Desktop Connection.

Note: Using Older Clients

Windows Server 2003 also supports connections from the older Windows Terminal Services clients, so you can use the 16-bit client from a Windows 3.1 machine, if you still have one. However, some of the newer features, such as device redirection, are not available. Citrix clients are not supported because they use the Independent Computing Architecture (ICA) protocol instead of the RDP used with the RDC client. The Windows XP version of the client, which is supported on Windows 95 and later, is available at http://www.microsoft.com/downloads/details.aspx?FamilyID=80111f21-d48d-426e-96c2-08aa2bd23a49&DisplayLang=en.


To connect to your Windows Server 2003 server remotely, start the RDP client on the remote computer. This computer must have a connection of some kind to the other computerLAN, WAN, VPN, or dial-up. Enter the IP address or the name of the remote computer and then click the Connect button. Enter the username and password, and you're in!

Note: Connecting to the Console

To specifically connect to the console session of a Windows Server 2003 server, type mstsc /console on the command line.


Remote Desktops Snap-In

The Remote Desktops snap-in is useful for those situations when you need to remotely manage or monitor several Windows Server 2003 servers. This snap-in allows you to be connected concurrently to the RDC sessions of multiple servers. Each session can be given focus by selecting it via a navigable tree interface.

Step by Step 5.2 walks you through connecting to multiple remote computers using the Remote Desktops snap-in.

Step by Step

5.2 Connecting to multiple remote computers to perform management tasks

1.

From the Start menu, select All Programs, Administrative Tools, Remote Desktop.

2.

If this is the first time that Remote Desktop has been selected, the MSI file is loaded. In the left pane of the Remote Desktops MMC, right-click the Remote Desktops entry and then select Add New Connection from the pop-up menu.

3.

This opens the Add New Connection dialog box, which allows you to either browse for or enter the name or IP address of a remote computer to manage. Notice that you are given the option to connect to the console session.

4.

Enter the name or the IP address of the remote server and then click the OK button.

5.

As shown in Figure 5.2, the Remote Desktops MMC lists all configured connections.

Figure 5.2. The Remote Desktops MMC allows you to connect to multiple servers simultaneously.


6.

To connect to a remote server, right-click the appropriate entry in the left pane of the Remote Desktops MMC and select Connect from the pop-up menu.

7.

The remote session now appears in the right pane of the MMC.

You can switch between multiple remote sessions by clicking the entry in the left pane of the MMC. By creating multiple custom MMCs, you can have several Remote Desktops MMCs that are preconfigured to connect to different groups of servers.

Remote Assistance

Objective:

Manage a server by using Remote Assistance

Diagnosing a computer problem can be difficult if you are not sitting in front of the computer. The Windows Server 2003 Remote Assistance feature enables you to grant a friend or a help desk operator permission to connect to your computer and assist you with a problem. Your computer must have a connection of some kind to the other computer, such as a LAN, WAN, VPN, or dial-up connection.

The Remote Assistance function is similar to the Remote Desktop function in that it allows a remote user to connect to your Windows Server 2003 machine. Remote Desktop, however, is designed to allow you to run applications remotely on your computer, whereas the Remote Assistance function is designed to allow a remote user to log in to your running session and assist you in determining a problem with a currently running session. Remote Assistance is more of a remote-control tool, similar to PCAnywhere.

Remote Assistance allows you to exchange messages via a chat session, or you can talk to another user if you both have the required sound cards and microphones. You can even grant a remote user the ability to take over your desktop to make changes and run programs.

The Remote Assistance feature was first available on Windows XP Professional and XP Home Edition. Unlike in the versions of Windows XP, it is disabled by default in Windows Server 2003.

To use Remote Assistance, you must enable it on your server by following the procedure in Step by Step 5.3.

Step by Step

5.3 Enabling the Remote Assistance feature

1.

Log on to the Windows Server 2003 server as a member of the local Administrators group.

2.

Open Control Panel and select the System applet.

3.

In the System Properties dialog box, select the Remote tab.

4.

From the Remote tab, select the Turn On Remote Assistance and Allow Invitations to Be Sent from This Computer check box.

5.

Click the OK button to save this setting.

After enabling Remote Assistance, you must issue an invitation before another user can connect to your machine. This invitation can be sent to the other user via one of the following methods:

  • Windows Messenger (the preferred method)

  • Email

  • Disk

The invitation is an encrypted ticket used to grant the remote user access to the Windows Server 2003 server. The remote user must have the ticket and a password to be permitted access. You can send the password separately by email (not recommended), instant messaging, or telephone.

By default, the invitation is good for 30 days, but you should probably change it to 24 hours or less.

Challenge

You are a system administrator who is responsible for managing all Windows Server 2003 servers for your company. The security officer for your company has decided that the default invitation duration for the Remote Assistance feature is too long and makes your servers vulnerable to attack. He has assigned you to change the default invitation time to 24 hours.

How will you accomplish this?

Try to complete this exercise on your own, listing your conclusions on a sheet of paper. After you have completed the exercise, compare your results to those given here.

1.

Log on to the Windows Server 2003 server as a member of the local Administrators group.

2.

Open Control Panel and select the System applet.

3.

In the System Properties dialog box, select the Remote tab.

4.

From the Remote tab, click the Advanced button.

5.

From the Remote Assistance Settings dialog box, set the invitation time to 24 hours. The default setting is 30 days, as shown in Figure 5.3.

Figure 5.3. The Remote Assistance Settings dialog box allows you to control whether the server can be remote controlled and how long an invitation is valid.


6.

Click the OK button twice to save your settings.


An example of when the Remote Assistance feature comes in handy is if you are having a problem on a Windows Server 2003 server and you require assistance from a support person. You can allow the support person to view your activities on the server console. The first step in this process is to create an invitation for the support person.

To create an invitation, perform the procedure outlined in Step by Step 5.4.

Step by Step

5.4 Creating an invitation

1.

Click Start, All Programs, Remote Assistance.

2.

Click the Invite Someone to Help You button, shown in Figure 5.4.

Figure 5.4. The Remote Assistance page in the Help and Support Center allows you to generate invitations or check on the status of existing invitations.


3.

In the next window, you can elect to send the invitation via Windows Messenger or email, or you can save it as a file. Click the Save Invitation as a File button.

4.

The Remote AssistanceSave Invitation window appears. Enter your name. Note that the default invitation duration for a file is 1 hour.

5.

The next window allows you to specify a password for the support person to use to connect to your server. Enter a password and then click the Save Invitation button to continue.

6.

From the Save As dialog box, save the invitation file to an appropriate location. You are returned to the opening Remote Assistance page.

The invitation has been saved to a file. This file can be emailed, saved to a disk and carried to a remote user, or copied to a network share. The user from whom you have requested assistance must be running a version of Windows XP or Windows Server 2003.

To respond to an invitation, perform the procedure outlined in Step by Step 5.5.

Step by Step

5.5 Responding to an invitation

1.

On the remote machine, the assisting user must locate the invitation and double-click it.

2.

The Remote Assistance dialog box opens, and the assisting user will see this message: Do you want to connect to user's computer now? (see Figure 5.5). The assisting user will need to enter the password and then click the Yes button.

Figure 5.5. Enter the Remote Assistance password.


3.

On the computer requesting assistance (your computer), a dialog box appears asking whether you want to accept the connection. Click the Yes button.

4.

The assisting user is now able to see your desktop and communicate with you via chat.

If the assisting user needs to take over your machine, he can click the Take Control icon on his toolbar. You are prompted as to whether you want this to happen. You can both share control of the desktop until you press the Esc key. When you're finished, click the Disconnect button on the Remote Assistance dialog box (see Figure 5.6).

Figure 5.6. Remote Assistance, showing the view from the assisted desktop.


Of course, allowing someone to take over your machine requires a great amount of trust. Don't open this feature to anyone you don't know! Make sure your invitations always require a password, which should not be sent with the invitations, and keep your invitation durations as short as possible.

Problems with Remote Assistance

If you are accessing a Remote Assistance computer that is behind a firewall, port 3389 must be open. Table 5.2 lists some common connection scenarios.

Table 5.2. Remote Assistance Connection Scenarios

Assistant

Client

Result

Behind NAT device

Behind NAT device

Doesn't work.

Behind NAT device

Normal

Works.

Normal

Behind NAT device

Works with Windows Messenger, but not with file or email invitations.

Behind proxy server

Behind proxy server

Doesn't work.

Behind proxy server

Normal

Must install proxy software on Assistant.

Normal

Behind proxy server

Doesn't work.


For more information on the Remote Assistance feature, consult Microsoft Knowledge Base Article Q301529, "Supported Connection Scenarios for Remote Assistance," or Article Q306298, "Description of the Windows Messenger Reverse Connection Process Used by Remote Assistance."




MCSA. MCSE 70-290 Exam Prep. Managing and Maintaining a MicrosoftR Windows ServerT 2003 Environment
MCSA/MCSE 70-290 Exam Prep: Managing and Maintaining a Microsoft Windows Server 2003 Environment (2nd Edition)
ISBN: 0789736489
EAN: 2147483647
Year: 2006
Pages: 219
Authors: Lee Scales

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net