Geeks With Blogs

News
Welcome to my blog.
Here's what we've got on the menu today:

Lorin Thwaits A geek says what?

Here's an interesting trick you can do with any Vista DVD.  A limited version of this was actually possible back with Win2000 and WinXP.  But back then it wasn't really that handy.  With the RTM of Vista though it's insanely useful, to the point that I think that every systems guy that's worth his salt should be familiar with this.  It allows you to do some excellent troubleshooting with only a Windows Vista DVD.  And not just on a Vista machine.  You can use this to troubleshoot a copy of XP, Win2K3 Server, Win2K, or even NT.

First some background.  When you boot into Vista Setup, the system extracts the contents of the 116 meg file \sources\boot.wim into a RAM drive and assigns it the drive letter X:.  There's some pretty handy stuff that's a part of this virtual disk as we'll see.  This drive contains a scaled-down copy of Vista, version 6.0.6000.  It is then virtually "booted", freeing up the DVD drive so you can change out the media with something else if you need.  The bulk of Setup then runs from this scaled-down copy of Vista sitting in RAM, a mode known as the "Windows Preinstallation Environment for Vista" or "Windows PE 2.0".  It first presents the nice splash screen asking about language and keyboard layout, and then after clicking "Next" it asks you for your product key.  It is at this point that you can access a truly excellent feature of setup, obviously intended to troubleshoot a failed installation, but also VERY handy to administer a system that is on the fritz.  By pressing SHIFT-F10, Setup runs "cmd", and drops you to a command prompt that is running with SYSTEM privileges.  Again, this was possible with Windows 2000 and Windows XP during the "GUI" part of install, but the major drawback there was that to get to that part of install you had to go through the first part of installation, partitioning the disk, copying files, and otherwise modifying your hard drive.  Not too useful.  The only thing I ever used it for was to start a game of Solitaire to pass the time while everything installed.  Not all that handy.  But with Vista you get to drop to a command prompt without ever modifying the hard drive!  This opens up enormous possiblities.

You can change out the DVD or CD to put in a disk that has your favorite tools on it.  Handy for trobleshooting.  Or use a USB "thumb drive" since it is recognized and accessible as well.  (The driver for removable media is included in the boot.wim image.)  Of course the Setup program is still running in the background, and if you exit Setup then the machine shuts down.  So leave Setup running, and then from the X: drive you can run all of these powerful tools at the command prompt:

