Search This Blog

Sunday, January 15, 2012

Creating a Hard Drive Image using Norton Ghost

This is a tutorial or review of how to take an image, or backup, of a computer using Norton Ghost 15.0 I have used the Ghost program in the past and always found that the best recovery scenario was to use a restore floppy. It always worked just fine. This is a review of the Norton Ghost hard drive imaging process.

I downloaded the program from the Symantec site and installed it with no problems. I have a bad habit of not reading the directions and just trying the program. I don’t believe it should take a 5 hour training course to use a program that I am semi familiar with. This is what I found.

After the installation, live update and a reboot, this screen came up.

Easy Setup

I plugged in a Lacie external hard drive and Norton Ghost found it with no problems.

New storage device found

As you can see on the next screen, Norton scanned my system and recommended this strategy. Of course, I took the recommended settings.

recommended settings

The recommended settings on this screen looked like what I wanted to accomplish so I accepted it and clicked next.

Define Backup Wizard

Of course I wanted to choose my C Drive.

Choose Drive C

I had to think about this next screen for a minute. The recommended setting looked like what I wanted but the other choice said that I should always create an independent recovery point. I took the recommended setting and clicked next.

Recovery Point Type question

Norton Ghost chose my external drive as the backup destination.

Backup Destination

Then there were a couple other screens that really didn’t tell me much so I took the defaults to get to the next screen. This screen just tells you what the program is going to do. It looks good to me at this point, so I checked the Run Backup Now checkbox and smacked the Finish button.

Completion of the Define Backup Wizard

All is going well. As you can see, I can still work while the program executes its commands, which is a great feature.

Progress and Performance

When Norton Ghost was finished with the image, I checked to see if the file were indeed where it was supposed to be. It was.

View Image File Created

So far, so good. Norton Ghost 15.0 created an image on a separate drive so that I can store that file in a safe location in case something happens to my computer

MOre details Vist http://www.whatsabyte.com/P1/ghost_image.htm

HOW-TO: IMAGE WINDOWS XP WITH GHOST AND SYSPREP

I tend to install and reinstall operating systems quite frequently on my home system. With my hectic schedule, I don’t have time to sit down to reinstall and configure every last program. Although it is arguably easier to use a backup of my system for day-to-day mishaps, I tend to change out peripherals a lot and restoring a system that does not have certain drivers “cleaned out” tends to wreak havoc on a new configuration. To make this process go a bit faster, two years ago I created a “Ghost Image” of my hard drive after doing a basic install. Now, instead of it taking a few hours of toiling away to reinstall a system, I can do this all in about 15 minutes with only half a dozen quick mouse clicks. The trick is to use Norton Ghost or any other imaging software and Microsoft Sysprep.

