Posts Tagged ‘.bat’

How to Capture and Deploy Image (.wim) Without Sysprep

Saturday, August 8th, 2009

If you are using WinPE 2.0 or WinPE 3.0 to capture your PC images (.wim files) and deploy them you have probably run into a little problem when trying to deploy an image of Vista or Windows 7 when not first running sysprep. The problem is that if you try to re-deploy an image of a nonsysprepped image of Vista or 7 that the BootMGR will be broken. Follow the steps below to fix this problem.

Microsoft Windows 7 Icon

Microsoft Windows 7 Icon

Step #1

I am assuming you have captured your image already and are ready for deployment. Go ahead and boot up your image deployment software (WinPE 2.0 or WinPE 3.0).

Step #2

In my other articles I describe how to use DiskPart and also avoiding the hidden partition before deploying a new image. I suggest reading them.

Step #3

After you have deployed your non-sysprepped image you need to run the following commands: (I have a batch file I use to do this).

bcdedit /set {default} device partition=c:
bcdedit /set {default} osdevice partition=c:
bcdedit /set {bootmgr} device partition=c:

Step #4

This will fix the BOOTMGR problem when deploying a non-syprepped image in Vista or 7. Enjoy!

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

Java 1.6.0.12 .msi package for distribution

Thursday, February 19th, 2009

Last msi package I tested today was Java. They also offer the msi package on their website. First you need to download their “offline installation” executable here. Then run the executable but don’t go through any additional prompts. Navigate to LocalAppData folder (the user’s Application Data folder). The location of the LocalAppData folder differs for each Windows platform.

* Windows Vista: C:\Users\\AppData\LocalLow\Sun\Java\jre1.6.0_12
* Windows XP: C:\Documents and Settings\\Local Settings\Application Data
* Windows 2000 C:\Documents and Settings\\Application Data

Copy the contents out of that folder to where you are keeping your msi distribution packages. The folder should look like the picture below without the install.bat which is my batch file.

Java Directory Contents

Java Directory Contents

Here is the command I used for a quiet install for multiple users:

msiexec /i "jre1.6.0_12.msi" SETMULTIUSER=1 /qb"

Works fine for multiple users under windows 2000, XP, and Vista. More MSI package instructions coming tomorrow along with some tutorials on ImageX/Sysprep for Vista.

Java 1.6 Logo

Java 1.6 Logo

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

Batch Script – Backup folder over network

Monday, January 19th, 2009

Here is a batch script I use to make a backup of my laptop. I have it backing up multiple folders, but here is example of backing up a laptop folder (My Thunderbird Profile) to a networked computer share. Will work both ways.

for /f “tokens=2-4 delims=/ ” %%g in (‘date /t’) do (
set mm=%%g
set dd=%%h
set yy=%%i
)

if exist “\\IPADDESS\c$\Users\Administrator\Documents\My Laptop Backups\%mm%-%dd%-%yy%” (
rd /S /Q “\\IPADDRESS\c$\Users\Administrator\Documents\My Laptop Backups\%mm%-%dd%-%yy%”
)

xcopy “C:\Users\Administrator\AppData\Roaming\Thunderbird\Profiles”
“\\IPADDRESS\c$\Users\Administrator\Documents\My Laptop Backups\%mm%-%dd%-%yy%” /s /i

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