REGEDIT and REGEDT32
CHKDSK - Check the integrity of any disk in the system.  /F will fix errors.
DISKPART - Manage all aspects of disk partitioning
DISKRAID - Configure RAID.  (This needs a VDS hardware driver loaded via DRVLOAD to work, but it means you can configure a software-based RAID solution _before_ you install the operating system.)
FORMAT - (Needs no introduction!)
ROBOCOPY - A better version of XCOPY to conveniently move files around on volumes.  See this post for an example of how to duplicate a Windows installation using this tool in this WinPE environment.
BMRUI - Bare Metal Restore (Windows Complete PC Restore.)  Intended to be used with a DVD that has a .WIM installation image.
MDSCHED - Memory Diagnostics Scheduler Tool.  You have to restart the machine to run the test.  (It's easier to get to this diagnostic by just pressing the space bar right before the DVD starts booting, bringing up the menu where you can choose to directly run the memory test.)
ICACLS - Manage permissions on files and folders from the command prompt
RSTRUI - System Restore
RECOVER - To try to read files from a defective disk
WDSCAPTURE - Create an image of an operating system installation that can then be used with a Windows Deployment Services server.  Here's more details about using WDSCapture in a WinPE environment.
WBADMIN - Windows Backup Admin, command-line version
WEVTUTIL - Manage the Event Viewer logs from a command prompt

Some useful "old-school" tools are also available:
ATTRIB - Modify file attributes like read-only, hidden, and system
CONVERT - Convert a FAT drive to NTFS
EXPAND - Uncompress files (although none of the files on the Vista DVD are compressed in this way.)
FIND - Find text in files
NETSH - Manage network settings
TASKMGR - Windows Task Manager
XCOPY

Some rarely used tools are also out there:
MOUNTVOL - manage volume mount points
CHKNTFS - see if a drive experienced a dirty shutdown
BOOTCFG - manage the BOOT.INI file
CONVERT - change a FAT partition to NTFS
FltMC - manage filter drivers (FBWF and WinFsf are loaded by default to provide the RAM disk on the X: drive.)

Some specialized niche stuff is out there, too:
DRVLOAD - To install drivers either while running in the WinPE environment or into a folder you'd like to create an image from.  Here's a little more info.
FVEUPDATE - Full Volume Encryption Servicing Utility (aka BitLocker).  Kinda cryptic tool in that it doesn't include any help feature, but to get you started available switches include /bootmgr, /windowsbootenvironment, and /memtest.
BCDEDIT - Manage boot boot configuration data in Vista.  BCD is the replacement for boot.ini.  Here's more info on BCDEDIT.
BOOTREC - To do things like "FixMBR", "FixBoot".  Also "ScanOS" to find installations that could be listed in BOOT.INI, and "RebuildBcd" which allows you to automatically add them to the BCD (boot configuration store).
VERIFIER - Driver Verifier Manager.  Useful to those who write device drivers.
WPEUTIL - WinPE Utilities.  A smorgasbord of functionality: Initialize the network, create page files, gracefully shut down the system, manage firewall settings, and more.
SETUPOSK - See an on-screen keyboard.  Handy if you only have a mouse available for whatever reason.  There's probably a way to bring this up during Setup solely with the mouse.  I haven't looked into it at all yet.

You can also run your favorite VBScripts as CSCRIPT.EXE and WSCRIPT.EXE are there.

Altough there is no network installed initially, you can load drivers using DRVLOAD and start the network with the command "WPEUTIL InitializeNetwork".  Lots of network tools like IPCONFIG, PING, TRACERT, and NET are then available, and you can map to network drives and so forth.  (See Q923834 for more info.)

For those who troubleshoot systems in any capacity, I hope this overview of the SHIFT-F10 trick to get into WinPE is handy.  Thank you very much, Microsoft for providing a much better alternative to the old Windows 2000 Recovery Console!

Posted on Wednesday, November 22, 2006 3:30 AM Vista | Back to top


Comments on this post: RTM of Vista keeps the useful trick of hitting SHIFT-F10 during Setup

# re: RTM of Vista keeps the useful trick of hitting SHIFT-F10 during Setup
Requesting Gravatar...
This is an excellent write up. Thank you.
Left by Rick Johnson on Apr 19, 2007 11:15 AM

# re: RTM of Vista keeps the useful trick of hitting SHIFT-F10 during Setup
Requesting Gravatar...
shouldn''t It be RTFM????
Left by John Doe on Apr 27, 2007 7:49 AM

# re: RTM of Vista keeps the useful trick of hitting SHIFT-F10 during Setup
Requesting Gravatar...
Nah, not RTFM. "RTM" means "Release to Manufacturing", or in other words the release version of a product after all the betas, CTPs, or RCs. In January 2008 Vista with SP1 will start to ship, and that will be called, accordingly, Vista with SP1 (sometimes called "slipstreamed"). But for the next 6 months or so we'll be on Vista RTM.
Left by Lorin on Apr 27, 2007 2:03 PM

# re: RTM of Vista keeps the useful trick of hitting SHIFT-F10 during Setup
Requesting Gravatar...
Thanks, you should write a tutorial on how to install windows vista on a software based raid.
Left by Kawazoe on Jul 18, 2007 3:58 PM

# re: RTM of Vista keeps the useful trick of hitting SHIFT-F10 during Setup
Requesting Gravatar...
Thank you very much for the tip. I just love it.
I had a non-working installation of Vista, and with SHIFT-F10 i was able to access dispart and fix the problem. really powerful trick!
Left by Abdurrahman Al-Qahtani on Jul 22, 2007 2:15 AM

# Shrink option using Shift+F10
Requesting Gravatar...
There is a "shrink" option once you enter the DISKPART section. I did that to get XP and Vista on the same hard drive. Very Handy!
Left by Jaysully2001 on Jan 31, 2008 6:52 AM

# re: RTM of Vista keeps the useful trick of hitting SHIFT-F10 during Setup
Requesting Gravatar...
WinPE is extremely useful as a TFTP boot image! I had a computer on the fritz that only had a cd rom drive (a dell laptop) and I had to use my other laptop to serve the image over my network using TFTPD32.exe.
Very useful...like a beefed up version of the Win 98 startup disk (with its mscdex.exe, fdisk, format, command.com,etc.)
Left by friend on Mar 25, 2008 8:00 PM

# re: RTM of Vista keeps the useful trick of hitting SHIFT-F10 during Setup
Requesting Gravatar...
Very useful, very clear - thank you. Would it be possible to extract only the necessary files from a Vista Ultimate DVD to another DVD so that it was not necessary to use the original all the time - if so how?
Left by sprozzy on Sep 01, 2008 9:38 PM

# re: RTM of Vista keeps the useful trick of hitting SHIFT-F10 during Setup
Requesting Gravatar...
Nice work. Thanks for the article and the list of commands. :)
Left by Bob P Smith on Jun 29, 2009 5:00 PM

# re: RTM of Vista keeps the useful trick of hitting SHIFT-F10 during Setup
Requesting Gravatar...
Thanks. Its Working fine.
Left by DDos Protection on Nov 06, 2009 11:11 PM

