Archive for the ‘Tutorial’ Category

How to Install Windows 7 From a Flash Drive / USB Stick

Friday, July 31st, 2009

This is a short guide on how to install Windows 7 onto a computer from a USB Flash Drive / USB Stick or Portable Hard Drive. Since read speeds are faster from USB drive than your CD-ROM drive, this actually decreases the install time for Windows 7.

OCZ Flash Drive - Install Windows 7

OCZ Flash Drive - Install Windows 7

Step #1

The first thing you will need to do is format your USB Flash Drive or Portable Hard Drive so that your computer will read it as a bootable drive. So plug your flash drive into a workstation.

Step #2

Open up Command Prompt / CMD (located in Program Files->Accessories) and type the following commands:

DiskPart
List Disk (this will list the disks currently plugged into your computer. Most likely, the C: drive on that computer will be listed as disk 0, and you will have to look down the list to see which disk your flash drive is. Look at the corresponding disk sizes to easily figure it out.)
Select Disk 3 (I am using 3 as example for assigned flash drive)
Clean
Create Partition Primary
Select Partition 1
Active
Format FS=NTFS Quick
Assign (you can assign a particular drive letter if you want, example: assign=E:)
Exit (this will exit DiskPart)
Exit (this will exit CMD)

Step #3

Next you will need to either insert your Windows 7 CD and browse to the CD or open up your Windows 7 ISO and browse to the folders within it. (If you are using ISO, I would suggest extracting the contents to a new folder)

Step #4

Next you will need to spoof your flash stick so that the computer will think it is an install CD. From within the root of the Windows 7 CD or ISO contents, right click while holding shift key and select “Open Command Windows Here”. This will open up a Command Prompt window within that directory. Then input the following commands:

cd Boot
bootsect /nt60 E: (I am using drive letter E: as my flash drive)
exit (exits command prompt)

Step #5

Next simply copy over the entire contents of your windows 7 CD or ISO to your flash drive.

Step #6

Reboot the computer your are wanting to install Windows 7 on with the flash drive plugged in, hit the boot key (normally F12, DEL, or ESC) to select the boot device, boot to your flash drive, and it will go immediately to the Windows 7 Setup screen.

Share and Enjoy:
  • Twitter
  • Facebook
  • Digg
  • del.icio.us
  • Technorati
  • StumbleUpon
  • Google Bookmarks

How to Speed Up FileZilla FTP Transfers

Friday, July 31st, 2009

Are you having trouble with download speeds using the FTP Client Filezilla? It is most likely due to simply not having some configurations options set. By default, the FTP client will be set at minimal connections, but if you change a few things you can increase your download speed by over 2Mb/s.

FileZilla FTP Logo

FileZilla FTP Logo

Step #1

Download and install the FileZilla FTP client from their website at http://filezilla-project.org/.

Step #2

At the top left of the application, go to File-> Site Manager. In site manager you are going to setup a new connection with the host your are connecting with.

FileZilla FTP Site Manager

FileZilla FTP Site Manager

Step #3