Part 1: Install XP and Sysprep

  1. Install Windows XP on a clean hard drive.
  2. Do not install any drivers or other utilities that are hardware specific beyond what Windows itself installs.
    • This is necessary to make sure the image is as portable as possible across different types of systems. However, different storage controllers and different HALs (Hardware Abstraction Layers) make this harder to predict.
    • Most modern computers these days work fine with a standard ACPI HAL, but if this image is to be truly portable across multiple machines then it must be determined which specific HAL will be needed. Refer to Microsoft KB309283 if you are completely lost.
    • It is also important to determine if the target system uses a storage controller that normally requires a driver disc during a regular XP install. If this is the case, then the necessary paths to the drivers must be included in the Sysprep.inf file. These must be added to the [SysprepMassStorage] section in the formPCI\VEN_###&DEV_#### = PATH_TO_DRIVER_ON_IMAGED_DRIVE where VEN_#### should be replaced by the Vendor ID number (i.e. VEN_1234) and the DEV_#### should be replaced by the Device ID number (DEV_1234). This information can usually be found in the specifc driver INF files. Here is an example for adding the VMWare SCSI controller driver to sysprep.inf

      [SysprepMassStorage]
      ….snipped out windows mass storage driver list….

      PCI\VEN_104B&DEV_1040=C:\Drivers\Mass\VMWare\vmscsi.inf

  3. Create a testuser account with administrative privileges. Use this account to install and configure all the software and policies on the system.
  4. Remember to run Windows Update, Office Update and make sure all the rest of the software is up to date. You’ll probably end up rebooting a few times in between but keep going until everything is updated.
  5. Copy all the start menu items from the testuser account to theAdministrator start menu. (Note: This is necessary as some installers do not create start menu items in All Users but within thetestuser profile only. This leaves some items missing on theAdministrator start menu.)
  6. Log out and log back in as the computer Administrator and then copy the testuser profile folder to the default user profile folder. This is done via Control Panel -> System -> Advanced -> User Profile “Settings” then select testuser and click Copy to. Copy all of this toc:\Documents and Settings\Default User. If you don’t understand then refer to Microsoft KB291586.
  7. Delete the testuser account. Make sure that c:\Documents and Settings\testuser has been deleted too.
  8. Download Sysprep for XP SP2.
  9. Extract the files to c:\sysprep.
  10. Create the basic sysprep.inf file by running setupmgr.exe. This a tool Microsoft provides for creating an answer file so the restore doesn’t involving asking the normal setup questions. The basic steps are below:
    • Run setupmgr.exe
    • Click Create New
    • Click Sysprep Setup
    • Then choose whichever product you are using. In our example it would be XP Professional.
    • The next question asks: Do you want to fully automate the install? All this question determines is who is going to accept the EULA, you or the person restoring the image. Also, picking yes means that you must enter your Product Key. I pick no because this is for my own use and I don’t want someone to swipe my Product Key accidentally, but a large company or OEM may choose differently.
    • The next few sets of options are for you to enter in any information like your Name, Organization, Time Zone, Product Key (I leave this blank), Network Settings, etc.
    • I leave the Computer Name option set to Automatically generate computer name.
    • Once completed, a dialog box will ask where you want to save the file. c:\sysprep\sysprep.inf is the path we’re using in this example.
    • On the completion screen, click Cancel to close setupmgr.exe.

    The process of creating a basic sysprep.inf file is now completed.

  11. Before proceeding to the next step, create a custom hardware drivers directory for any drivers needed for the target system. Usually I use c:\drivers.
  12. Open c:\sysprep\sysprep.inf in Notepad and add the following lines to the relavent sections (if the heading doesn’t exist, create it):

    [Unattended]
    DriverSigningPolicy=Ignore
    UpdateInstalledDrivers=Yes
    OemPNPDriversPath=drivers\hardware_cat\driver_dir\driver_inf;(repeat);

    [SysPrep]
    BuildMassStorageSection=Yes

    [SysprepMassStorage]

  13. Do not close the sysprep.inf yet! OemPNPDriversPath points to thec:\drivers directory created earlier. For organizational purposes, I split up my custom driver files based on category (i.e. hardware_cat in the example above). For example, all video drivers go underc:\drivers\video and network drivers under c:\drivers\network. In each of those directories, the specific driver bundles are placed with their driver inf files (i.e. driver_dir). For example, the latest nVidia drivers would go into c:\drivers\video\nVidia\. The last part is refering to driver_inf is just that, the name of the inf file. For example, for the latest nVidia driver, the path would bec:\drivers\video\nVidia\nv4_disp.inf. In sysprep.inf, the path would be written asOemPNPDriversPath=drivers\video\nVidia\nv4_disp.inf;. Do not forget the semi-colon as a separator. For the next driver, repeat the procedure by placing the path after the semi-colon without leaving a space. Once all the drivers are added, save the file.
  14. Run c:\sysprep\sysprep -bmsd. This will build the Windows XP standard mass storage drivers section.
  15. While editing sysprep.inf there is an option labeled InstallFilesPathwhich usually points to c:\sysprep\i386. I usually copy the contents of my XP CD's i386 directory into c:\sysprep\i386. This isn't necessary.
  16. Add any custom Storage dirvers to the [SysprepMassStorage] section as detailed above.
  17. Now run C:\sysprep\sysprep.exe.
  18. Pick options Mini Setup and Detect non-plug and play hardware. If you don't have a volume license and plan on just using this image for restoring the computer the image was made on, then pick the optionDon't regenerate security identifiers. If you have a volume license key and will be using this image for multiple machines then leave that option unchecked. Ensure that Shutdown is selected from theShutdown mode drop-down menu and click Reseal.
  19. If you left the SID option to regenerate, then a pop-up will ask you to confirm. hit OK to continue.
  20. This will take a while and your system will shut down once the process is complete.

