Search in uioop.blogspot.com

Blog Archive

Sunday, January 30, 2011

How Sysprep Works

http://technet.microsoft.com/en-us/library/dd744512%28WS.10%29.aspx

Installing and reinstalling Windows 7

Installing Windows 7 From a USB Stick From Windows XP (Bootable USB)

Source link: http://benosullivan.co.uk/windows/installing-windows-7-from-a-usb-stick-from-windows-xp/

nstalling Windows 7 onto a USB drive in Windows XP is harder than Windows Vista. This is because the "diskpart" tool that is used to prepare the USB drive is different to Vista and 7. So after looking threw a few tutorials and trial and error I installed Windows 7 onto my EEE 1000H. Here is my method:

Required:

  • Usb Drive 4gb or more Buy
  • Daemon tools (or other ISO emulator)
  • The Windows 7 Disk or .ISO Buy

USB Install Method

  • Insert the USB Drive
  • Format the USB Drive with NTFS (Check this guide if NTFS is not an option)
Format NTFS
  • Open a Command Windows (start->accessories->command prompt)
  • type in disk part (download diskpart here)
  • type in listdisk and find the ID of your USB disk
Format NTFS
  • Next type in select disk 1 where 1 is the Disk ID
Format NTFS
  • Next type in select partition 1
  • Finally type active (You will get a confirmation)
Format NTFS
  • Mount the Windows 7 ISO with Daemon Tools (make note of drive letter it assigns)
  • Copy all files from the Windows 7 DVD to the USB Drive
Windows 7 Disk Files
  • Run the following command (Where D:\ is the Windows 7 DVD and E: is your USB Stick)

D:\boot\bootsect /nt60 E: /mbr

bootsect nt60
  • Set your Netbook or PC to boot from USB and your away!

Thursday, January 27, 2011

How To Image and Deploy Windows 7 a Complete Guide – Using sysprep and imagex

Resource Link: http://benosullivan.co.uk/windows/how-to-image-and-deploy-windows-7-a-complete-guide/

Starting with Windows Vista and continuing into Windows 7. Is the ability to image a machine and to have the Windows installer use that image to install Windows. This negates the need for an image for each hardware configuration. Or the use of any third party software

This guide will show you how to create and image from scratch then prepare it for your domain using sysprep. Then how to install Windows 7 from this image.

Index

Getting Ready
Create WINPE Disk
SYSPREP your machine (For Domains)
Capture the Image
Create new Install Media

Related

How to copy the default profile and setup for domains
How to install Windows 7 from a USB stick using XP


Getting Ready

  • Install Windows 7 from scratch on to your test machine.
  • Customise Windows 7 with any software, security settings or general settings you wish. When you install from this image all the settings as well as user accounts will be installed by default.
  • Install WAIK for 7/2008 on the test PC. Download from here.

Create WINPE Disk

  • Right click command prompt run as admin
  • Change to directory “C:\Program Files\Windows AIK\Tools\PETools”
  • run command “copype x86 c:\winpe”
  • run command “imagex /mountrw c:\winpe\winpe.wim 1 c:\winpe\mount”
  • copy imagex.exe from “C:\Program Files\Windows AIK\Tools\x86\imagex.exe” to “c:\winpe\mount\windows\system32″
  • Create wimscript.ini in “c:\winpe\mount\windows\system32″ with following inside
  • [ExclusionList]
    ntfs.log
    hiberfil.sys
    pagefile.sys
    "System Volume Information"
    RECYCLER
    Windows\CSC
    [CompressionExclusionList]
    *.mp3
    *.zip
    *.cab
    \WINDOWS\inf\*.pnf
  • Run Command “imagex.exe /unmount /commit c:\winpe\mount”
  • Run Command “copy c:\winpe\winpe.wim c:\winpe\iso\sources\boot.wim /y”
  • Run Command “oscdimg -n -h -bc:\winpe\etfsboot.com c:\winpe\iso c:\winpe\winpe.iso”
  • This will create an ISO in c:\winpe\winpe.iso.
    Burn this and keep. Now we need to sysprep our machine.
    (You can remove WAIK and any files you don’t need, test your iso first!)

Sysprep Your Machine

  • change to the folder “c:\windows\system32\sysprep\”
  • run command “sysprep /generalize /oobe /shutdown”
  • Sysprep will remove any unique information and reseal the OS. Then the system will shutdown
  • sysprep Windows 7
  • Now boot the ISO we created previously and load into WinPE

Capture Image

  • Once WinPE is booted you will be in a Command Prompt window
  • Run Command “diskpart”
  • Run Command “select disk 0″
  • Run Command “list volume”
  • Note the letter of the drive you are imaging. C:\ in WinPE is set as the running OS not as the internal HDD
  • Run Command “exit”
  • Run Command “imagex /capture d:\ d:\install.wim “My Windows partition”" where d:\ is the drive you are copying
  • This will create a file called install.wim in the root of your HDD. This is the custom image and will need to be added to the Windows 7 Install DVD