Go over to the “Transfer Settings” tab and select Limit Simultaneous connections. Then input 10 for the Maximum Number of Connections. This will optimize your connection speeds with most servers to get the highest download speeds; and without them disconnecting. (My download speeds jumped from 900KB down to 2500KB down just from changing this one option.

FileZilla FTP - Transfer Settings

FileZilla FTP - Transfer Settings

Share and Enjoy:
  • Twitter
  • Facebook
  • Digg
  • del.icio.us
  • Technorati
  • StumbleUpon
  • Google Bookmarks

How to Delete Or Clear COM Ports In Use

Tuesday, July 28th, 2009

If you are having trouble with your COM ports stacking up because they are in use, these brief steps below will help you clear them out. (I found myself the other day needing to connect via a USB to Serial adapter to a server and noticed that 35 COM ports showed in use. Somehow the COM ports were not getting cleared out.)

COM-Ports

COM-Ports

Step #1

One thing is to see if hidden devices are taking up the ports:
Click Start > All Programs > Accessories and then click Command Prompt.

Step #2

Type set devmgr_show_nonpresent_devices=1 in the Command Prompt and then press Enter.

Step #3

Type cd \Windows\system32 in the Command Prompt and then press Enter.

Step #4

Type start devmgmt.msc in the Command Prompt and then press Enter.

Step #5

Click View > Show hidden devices. This will display devices that are not connected to your computer.

Step #6

Now if you expand the section on COM ports, all the COM ports that have ever
been created will be displayed, the non present ones being in grey. You can
uninstall away anything that you don’t want (right click, select uninstall).

Share and Enjoy:
  • Twitter
  • Facebook
  • Digg
  • del.icio.us
  • Technorati
  • StumbleUpon
  • Google Bookmarks

How to Install and Configure Canon ScanGear Tool

Tuesday, July 28th, 2009

This is a short guide to setting up the Canon ScanGear Tool to enable the Canon copiers to be able to scan directly from the copy machine to the computer.

Step #1

First you will need to download the ScanGear Tool from Canon’s website. Version 2.21 will work with all the non-color copiers like Canon IR-2200. Version 2.30 will work with all the newer Canon color copiers.

Download Canon ScanGear Tool V.2.21
Download Canon ScanGear Tool V.2.30

Step #2

Run the EXE you just downloaded. By default the EXE unpacks the contents of the EXE to your TEMP folder.

  • TEMP FOLDER LOCATION on Windows 2000 through XP : C:\Documents and Settings\NameofUser\Local Settings\Temp
  • TEMP FOLDER LOCATION on Vista through Windows 7 : C:\Users\NameofUser\AppData\Local\Temp
  • Step #3

    Launch the setup file located within the TEMP folder and go through the prompts to install the ScanGear Tool.

    Step #4

    Once installed, you will need to launch the ScanGear Tool and input the IP address of the copier. Make sure it connects successfully by click the “Test Connection” button.

    Canon ScanGear Tool

    Canon ScanGear Tool

    Step #5

    Now you can Scan with the copier. For this example, I am going to be using the “Microsoft Office Document Scanning” tool provided within Microsoft Office 2003 through 2010.

  • LOCATION OF MODS in XP, Vista, & Windows 7: Start Menu -> Microsoft Office -> Microsoft Office Tools
  • Step #6

    Now walk over to your Canon copier. Press the big SCAN button to switch the copier into SCAN mode.

    Step #7

    Select the “Online” option to force the SCAN mode on. (It will start searching for the ScanGear client on your computer)

    Step #8

    Place the document you are wanting to scan into the feeder tray on top of the Canon Copier. (It will not start scanning until feeder tray has paper in it)

    Step #9

    On your computer, select Scan (black and white or color) and then the computer will begin scanning your documents.

    Microsoft Office Document Scanning Tool

    Microsoft Office Document Scanning Tool

    Share and Enjoy:
    • Twitter
    • Facebook
    • Digg
    • del.icio.us
    • Technorati
    • StumbleUpon
    • Google Bookmarks

    How to Avoid Reserved or Hidden Partition in Windows 7

    Tuesday, July 28th, 2009

    There is a hidden partition created by default in Windows 7. This can be very frustrating, especially for IT administrators who are working with capturing and deploying images with Sysprep and ImageX. The boot files needed for Windows 7 to boot correctly are stored on this 2nd hidden partition. This will show you how to install Windows 7 on one partition.

    Step #1

    First, there is no way to simply delete this hidden 100MB partition in Windows 7; you simply have to reformat. So the first step is to backup your data and boot to the Windows 7 Install CD. (To boot to CD, restart your computer and normally it will be either DEL, F12, or ESC key to select CD-ROM drive, and boot to it)

    Step #2

    Once you are up to the Windows 7 screen, you will need to select “Repair Your Computer” option.

    Windows 7 Startup Repair - Picture provided by About.com

    Windows 7 Startup Repair - Picture provided by About.com

    Step #3

    Next you will need to select “Command Prompt”.

    Windows 7 Command Prompt - Picture provided by About.com

    Windows 7 Command Prompt - Picture provided by About.com

    Step #4

    In Command Prompt we are going to reformat your hard drive in a certain way so the 2nd partition doesn’t automatically get created when you install Windows 7. Here are the comands:

    Diskpart
    List Disk (You might have more than one hard drive)
    Select Disk 0 (By default your main boot drive will be disk 0, check it)
    Clean
    Create Partition Primary
    Select Partition 1
    Active
    Format FS=NTFS Quick
    Exit

    Step #5

    Then simply walk through installing Windows 7 as you would normally. This time the setup will not create the 100MB hidden reserved partition.

    Share and Enjoy:
    • Twitter
    • Facebook
    • Digg
    • del.icio.us
    • Technorati
    • StumbleUpon
    • Google Bookmarks

    VMWare – Delay VM Bootup Time to Allow Bios Entry/Boot Options

    Wednesday, June 24th, 2009

    You will need to change a few things in your .vmx file for your virtual machine. In Windows Vista and Windows 7 the default location of your virtual machine is:

    C:\Users\USER\Documents\Virtual Machines\VIRTUALMACHINENAME.vmx

    Step #1

    Open up the .vmx file in notepad and add :

    bios.bootDelay = “5000″
    this adds a 5000 ms (5 seconds) delay at boot time
    save the .vmx file

    or add:

    Step #2 (Optional)

    To force VM to enter the BIOS setup at next boot change the following:

    bios.forceSetupOnce = “TRUE”

    Escape will get you into the Boot Order and F2 will get you into the BIOS menu.

    Share and Enjoy:
    • Twitter
    • Facebook
    • Digg
    • del.icio.us
    • Technorati
    • StumbleUpon
    • Google Bookmarks

    Restart networked PC remotely through Command Line (CMD)

    Wednesday, June 24th, 2009

    First off, you will need administrative rights on the machine you are trying to reboot and make sure you are able to ping it.

    Step #1

    Start > Run, Type shutdown -i

    Step #2

    Select shutdown or restart

    Share and Enjoy:
    • Twitter
    • Facebook
    • Digg
    • del.icio.us
    • Technorati
    • StumbleUpon
    • Google Bookmarks

    Vista Powershell Script fix

    Wednesday, June 24th, 2009

    Step #1

    Go to Run and type regedit

    Step #2

    HKEY_Local_Machine\SOFTWARE\Microsoft\PowerShell\1\ShellIds\Microsoft.Powershell\ExecutionPolicy

    Step #3

    In that registry key, change value to Unrestricted.

    Share and Enjoy:
    • Twitter
    • Facebook
    • Digg
    • del.icio.us
    • Technorati
    • StumbleUpon
    • Google Bookmarks

    Deployment Image Servicing and Management (DISM) – WinPE 3.0 Boot Environment

    Friday, June 19th, 2009

    I recently compiled a new library of commands since the upgrade from WinPE 2.0 to WinPE 3.0. With Windows 7 coming along they released a new way to create bootable USB sticks using Deployment Image Servicing and Management (DISM.exe). You might be asking yourself, what could I use this for? We are using it at my work to re-image computers, capture backup images, mount images, etc. There are many other uses for it but I will not get into that here. I have literally done this procedure a couple hundred times. In a future article I will show you how to write a simple batch script to automate this process. But it helps to understand what is going on with each command in case you have trouble. Batch scripts never work 100% of the time.

    You will need the following to proceed:
    Windows® Automated Installation Kit (AIK) for Windows® 7 RC (Download from Microsoft) : 05.01.09

  • Windows® Automated Installation Kit (AIK) for Windows® 7 RC (Download from Microsoft) : 08.06.09
  • Bootable Flash drive (500MB or larger)
  • Once you have installed WAIK then you will need to browse to your start menu and click on “Deployment Tools Command Prompt”. I have provided a picture below.

    DISM

    DISM

    Once you have launched DTCP you will need to follow through the commands I have compiled below. The first one I have provided a screenshot.

    DISM – Step #1 – Prep/Cleanup

    DISM /Cleanup-Wim

    The DISM cleanup command simply cleans up any previous wims/mounts you have been working with. If you do this a lot, you will need to use this command otherwise you will start receiving errors from previous wims possibly still left on the system.

    DISM Step #1

    DISM Step #1

    DISM – Step #2 – Copy WinPE 3.0 to your local C Drive

    copype.cmd x86 c:\winpe_x86
    copy c:\winpe_x86\winpe.wim c:\winpe_x86\ISO\sources\boot.wim

    This creates a winpe_x86 folder on your C: drive and then copies the contents of the WinPE folder from the WAIK installation to your folder.

    DISM – Step #3 – Mounting .Wim File on your local C Drive

    Dism /Mount-Wim /WimFile:C:\winpe_x86\winpe.wim /index:1 /MountDir:C:\winpe_x86\mount

    This command mounts the wim file that was copied over in step #2 so that you can browse the system32 folder and insert your custom scripts, etc.

    DISM – Step #4 – Adding Packages to your WIM

    Dism /image:C:\winpe_x86\mount /Add-Package /PackagePath:”C:\Program Files\Windows AIK\Tools\PETools\x86\WinPE_FPs\winpe-wmi.cab”
    Dism /image:C:\winpe_x86\mount /Add-Package /PackagePath:”C:\Program Files\Windows AIK\Tools\PETools\x86\WinPE_FPs\en-us\winpe-wmi_en-us.cab”

    There are many packages you can add to your WINPE boot environment, these are two I always add to mine.

    DISM – Step #5 – Adding Drivers to WinPE

    DISM /image:c:\winpe_x86\mount /Add-Driver /driver:C:\YOUR_FOLDER_OF_INF_DRIVERS\ /recurse

    A nice addition to DISM over the previous peimg command in WINPE 2.0 is the ability to add drivers with the /recurse command. The /recurse command now allows us to simply have all of our drivers in their own directory and tell DISM to scan the root folder and everything beneath it. The number of sub directories won’t matter. I have a huge library of drivers, for example, you will want to have the network and vga drivers for anything that you boot up to in the WinPE environment. By adding the network driver to your WinPE boot environment, it allows you to access network shares for capturing and deploying .wim images.

    DISM – Step #6 – Adding Custom Scripts, Batch Files, Etc.

    xcopy /e /y “C:\YOUR_FOLDER_OF_SCRIPTS” C:\winpe_x86\mount\Windows\System32\

    Without adding anything to your WinPE boot environment you will simply be left with a command prompt window when booting to it on a computer. I have added over 15 different batch scripts with different functions. Click here to download my WinPE discs. One thing I highly suggest adding is GImageX. GImageX is a very small GUI program that you can add to be able to capture, deploy, and mount images within the WinPE boot environment. I have provided a picture of GImageX GUI below.

    For WinPE 3.0 Boot Environment - Mount, Deploy, Capture Images

    For WinPE 3.0 Boot Environment - Mount, Deploy, Capture Images

    DISM – Step #7 – Unmounting your finished .WIM

    Dism /Unmount-Wim /MountDir:C:\winpe_x86\mount\ /Commit

    This commits the final changes to your .WIM file and anything you added to it. It is very important to unmount your .WIM file when you have finished.

    DISM – Step #8 – Copies your .WIM to Boot ISO

    copy c:\winpe_x86\winpe.wim c:\winpe_x86\ISO\sources\boot.wim /Y

    DISM – Step #9 – Creates bootable .ISO of WinPE 3.0

    oscdimg -n -bc:\winpe_x86\etfsboot.com c:\winpe_x86\ISO c:\winpe_x86\winpe_x86.iso

    Now, if you are wanting to use a flash stick you will need to format a flash stick in a certain way, and then simply copy the contents of the c:\winpe_x86\ISO\ to your flash drive. And thats it! Stick it in a computer, restart, and boot to it. The .ISO made in step #9 can simply be burned to a CD with Nero or other program capable of making bootable CD and then you can boot to it in the same way.

    DISM – Step #10 – Optional Backup

    xcopy /e /y “C:\winpe_x86″ E:\BACKUP_FOLDER_FOR_LATEST_BOOT_BUILD\

    This step is optional, but I always like to keep a backup for the future. Also, if you ever need to create another bootable flash stick or CD you can simply go to your backup and grab the files.

    Share and Enjoy:
    • Twitter
    • Facebook
    • Digg
    • del.icio.us
    • Technorati
    • StumbleUpon
    • Google Bookmarks

    Fixing Corrupt Vista Profile – Logged in as Temp

    Monday, March 16th, 2009

    1. Restart your PC to release the locks on your profile.
    2. Log on with another administrative account
    3. Delete C:\Users\%username%
    4. Delete C:\Users\TEMP
    5. Delete the registry key matching your SID from
    “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsNT\CurrentVersion\ProfileList”. Check the value “ProfileImagePath” to make sure you pick your own profile.
    6. Restart once again and then you’re done!

    Microsoft Windows Vista SP1

    Microsoft Windows Vista SP1

    Share and Enjoy:
    • Twitter
    • Facebook
    • Digg
    • del.icio.us
    • Technorati
    • StumbleUpon
    • Google Bookmarks