# re: RTM of Vista keeps the useful trick of hitting SHIFT-F10 during Setup
Requesting Gravatar...
did that to get XP and Vista on the same hard drivez
Left by street lighting on Nov 07, 2009 8:38 PM

# re: RTM of Vista keeps the useful trick of hitting SHIFT-F10 during Setup
Requesting Gravatar...
Very useful, very clear - thank you.
Left by Tiffany Necklaces on Nov 11, 2009 6:45 AM

# re: RTM of Vista keeps the useful trick of hitting SHIFT-F10 during Setup
Requesting Gravatar...
Yes, you are right, lots of network tools like IPCONFIG, PING, TRACERT, and NET are then available, and you can map to network drives and so forth.
Left by valves manufacturer on Nov 29, 2009 9:34 PM

# re: RTM of Vista keeps the useful trick of hitting SHIFT-F10 during Setup
Requesting Gravatar...
I use Ping command a lot, but i did know about SHIFT-F10
Left by premier eye serum on Dec 03, 2009 11:27 PM

# re: RTM of Vista keeps the useful trick of hitting SHIFT-F10 during Setup
Requesting Gravatar...
Fools has fortune.
Left by coagulant on Dec 16, 2009 1:38 AM

# re: RTM of Vista keeps the useful trick of hitting SHIFT-F10 during Setup
Requesting Gravatar...
Thank you so much for this article! I was trying to install xp on my vaio which came with vista installed - which ended up alot of hassle as xp doesnt come with sata drivers. once i got xp installed i couldnt find any compatible drivers so had to revert back to vista which was a nigthmare as i had no recovery disks! i was just about get download a vista torrent and then after a quick search i found this!! the restore worked perfectly and back online!! thanks again!!
Left by cherni99 on Jan 14, 2010 4:23 PM

# re: RTM of Vista keeps the useful trick of hitting SHIFT-F10 during Setup
Requesting Gravatar...
Would it be possible to extract only the necessary files from a Vista Ultimate DVD to another DVD so that it was not necessary to use the original all the time - if so how
Left by butterfly valves on Feb 08, 2010 6:39 AM

# re: RTM of Vista keeps the useful trick of hitting SHIFT-F10 during Setup
Requesting Gravatar...
Hey mate, your website's design is great and loving it. Your blog posts are wonderful. Please continue this great work. Cheers!!!!
Left by business directory on Mar 06, 2010 6:30 PM

# re: RTM of Vista keeps the useful trick of hitting SHIFT-F10 during Setup
Requesting Gravatar...
Is it possible to do a full bare restore if you do not have the disks?
Left by Michelle on Mar 12, 2010 1:58 AM

# re: RTM of Vista keeps the useful trick of hitting SHIFT-F10 during Setup
Requesting Gravatar...
nice work out.
Left by Seo solution on Jul 28, 2010 11:44 AM

# re: RTM of Vista keeps the useful trick of hitting SHIFT-F10 during Setup
Requesting Gravatar...
nice things are going on .
Left by Limo in baltimore on Jul 28, 2010 11:47 AM

# re: RTM of Vista keeps the useful trick of hitting SHIFT-F10 during Setup
Requesting Gravatar...
nice work done.Thanks for sure.
Left by Pakistani music on Jul 28, 2010 11:50 AM

# re: RTM of Vista keeps the useful trick of hitting SHIFT-F10 during Setup
Requesting Gravatar...
wow thats superb.
Left by Six sigma on Jul 28, 2010 11:50 AM

# re: RTM of Vista keeps the useful trick of hitting SHIFT-F10 during Setup
Requesting Gravatar...
great nice work....
Left by software solution on Jul 28, 2010 11:53 AM

# re: RTM of Vista keeps the useful trick of hitting SHIFT-F10 during Setup
Requesting Gravatar...
great nice work...........
Left by software solution on Jul 28, 2010 11:53 AM

# re: RTM of Vista keeps the useful trick of hitting SHIFT-F10 during Setup
Requesting Gravatar...
Doing pretty fine.
Left by tech with style on Jul 28, 2010 11:55 AM

# re: RTM of Vista keeps the useful trick of hitting SHIFT-F10 during Setup
Requesting Gravatar...
It is very clear that I should not abstain from itsaw on the news that the money they dumped at Shire was fake, to represent the money he had raised. GIt wasn't the actual money.
as much as humanlTWy possible. Though it is not so common, gobs of these jokers have trouble with weight loss. In this installment I will discuss some of these pink patches particulars and give
Left by tiffany on Aug 23, 2010 6:22 AM

Your comment:
 (will show your gravatar)


Copyright © Lorin Thwaits | Powered by: GeeksWithBlogs.net | Join free