Create Installation Media

  • You will probably need to install from USB as the image will probably be to large for a DVD. Here is a guide for Windows 7 USB Install
  • overwrite install.wim to \sources on the windows 7 install source
Install.wim windows 7

Install Windows 7 as normal. Your changes will be installed along with Windows 7

BrianLeeJackson WinPE3.0 Bootloader

http://blog.brianleejackson.com/winpe-3-0-boot-environment-scripts

How to Sysprep a Windows 7 Machine - Start to Finish V2 Read more: How to Sysprep a Windows 7 Machine - Start to Finish V2 | eHow.com http://www.ehow

Source link: http://blog.brianleejackson.com/sysprep-a-windows-7-machine-start-to-finish

http://www.ehow.com/how_5392616_sysprep-machine-start-finish-v2.html

This is version 2 of a step by step guide on Sysprepping a Windows 7 machine from start to finish. I cannot take full credit on this because my first article had so many helpful comments and discussions that this is simply a combination of all the good advice written into a working guide. (I would especially like to thank George for his input on Cscript for auto activation and Nathan for input on Sysprep Audit Mode). This will guide you through the following:

- Audit Mode
- Building the unattended XML file in WSIM
- copyprofile=true command to copy the default profile (no manual copy)
- Prompt for a computer name
- Enable Administrator account
- Administrator account logs in first time automatically
- Activate windows automatically with Cscript;
- Delete sysprep XML file automatically upon completion of re-image.

Difficulty: Moderate

Instructions

Things You'll Need:

  • - Latest version of WAIK : KB3AIK_EN.iso Version 1.0 - Windows Vista or Windows 7 Machine to build the XML file on - ISO or DVD of Windows 7 Installation (x32 or x64) - WinPE Boot Envir
  1. 1

    First we are going to walk through building the XML file (answer file) and then we will walk through the actual Windows 7 imaging process. If you have a Windows 7 installation DVD, insert it now. Or if you have an ISO of 7, go ahead and extract it to a folder on your desktop. (I recommend 7-zip).

  2. 2
    WAIK - Windows System Image Manager
    WAIK - Windows System Image Manager

    Launch Windows System Image Manager. Your start menu should look like the image below:

  3. 3
    WAIK - Windows Image Selection
    WAIK - Windows Image Selection

    Under the "Windows Image" header, right click and select new image.

  4. 4
    WAIK - CLG file / Install.WIM
    WAIK - CLG file / Install.WIM

    You will now want to browse to the .CLG file in your Windows 7 installation (I am using Windows 7 Enterprise x64 in my example). It is located in the sources folder. See Image below. You can select either the .clg file or the install.wim. Both will have the same result.

  5. 5

    Now we need to create a new answer file. Go to the file menu and select "Create New Answer File." Right after creating one, go ahead and simply go to file menu and select "Save Answer File." This will give your XML file a name and save location. Now you see we have two category folders, Components and Packages. Under the Components folder you see that we have 7 options:

    -1 windowsPE
    -2 offlineServicing
    -3 generalize
    -4 specialize
    -5 auditSystem
    -6 auditUser
    -7 oobeSystem

  6. 6
    Sysprep - Adding Passes
    Sysprep - Adding Passes

    These are very important as these are the steps in which the XML file is sequenced.
    The next part is a little confusing. You are going to add components, from under the "Windows Image" section on the bottom left hand side to the passes on your Answer File. To add a component, you can right click on them and select "add to # pass". There are many different options you can add, but they have to be done in a certain order and pass otherwise your sysprep might fail. I am simply going to use the one I created as the example.

  7. 7

    3 generalize

    amd64_Microsoft-Windows-Security-SPP_6.1.7600.16385_neutral

    Set 1 for SkipRearm to allow up to 8 rearms

    4 specialize

    amd64_Microsoft-Windows-Deployment_6.1.7600.16385_neutral

    RunSynchronous
    RunSynchronousCommand[Order="1"]
    Order: 1
    path: net user administrator /active:yes
    WillReboot: Never

    amd64_Microsoft-Windows-Security-SPP-UX_6.1.7600.16385_neutral

    SkipAutoActivation: true

    amd64_Microsoft-Windows-Shell-Setup_6.1.7600.16385_neutral

    Computer Name: Leave blank (we will deal with this at the end)
    CopyProfile: true
    Registered Organization: Microsoft (you must leave this in this section)
    Registered Owner: AutoBVT (you must leave this in this section)
    ShowWindowsLive: false
    TimeZone: Pacific Standard Time
    7 oobeSystem

    amd64_Microsoft-Windows-International-Core_6.1.7600.16385_neutral

    InputLocale: en-us
    SystemLocale: en-us
    UILanguage: en-us
    UserLocale: en-us

    amd64_Microsoft-Windows-Shell-Setup_6.1.7600.16385_neutral

    RegisteredOrganization: Your Company Name
    RegisteredOwner: Your Name
    # AutoLogon

    Enabled: true
    LogonCount: 5
    Username: administrator
    Password: Administrator Password

    # FirstLogonCommands

    SynchronousCommand[Order="1"]

    CommandLine: cscript //b c:\windows\system32\slmgr.vbs /ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX (windows 7 license key)
    Order 1
    RequiresUserInput: false

    SynchronousCommand[Order="2"]
    CommandLine: cscript //b c:\windows\system32\slmgr.vbs /ato
    Order 2
    RequiresUserInput: false

    # OOBE

    HideEULAPage: true
    NetworkLocation: Home
    ProtectYourPC: 1

    # UserAccounts

    AdministratorPassword: Administrator Password
    LocalAccounts
    LocalAccount[Name="Administrator"]
    Action: AddListItem
    Description: Local Administrator
    DisplayName: Administrator
    Group: Administrators
    Name: Administrator

    Password: Administrator Password

  8. 8

    K, now go ahead and save your answer file as sysprep.xml.

  9. 9

    PART 2 - IMAGING PROCESS / RUNNING SYSPREP
    Install Windows 7 (Enterprise) from CD or USB flash drive, when you arrive at the welcome screen and it asks you to create a username, hit ctrl+shift+f3.
    This will reboot your machine and put your windows build in 'audit' mode.

  10. 10

    On reboot, you'll automatically be logged in under the built-in Administrator account. A sysprep GUI box will appear, but you can close it and NOW begin to customize your profile.

  11. 11

    Install any software/drivers, make any profile customizations, etc.
    If you need to reboot, the computer will boot you back into the Administrator account. You will be stuck in this audit mode until you run sysprep with the /oobe parameter. After doing so, sysprep will delete/clean up the Administrator account, but if you have copyprofile=true in your unattended answer file, it will copy the customized Admin account to the default profile before deleting it.

  12. 12

    On the PC you are going to be running sysprep on, you need to create a folder called scripts in this directory: %WINDIR%\Setup\. Now you are going to create a CMD file within the %WINDIR%\Setup\Scripts directory. Right click and make a new text file called SetupComplete.txt. Remove the .txt extension and replace that with .cmd. You now have a SetupComplete.cmd file which windows will read the first time it boots up from the sysprep. We need to place a script inside the CMD file. Edit the cmd file with notepad and insert this line: del /Q /F c:\windows\system32\sysprep\sysprep.xml. This script will delete your sysprep.xml file after it has been used. If you have passwords or cd keys stored in that xml file you don't have to worry about it being left on the computer.

  13. 13

    Once you have everything configured correctly, Copy or move your sysprep.xml file to : C:\windows\system32\sysprep. Now to run sysprep, navigate to that sysprep folder, hold SHIFT and right click and select "Open New Command Windows Here". Next, input the following commands:

    sysprep /generalize /oobe /shutdown /unattend:sysprep.xml

  14. 14

    Turn the computer back on and boot to WinPE 3.0 environment (USB stick or CD/DVD). You can use my BrianLeeJackson WinPE3.0 BootLoader to boot up from USB or CD and capture your image. Capture image and save image to network location.
    A Dell 960 or GX755 is a good standard for capturing when you want a generic image for use with multiple systems. Might require injecting additional drivers for 3rd party brands, HP, etc. Most should work though right out of the box.

  15. 15

    On reboot, Windows will run out of the box, as the /oobe is intended. As long as you put your cd key into the sysprep xml file, windows will be activated automatically in the background, you will be automatically logged into the administrator account, and the sysprep.xml file is deleted. You are now ready to use the computer or join it to the domain. Enjoy!


