Jump to content

Recommended Posts

Posted (edited)

Hello everone,

I've been looking for a way to start WPI after an unattended installation of windows 7. I used the blog of cluberti to do it. This is what i've got so far. Windows 7 is fully unattended installed and WPI is running like a charm :) i've tested them both separately. My problem is that WPI won't start. After reading and searching i can't seem to find it, probely me :(. So this is my code that i created with MDT2010. I copied the xml directly its easier.

                <RunSynchronousCommand wcm:action="add">
<Credentials>
<Domain>.</Domain>
<Password>user123</Password>
<Username>administrator</Username>
</Credentials>
<Order>4</Order>
<Path>cmd /c "FOR %i IN (C D E F G H I J K L N M O P Q R S T U V W X Y Z) DO IF EXIST %i:\WPI\WPItest.txt SETX AppzRoot %i: -m"</Path>
<WillReboot>Never</WillReboot>
<Description>SetCdromDrive</Description>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Credentials>
<Password>user123</Password>
<Username>administrator</Username>
<Domain>.</Domain>
</Credentials>
<Order>5</Order>
<Path>cmd /c %AppzRoot%\WPI\WPI.hta /sAll /rs</Path>
<Description>start WPI</Description>
</RunSynchronousCommand>

after the installtion i saw that it ísn't started so i checked %AppzRoot% and is was created as D: which is correct, so he should start D:\WPI\WPI.hta but het didn't. What should i do? Should i use firstlogoncommand or is RunSynchronousCommand ok?

Edited by Monkeymen

Posted (edited)

I already tried that one. I created an deployment with MDT2010 and WAIK 7 so my root looks a bit different. It only contains:

[image link snipped]

I also tried to place it in "\Deploy\$OEM$\etc...", but that didn't work either. Any other suggestions?

Edited by cluberti
Use your own images, don't link to ones from my server.
Posted

Put your $OEM$ folder under your Images\install-() folder.

to start WPI i call it from firstlogoncommand:

<FirstLogonCommands>

<SynchronousCommand wcm:action="add">

<CommandLine>\\IC-DEPLOY\Clients\Install\wpi.cmd</CommandLine>

<Description>WPI</Description>

<Order>1</Order>

<RequiresUserInput>true</RequiresUserInput>

</SynchronousCommand>

</FirstLogonCommands>

Works perfect.

by the way, have you managed to get rid of the choicebox for country, timezone and keyb. ?? i can unattended make the selections, but box is still showing and I have to click next. (sorry for being off topic)

Posted (edited)

Ok i will try that :), you have a share? I haven't got a path like that? But i see you did it in FirstLogonCommands.

You can get ride of the boxes with customsettings.ini and bootstrap.ini here are mine.

This link on technet helped me a lot http://technet.microsoft.com/en-us/library/bb490304.aspx

In help is a part cold "Providing Properties for Skipped Windows Deployment Wizard Pages" you can see what you need to set if you skip something.

The one below is fully unattended, next time open a new topic, so things will will go the proper way.

bootstrap.ini

[Settings]
Priority=Default

[Default]
_SMSTSOrgName=Monkey's unattended windows 7 x64 Ultimate
SkipBDDWelcome=YES

and cutomsettings.ini

[Settings]
Priority=Default
Properties=MyCustomProperty

[Default]
_SMSTSOrgName=Monkey's unattended windows 7 x64 Ultimate
OSInstall=Y
SkipAppsOnUpgrade=YES
SkipCapture=YES
SkipAdminPassword=YES
AdminPassword=user123
SkipProductKey=YES
SkipBDDWelcome=YES
SkipDeploymentType=YES
DeploymentType=NEWCOMPUTER
SkipComputerName=YES
OSDComputerName=THUIS_PC
SkipDomainMembership=YES
JoinWorkgroup=WORKGROUP
SkipUserData=YES
UserDataLocation=NONE
SkipLocaleSelection=YES
KeyboardLocale=nl-nl;0413;00000413
UserLocale=nl-nl
UILanguage=en-us
SkipTimeZone=YES
TimeZone=110
TimeZoneName=W. Europe Standard Time
SkipBitLocker=YES
BDEInstallSuppress=YES
SkipSummary=YES
SkipTaskSequence=YES
BuildID=001
SkipFinalSummary=YES

Edited by Monkeymen
Posted

Ok i found the solution. :)

In the RunSynchronousCommand i created this command. Be sure that there is a root\WPI\WPItest.txt file, there isn't anything in it.

				<RunSynchronousCommand wcm:action="add">
<Credentials>
<Domain>.</Domain>
<Password>m2rl33n</Password>
<Username>administrator</Username>
</Credentials>
<Order>4</Order>
<Path>cmd /c "FOR %i IN (C D E F G H I J K L N M O P Q R S T U V W X Y Z) DO IF EXIST %i:\WPI\WPItest.txt SETX AppzRoot %i: -m"</Path>
<WillReboot>Never</WillReboot>
<Description>SetCdromDrive</Description>
</RunSynchronousCommand>

then i created this in FirstLogonCommands

			<FirstLogonCommands>
<SynchronousCommand wcm:action="add">
<CommandLine>%AppzRoot%\WPI\WPI.hta</CommandLine>
<Order>6</Order>
<Description>start WPI</Description>
<RequiresUserInput>true</RequiresUserInput>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<Order>5</Order>
<CommandLine>cmd /c reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkList\NewNetworks" /v NetworkList /t REG_MULTI_SZ /d "" /f</CommandLine>
<Description>weetniet</Description>
</SynchronousCommand>
</FirstLogonCommands>

The reg must be done before you call the WPI.hta and RequiresUserInput=true. That did the job for me :)

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

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