How to setup a brand new Windows computer

By: John McFarlane <john.mcfarlane@rockfloat.com>
Last updated: 06/16/2006 @18:00

Abstract:
This document will help you setup your new computer properly from the very beginning, with the hopes that this will not elimintate, but help mitigate security related problems down the line (viruses/popups). Hardening a computer against security related threats is no easy task and this document hardly scratches the surface... but hopefully it will give a place to start.



1. Make sure your computer isn't on the internet

The very first thing you want to do is keep it OFF of the internet until it's ready. That means if you already plugged it into your dsl/cable box, unplug it. You want your computer to be a bit more "hardened" before you subject it to the nasty world wide web. REFERENCE

For all you Dilbert fans out there, the assumption here is that you're not reading this on your new computer. Use something else!

I'm finished with this step

2. Introduction

A bit of background is probably the best way to get started.

Windows has alot of default settings that make things "easy", but they make your computer more vulnerable. As you read thru this document you'll learn how to change a few of these default settings to help make your new computer more secure.

You can't 100% protect any computer that's connected to the internet I don't care how hard you try... the goal is simply to minimize it. With safe practices and a decently hardened computer I think it's realistic to expect approximately 3 years of life before you have to have it rebuilt (not replaced, just "redone" by someone).

I'm finished with this step

3. What is a "unprivileged user"?

Answer: A user that only belongs to the users group.

Currently your computer has one account: Administrator which happens to be a member of the Administrator group (Windows security is managed by users and groups).

This means that this user or member(s) of this group have full rights on your computer.

Depending on how the manufacturer setup your computer it might give you an opportunity to create additional users. It's important to understand that these users will also be a member of the Administrator group.

This is a security risk, because if "something" tries to do something bad to your computer, they do so under the privileges of the currently logged in user . Another words, if I'm a virus... I'm going to hope you are using an administrative account.

The solution is to make sure you have a user that is not a member of the administrators group and always log into the computer using this account. This will drastically make your computer safer against attack, though you will have to deal with the hastle of having to temporarily log in as Adminstrator to do things like:

  1. Install software
  2. Change the clock time
  3. Write to files outside of: My Documents
  4. Change system settings
  5. Configure hardware or networking
Tip To summarize: logging in as an unpriveledged user will make your computer much more resistant to spyware and viruses.

I'm finished with this step

4. Create an unprivileged user

Follow these steps to create an unpriviledged user:
  1. Open the Control Panel from the start menu
  2. Select Administrative Tools from the Control Panel
  3. Select Computer Management from Administrative Tools
  4. Expand Local Users and Groups
  5. If you have created any users already you will see them here
    Above is what most fresh installations of Windows XP will look like.
  6. Right click on Users and select New User...
  7. Fill out the form, mine looks like this:
    When finished click Create.
  8. Right click on the user you just created and select Properties
    Then select the Member Of tab
  9. Take note that the user is only a member of the Users group
I'm finished with this step

5. Log in using the new unpriviledged user

The new user will show up in the menu when you log out or restart your computer, mine looks like this:
Select your shiney new user and enter the password
Tip The only time you should use the Administrator account is if you need to install software, change the clock... or other administrative type tasks.
I'm finished with this step

6. What you need to know about software

Begin rambling, just to brainstorm ideas...

Software on your computer is installed in different ways. Some is installed by the manufacturer (Dell, HP, Gateway), some is installed by the operating system or it's subsystems. Windows update is a good example of this, as it's sort of part of the operating system, and it installs stuff for you (patches and things). The rest is usually installed by you. Here's where it gets important. Software is usually installed by double clicking on a setup file such as "setup.exe". Usually this is followed by a series of prompts which some people referr to as a "wizard". Either way the result is that your system has new files and settings which represent the software you just installed.

What's confusing is when software gets installed... but how it got there is a mystery. For example, let's say you have "Gator" installed on your computer and it's driving you nuts. You likely don't remember installing it, nor anyone else. It could have been installed several different ways but I do happen to know that installing "Comet Cursor" I think it was, would also install "Gator" without really telling you. This is extremely significant because it illustrates that when you install something, it might do things that you don't expect. It's very important to think before you install something, because clicking on that "setup.exe" file ultimately lets the person who wrote the software have complete control over your system for the duration that it's being installed.

Below you'll find a list of software packages that are considered at least by me to be professional and trustworthy.

I'm finished with this step

7. Recommended software

Here is a list of software packages that you should migrate to:
Current Recommended Reason
Internet Explorer Mozilla Firefox Internet Explorer is the single most dangerous piece of software you can use. It has a terrible history for security problems, some of which to this day have yet to be addressed by Microsoft. Additionally it's extremely outdated and is lacking features that most other browsers have. Mozilla Firefox is an excellent software package used by millions of people. It has an excellent feature set, is very secure. REFERENCE, REFERENCE, REFERENCE
Outlook Mozilla Thunderbird Thunderbird is not as integrated with the Windows Operating system and thus is not as vulnerable to windows operating system vulnerabilities. Thunderbird is designed to be solid from a security perspective with things like defaultly not downloading images, spam and phishing detection. It also supports pretty much everything you'd ever need when it comes to email, though it does not [yet] support calendering like Outlook does with Microsoft Exchange Server.
Microsoft Office OpenOffice Microsoft Office is a huge target. OpenOffice is an alternative product that has an impressive set of features and has (so far) a very good security history. Additionally it has a few unique features that are really nice:
  1. Support for one click export to PDF
  2. Full support for MS formats, meaning you can still use your doc/xls/ppt files.
  3. Impress (like powerpoint) documents can be exported to flash which really comes in handy