Tips & Warnings

  • Be patient
  • Be careful, read through multiple times if you need too.



Wednesday, January 5, 2011

[Linux] - pwd and ls-a

[Yy@localhost ~]$ pwd (show your current directory)
/home/Yy
[Yy@localhost ~]$ ls -a (same as dir/w)

Tuesday, January 4, 2011

[Linux] - How to install GCC in Fedora

In terminal type:

yum install gcc

Example:

[Yy@localhost ~]$ su
Password:
[root@localhost Yy]# yum install gcc

[Linux] - How to install *.bundle

In terminal type:


sudo sh ./


Example:

[Yy@localhost ~]$ su
Password:
[root@localhost Yy]# cd Downloads
[root@localhost Downloads]# sudo sh VMware.bundle
Extracting VMware Installer...done.

Monday, January 3, 2011

[Linux] - How to install GIMP

It's very likely your Linux distribution already comes with a GIMP package. It is a preferred method of installing GIMP, as the distribution maintainers take care of all the dependencies and bug fix updates.

Ubuntu, Debian
Ubuntu or Debian users can simply run apt-get install gimp to get the latest stable release of GIMP.

openSUSE
SUSE users can install GIMP by running yast -i gimp or zypper in gimp, depending on the distribution version.

Fedora
Similarly to the above, Fedora users can install the latest stable GIMP by running yum install gimp.

Mandriva
Mandriva Linux users can install the latest stable GIMP by running urpmi gimp.

AVG Internet Security 2013

Total Pageviews

Contributors