Sysprep is now complete. Part 2 discusses imaging.

Wednesday, January 11, 2012

SHARE n' UPDATE: Built in parental control in Windows XP – control user login times

SHARE n' UPDATE: Built in parental control in Windows XP – control user login times

Built in parental control in Windows XP – control user login times

ime restriction is the most basic forms of parental control. There is a built in tool in Windows XP for the very same purpose. This is hidden under a command line interface though. Do not get taken back by command prompt, the trick is pretty easy.

Open Command Prompt

First you have to open a command prompt windows while you are logged into an administrator account. Press Windows + R to open the run dialog and then type “cmd“. (You can find out more shortcuts in – Keyboard shortcuts for Windows)

Using net user command

In the next step we will use the “net” command available only under command prompt for our purpose. The “net” command is one of the most powerful commands available on Windows. It lets you administer and automate many tasks in Windows. We will only use the sub-part specific to user account control. Here are some some details about the net user command (ignore this and skip tonext section to find out the our easy way):

Net user

Adds or modifies user accounts or displays user account information.

SYNTAX

net user [UserName [Password | *] [options]] [/domain]

net user [UserName {Password | *} /add [options] [/domain]]

net user [UserName [/delete] [/domain]]

PARAMETERS

UserName : Specifies the name of the user account to add, delete, modify, or view. The name of the user account can have as many as 20 characters.

Password : Assigns or changes a password for the user’s account. Type an asterisk (*) to produce a prompt for the password. The password is not displayed when you type it at the password prompt.

/domain : Performs the operation on the domain controller in the computer’s primary domain.

options : Specifies a command-line option. The following table lists valid command-line options that you can use.

You can read more about the command at Microsoft KB : Full options of net user command.

Using the Command

Do not get frightened by all those options. What we need to do is very simple. Just use

net user USER_NAME PASSWORD /times:Su-Sa,12-13;
net user USER_NAME PASSWORD /times:Su-Sa,3-15;Sa,15-16;

The first option restricts the time the user \”USERNAME\” with PASSWORD can log in from 12PM to 1PM on all days (Sunday through Saturday) (use 24 hour clock in the command its easier to read). The second command restricts the user USERNAME’s login time to 3AM to 3PM on all days and on Saturdays, allocates additional time from 3PM to 6PM.

net user USERNAME */PASSWORD /times in action

In the above screen shot, the command is used to restrict the user “limited” to login only from 1PM to 3PM on all week days. The * will make the command prompt for the users password.

Clear all restrictions

To clear all restrictions just type : net user USER_NAME PASSWORD/*] /times:all

Here is a screen shot of the error produced if the user tries to log in during restricted hours.

Error when a program is tried to run as restricted account

Error shown during restricted hours.

This is a brief summary about the net user commands on Microsoft Knowledge Base :

Other notes

Days can be spelled out or abbreviated. Time can be given in increments of 1 hour. You may enter the time in either 12-hour or 24-hour notation. For 12-hour notation, use am, pm, a.m., or p.m. The time can be specified in increments of 1 hour. If you need to specify multiple times for different days you can use” /time:” option many times. If you give “*” instead of PASSWORD, a password prompt will be shown so as not to reveal the password.

Friday, January 6, 2012

Updating my mobile addressbook can you add your number too

Hello,

I am organizing my mobile address book.

Please do me a favor and enter your mobile number by clicking on:

Click Here only takes few secs.


Thanks!
Arun Raj R