splendid Posted August 13, 2004 Share Posted August 13, 2004 I run Sysprep after an unattended Windows XP installation.Can Sysprep be automated? Link to comment Share on other sites More sharing options...
peachy Posted August 13, 2004 Share Posted August 13, 2004 Yes. It has command line switches. Just run it from a batch file or RunOnceEx. e.g. sysprep -mini -reseal -reboot would be all you needed. Link to comment Share on other sites More sharing options...
splendid Posted August 13, 2004 Author Share Posted August 13, 2004 Where do I put that batch file or RunOnceEx? Link to comment Share on other sites More sharing options...
splendid Posted August 16, 2004 Author Share Posted August 16, 2004 I created a batch file “Sysprep.cmd” and put it in “$OEM$\$$\sysprep” folder. My winnt.sif has[GuiRunOnce]%Systemdrive\Sysprep\Sysprep.cmdSysprep.cmd contains Sysprep –factory –quietWhen I installed Windows, the batch file ran at T12 minute and gave an error message“Invalid combination of parameters”I used Sysprep without any switch and got the same message.Any suggestion or recommendation? Link to comment Share on other sites More sharing options...
peachy Posted August 16, 2004 Share Posted August 16, 2004 Run the batch file from RunOnceEx. Make it the last item to process.Also, I will have to double check, but did you also create a sysprep.inf file and put it in the %systemdrive%\sysprep folder? I believe you may need to create one if you want a completely unattended sysprep deployment. It's similar to an unattend text file. You can use setupmgr to create this. Look in the support\tools\deploy.cab for setupmgr if you've never used it before. Link to comment Share on other sites More sharing options...
ssrobzoom Posted August 16, 2004 Share Posted August 16, 2004 Can sysprep be run handsoff .... everytime I run mine, I have a minisetup to appear. I have to enter in the product id, machine name , user name etc. ... How can I make it handsoff from boot to desktop?thanks for any suggestions. Link to comment Share on other sites More sharing options...
splendid Posted August 16, 2004 Author Share Posted August 16, 2004 If I understand correctly, the RunOnceEx executes at T12 minute not at the end of Windows installation.http://unattended.msfn.org/xp/runonceex.htm Link to comment Share on other sites More sharing options...
peachy Posted August 16, 2004 Share Posted August 16, 2004 Can sysprep be run handsoff .... everytime I run mine, I have a minisetup to appear. I have to enter in the product id, machine name , user name etc. ... How can I make it handsoff from boot to desktop?thanks for any suggestions.You will need to add a sysprep.inf file that contains your product key and specifies fullunattended setup.;SetupMgrTag[Unattended] UnattendMode = FullUnattended NoWaitAfterTextMode = 1 NoWaitAfterGUIMode = 1 OemSkipEula=Yes InstallFilesPath=C:\sysprep\i386[GuiUnattended] AdminPassword="xxxx" EncryptedAdminPassword=NO OEMSkipRegional=1 TimeZone=35 OemSkipWelcome=1[UserData] ProductKey=xxxx-xxxxx-xxxxx-xxxxx-xxxxx FullName="Your Name" OrgName="Your Company" ComputerName=*[Display] BitsPerPel=32 Xresolution=800 YResolution=600 Vrefresh=75[TapiLocation] CountryCode=107 Dialing=Tone AreaCode=705[SetupMgr] DistFolder=C:\sysprep\i386 DistShare=windist[Identification] JoinWorkgroup=WORKGROUP[Networking] InstallDefaultComponents=Yes[sysprepcleanup] Link to comment Share on other sites More sharing options...
peachy Posted August 16, 2004 Share Posted August 16, 2004 If I understand correctly, the RunOnceEx executes at T12 minute not at the end of Windows installation.http://unattended.msfn.org/xp/runonceex.htmRunOnceEx.cmd runs at T-12 when it is loaded by cmdlines.txt and places the registry keys there for the actual RunOnceEx commands. The commands run after the first logon. Thus, if you add a batch file to run sysprep at that point, Windows will have been installed. The keys in RunOnceEx should not be processed at T-12, only placed in the registry. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now