Alan's Blog

"Yeah. I wrote a script that will do that."

Menu
  • About My Blog
Menu

Upgrading to Windows 7

Posted on November 9, 2011May 10, 2023 by Alan

We have been slow at work in our adoption of Windows 7.  I use my laptop as my primary workstation, and I had “cheated” when I upgraded from XP to Vista and then Window 7 32 bit.  My new OS was to be Windows 7 64 bit, and there is no upgrade path.  Before I kicked off the test “side by side” OSD load of Win7 64 on my laptop, I wanted to ensure that I did not lose anything.

I started by unencrypting my drive and then capturing it using disk2vhd from SysInternals.  I then checked that I had done okay by mounting the drive in the existing Windows 7 32 bit OS.  You can do this from the GUI in Disk Management.  It looked fine, and I went ahead with the OSD load.

Side by side was supposted to use the USMT to keep my settings.  It failed.  I tried to use the Easy Transfer Wizard to read the USMT cabs.  It failed.  I then decided that the clever thing to do was to open my VHD file as a VM in Windows Virtual PC.  It failed with “Unmountable_Boot_Volume.  Why?  There is a 127 GB size limit to VHD files.  Found a good article about it here.    Instead of starting from scratch, I found a utility, VHD Resizer to shrink the size of the volume.  But first, I had to mount the drive in Disk Management to move files off.

Having shrunk the VHD, it mounted without incident.  I used the Windows Easy Transfer Wizard to move my files from inside the VM to the host computer.  Note that the network transfer failed, and I had to put the CABS on a file share.

I did end up with a working laptop.  And now I hope to catch up by posting some of the scripts I have written.

Leave a Reply

You must be logged in to post a comment.

Search

Please Note

All the scripts are saved as .txt files. Newer files have a “View Script” button which will let you save or open a script in notepad. For earlier posts, the easiest way to download with IE is to right click on the link and use “Save Target As”. Rename file from Name_ext.txt to Name.ext.

To see a full post after searching, please click on the title.

PowerShell Scripts were written with version 3 or later.

https connections are supported.

All new users accounts must be approved, as are comments. Please be patient.  If you find a post error or a script which doesn’t work as expected, I appreciate being notified.  My email is my first name at the domain name, and you are welcome to contact me that way.

Tags

1E ACLS Active Directory ActiveDirectory ADSI Advanced Functions Audit Change Administrator Password COMObject Computer Groups DateTime Desktop DNS Excel FileScriptingObject Forms General GPO GPS Group Policy Hacks ISE Lockout logons NAV740 Nessus OU OU permissions Outlook Pick Folder Power PowerShell Powershell Scriptlets RDP SCCM schedule reboot Scripting Security Shell.Application user information VBA Windows Update WMI WordPress WPF

Categories

akaplan.com

  • Back to Home Page

Archives

Scripting Sites

  • A Big Pile of Small Things
  • Adam, the Automator
  • Art of the DBA
  • Ashley McGlone
  • Boe Prox
  • Carlo Mancini
  • DexterPOSH
  • Doug Finke
  • Jaap Brasser's Blog
  • JeffOps The Scripting Dutchman
  • Jonathan Medd's Blog
  • Keith Hill's Blog
  • LazyWinAdmin
  • Nana Lakshmanan
  • PowerShell Magazine
  • PowerShell Team Blog
  • PowerShell.org
  • PwrShell.net
  • Richard Siddaway's Blog
  • Ryan Yates' Blog
  • Skatterbrainz
  • The Lonely Administrator

SQL Site

  • Art of the DBA

Meta

  • Register
  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
©2025 Alan's Blog | Theme by SuperbThemes

Terms and Conditions - Privacy Policy