Mark my word... in time the educational system will make ODF the default file format, which is the standard in OpenOffice. REFERENCE
Instant messenger clients: AOL, Yahoo, MSN Trillian/Gaim You can replace all of your instant messenger software with one , and it works very well. REFERENCE
Windows Media Player Winamp and VLC Windows media player is also a target for malware. Using wimamp and VLC keeps you under the radar a bit.
Microsoft Hotmail Yahoo Mail or Google Gmail Hotmail doesn't exactly have a strong record when it comes to security
N/A 7zip There's nothing really insecure about the default Windows XP zip utility, it just doesn't work very well. 7zip is tiny, free - and is excellent.
Mcafee/Norton ClamWin There's nothing wrong with either Norton or Macfee, though they do tend to be kinda, busy? and often times people don't pay for the software after the trial expires and they wind up without any protection. ClamWin is a port of ClamAV and is free for use.
RealPlayer Real Alternative There's nothing wrong with RealPlayer really from a security perspective, but it's so annoying how it tries to take over.
It's also important to note that all of the software packages recommended above are open source, meaning that they are free for use, and are actively supported by the community.

Since NOT using Internet Explorer is probably the best thing you can do to keep your computer safe, let's go thru how to install Firefox:

  1. Remember you need to log in as Administrator to do this.
  2. Use Internet Explorer (it's all you have right now) to download the installation file from http://www.mozilla.com/firefox/ and click on the "Download Firefox" link.
  3. When prompted, remember to Always "Save" the file. Never choose "Run".
    The file will defautly be placed on your desktop, so you know where to find it after it's finished downloading.
  4. Double click on the Firefox Setup executable file placed on your desktop to begin the installation.
    Follow the prompts, taking the defaults is just fine.
  5. When the installation is finished, it will place an icon on your desktop that you can use to start the application. If you like to use the Quicklaunch icons, it will be there also
  6. Ok, remembering our good practice here... if there's no other software to install:

    Remember to log out, and log back in as your unpriviledged user!

I'm finished with this step

8. Patches and Windows Update

Keeping Windows XP patched is extremely important for the security health of your PC. Luckily Microsoft does an excellent job of making this easy and reliable.

All you need to do is enable Windows Update to manage that for you. But because this is a brand new computer, you need to manually patch it.

It's important to understand that this should be the first time your computer has ever been plugged into the internet and the goal is to get it patched as quickly as possible.

  1. You need to be logged into your computer as the Administrator to install patches manually.
  2. Select Windows Update from the startup menu
  3. Internet Explorer will open, look for something like this
    You want to click on the Express button to get high priority updates.
  4. You will be presented with a list of patches that need to be applied
    Click on Install Updates to install them.
  5. You will see the patches download and install...
  6. When it's finished it will most likely prompt you to restart your computer. Sometimes this isn't neccessary.
  7. When your computer has finished rebooting, repeat this process over and over until you see this when looking for new updates:
Now you need to configure Windows Update to run automaticaly, cuz if you're lazy like me you'll forget to keep up on it.
  1. Click on Windows Update from the start menu like you did before, and look toward the right this time
  2. If it says Turn on Automatic Updates then click on it and select a time that your computer is likely to be turned on.
  3. You're all finished, click OK and log in as your unpriviledged user :)
I'm finished with this step

9. Harden Microsoft Internet Explorer

Even though you shouldn't use IE, there are times when you will have to probably it. For these situations, it should be hardened as much as possible.
  1. Install the Google toolbar as it will block popups. This will limit the number of Phishing dialog boxes that will popup, which if clicked on could install malware of some kind.
I'm finished with this step

10. Harden Firefox

Disable support for Java. You can enable for each time you need it, as you need it.
I'm finished with this step

11. Clean up startup programs in the registry

Not sure what to include/not include, bug geezle HP boxes seem to come with alot of stuff.
I'm finished with this step

12. Learn how to be a "smart surfer"

Outline how to do the following:
  1. Downloading
  2. Clicking
  3. Email
  4. Phishing
I'm finished with this step

13. Specific software settings

I'm finished with this step

14. Antivirus software

I'm finished with this step

Changelog: Date Description
06/16/2006 @18:00 Initial creation

This document was originally created on 06/16/2007


Conventions and tips for this howto document:
  1. This howto currently only applies to Windows XP
  2. You do hate popups... don't you?

Disclaimer:
This page is not endorsed by gentoo.org or any other cool cats. Any information provided in this document is to be used at your own risk.