Jump to content

Recommended Posts

Posted

I've just spent 45 minutes looking through the forum and cannot find out 100% how the following can be done:

After an unattended install is complete, how can I get sysprep to run with a factory reseal.

Here's what I have up this this point:

Under Runonce.cmd:

@echo off
IF EXIST D:\CD.txt set CDROM=D:
IF EXIST E:\CD.txt set CDROM=E:
IF EXIST F:\CD.txt set CDROM=F:
IF EXIST G:\CD.txt set CDROM=G:
IF EXIST H:\CD.txt set CDROM=H:
IF EXIST I:\CD.txt set CDROM=I:
IF EXIST J:\CD.txt set CDROM=J:


SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

REG ADD %KEY% /V TITLE /D "Installing Applications" /f

REG ADD %KEY%\053 /VE /D ".NET Framework 1.1" /f
REG ADD %KEY%\053 /V 1 /D "%CDROM%\Software\NetFramework\netfxsp1.exe" /f

REG ADD %KEY%\030 /VE /D "Windows Media Player 10" /f
REG ADD %KEY%\030 /V 1 /D "%CDROM%\Software\WMP10\MP10Setup.exe /q:A /c:\"setup_wm.exe /Q /R:N /DisallowSystemRestore\"" /f


REG ADD %KEY%\125 /VE /D "Sysprep Resealing and Shutdown" /f
REG ADD %KEY%\125 /V 1 /D "%CDROM%\Software\sysprep\sysprep.cmd" /f

EXIT

Then under sysprep.cmd I have:

cmdow @ /HID
sysprep -reseal -reboot

EXIT

It's not working. Can anyone tell me exactly how I can run sysprep from the unattended install CD and have it go into reseal so the user DOES have to enter in the product key, name etc.

Thanks


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...