Sunday, December 30, 2007

Using Windows CE to Manage Your Windows 2000 Network


Reprinted by permission from Imagine that you’re in the car driving down a long and desolate interstate, out in the middle of nowhere. Just as you think you’re about to scream from boredom, the phone rings. Someone at your office decided to interrupt your travel to tell you about some terrifying message that’s being displayed on the server. Now, you have two choices, you can either run up your cell phone bill and try to explain to the clueless person on the phone how to fix the problem, or you can pull over, get out the palm top, fix the problem and be on your merry way. Although the idea of having total control of your network from a device that’s small enough to fit into your pocket, all from the comfort of your own car may sound like a fantasy, it really works. In this article, we’ll explain how to use your Windows CE machine to remotely control your Windows 2000 servers.
The requirements
There are some pretty stiff hardware and software requirements for controlling Windows 2000 through Windows CE. First, not just any Windows CE device will work. The PDA style Windows CE machines with no keyboard were never designed for this type of work, and are therefore unsupported. You must have a palm top computer or one of the new pocket PCs. For the purposes of writing this article, we used a Hewlett Packard Jornada 680.
Your Windows CE device must also have some method of connecting to Windows 2000 via TCP/IP. We used a network card in our palm top, but if you’ve got Windows 2000 configured to function as a remote access server (a RAS server), you can dial in and control Windows 2000. The actual connection method is irrelevant as long as you authenticate into the domain that your server is a member of, and connect using TCP/IP.
As we mentioned before, you’ll also need some special software. The server must be configured to run the Terminal services. For the purposes of writing the article, we used Windows 2000 Advanced Server release candidate 2. We also attempted to connect Windows to a computer running Windows 2000 Server beta 3, but had a lot of trouble. That fact is trivial though since there’s a good chance that the final release will be available by the time that you read this.
The Windows CE machine also requires special software. Windows CE must be running the Terminal Server client software to be able to remote control the Windows 2000 server. We’ll tell you how to get this software later on.
Things to consider on the server
Before you set up the server for remote access, there are a few things that you need to consider. The terminal services can take a tremendous toll on the server. The terminal services use memory, the processor, hard disk, and the network card very heavily. The purpose of this article is to explain how to remotely control the server in emergency situations. Therefore, extremely high end hardware isn’t necessarily a requirement. We ran the terminal services on a Windows 2000 Advanced Server with 128 MB of RAM with no problems. However, if anyone else plans on using the terminal server, remember that the amount of power required is directly proportional to the number of remote users, the number of programs that each user runs, and the types of programs that these users run. A generic word processor for example doesn’t require anywhere near the horsepower of a large database or a video game. To run a terminal server for more than emergency administrative purposes, Microsoft recommends 128 MB of RAM with an extra 10 MB to 21 MB of RAM for each user depending on what types of programs that they run. Microsoft also recommends multiple processors, RAID arrays, and fast network connections for multiple terminal server users. There are also many more security issues involved in allowing multiple user access. We’ll publish an article dedicated to allowing multiple users in the future.
Installing the terminal server service
To install the terminal services on the Windows 2000 server, open the Control Panel and double click on the Add / Remove Programs icon. When you see the Add / Remove Programs window, click the Windows Setup button. At this point, the computer may appear to ignore your request. However, if this happens, the Windows Components Wizard has merely opened in the background. Close the Add / Remove Programs window to access the Windows Components Wizard.
When you see the Wizard, select the check box next to Terminal Services and next to Terminal Services Licensing. Click Next and Windows will begin installing the required components. The first question that you are asked is whether you want to install the terminal services in Remote Administration Mode or in Application Server Mode. Select Remote Administration Mode and click the Next button. The next portion of the wizard will ask you about the role and location of the license server. Unless you have a compelling reason to change these options, use the defaults and click Next to continue. At this point, Windows 2000 will ask for the Windows 2000 CD-ROM and begin copying all of the necessary files. When the wizard completes, click Finish. You’ll now be prompted to reboot your server.
Setting up Windows CE
As we mentioned earlier, accessing the Windows 2000 server by remote control requires that you attach to the server through TCP/IP and that you authenticate the Windows CE machine into the Windows 2000 domain. Make sure that you’ve established this ability before continuing. If you have questions about how to do this, check out last month’s article, “Connecting to The World With Windows CE”.
Once you have the ability to connect to the server, use a desktop PC and download the Terminal Server Client for Windows CE. You can download it from
www.microsoft.com/windowsce. Once you’ve downloaded the client, attach the desktop to your palmtop via serial cable or infrared port and run the program that you just downloaded on the desktop machine. The program will install the necessary files on the Windows CE machine.
Once you’ve installed the necessary files, select the Client Connection Wizard command from your Windows CE machine’s Start Programs Terminal Server Client menu. The first screen of the wizard asks for a description of the session and the name of the server that you want to control. Enter anything that you want for the description, but we’ve had better luck entering the server’s IP address than its name into the Server Name field. Click Next to continue.
The next screen that you’ll see allows you to log on automatically. This one is up to you. If you want to log on automatically, select the Log On Automatically check box and then fill in the Username, Password and Domain fields. The only down side to logging in automatically is that if you were ever to lose your palm top, who ever finds it could access your server. When you’ve filled in the necessary information, click Next to continue.
The final screen of the wizard asks whether you want to display the server’s desktop, or automatically launch an application. Since the purpose of this configuration is remote administration, select the Display Desktop radio button and click finish. Windows CE will now place an icon on your desktop that you can use to remotely control your server.
Connecting to the server
At this point, you’re ready to connect Windows CE to your Windows 2000 server. To do so, begin be establishing the communications link, whether by dial up networking or via a network card. Once you’ve logged into your network, double tap on the icon that you created earlier. Doing so will connect to Windows 2000 through your TCP/IP link. The login process should be automatic since you’re already authenticated into the domain.
When you connect, the first thing that you may notice is that the Windows 2000 desktop looks different on your Windows CE device. That’s because of the difference in resolution from Windows 2000 to Windows CE. Because Windows CE can’t display the entire screen, some of the icons are temporarily rearranged to make them fit onto the visible desktop.
The next thing that you may notice is that the icons aren’t as responsive as you would expect. The first time that we configured Windows CE to remotely control Windows 2000, we thought that there was a security option that we neglected to set, because half of the icons wouldn’t work. Instead, the problem was that the terminal server seems to require much more accurate tapping than a standard Windows CE session does. It’s been our experience that when double tapping, if the second tap isn’t in exactly the same spot as the first tap, then it doesn’t work. We found this to be extremely difficult. It’s much easier to simply select the icon that you want to use and then press Enter.
We also noticed that some of the Start menu’s sub menus behaved strangely. For example, when we went to Start Programs Accessories, the menu would freak out and take us into My Documents. The solution to this was simple. All we had to do was to make sure that the point of the stylus never came off of the screen when accessing the menus. For example, we would tap on start and then press the stylus on programs. We would then keep the stylus on the screen while selecting Accessories and what ever choice came next.
The last problem that we encountered was that many times the utility that we wanted to use didn’t completely fit on the Windows CE screen. This wouldn’t be a problem, except that there was no scroll bar to access the bottom portion of the screen. Although it’s not perfect, the display works much better if you disable Active Desktop for terminal server clients. To do so, open the Control Panel on the Windows 2000 computer and double click on the Administrative Tools icon. When you do, you’ll see the Administrative Tools window. Now, double click on the Terminal Services Configuration icon to launch the Terminal Services Configuration utility. Now, click on the Server Settings folder in the column on the left to view the configurable settings on the right. One of the options is for Active Desktop. Now, simply right click on the Active Desktop icon and choose the Disable command from the resulting context menu. The changes won’t take effect until the next time that you connect Windows CE with a new session.
Ending your session
When you’re done using the terminal server session on your Windows CE machine, select the Shut Down command from the Start menu. There are two commands on this menu that need a little explaining. The Log Off command disconnects you from the Terminal Server and restores the normal Windows CE desktop. This is the command that you should normally use to disconnect.
The Disconnect command also returns you to the Windows CE desktop, but leaves your session active on the Terminal Server. This means that even though you’re not using the Terminal Server, server resources are still being wasted on the session. Your programs and files are still opened, exactly in the state that they were in when you disconnected. The next time that you attach to the Terminal Server, you’ll be exactly where you were when you disconnected the last time.
Conclusion
In this article, we’ve discussed a way that you can use your palm top computer to manage your network on the go. As we did, we explained all of the necessary hardware and software requirements for doing so. We also discussed all of the unique aspects that you’ll have to deal with because of Windows CE’s limitations.

No comments: