Re: [Unattended-Dev] Time to think on Win7

Doug <[email protected]> Sat, 3 Nov 2012 11:50:34 -0400
Newsgroups gmane.comp.windows.unattended.devel
Message-ID <CAB0fyJB4DCzm+yJMhOLgP+xZom19DGhvGuui93TFXP_Nmwn=tw@mail.gmail.com>
--===============0683916291864016319==
Content-Type: multipart/alternative; boundary=14dae93404c57dd8f904cd9936b0

--14dae93404c57dd8f904cd9936b0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

I have a Win7 unattended going.  Well, kind of.

I boot from a USB drive with an unattended xml file on it, which does the
basic install and then starts a modified "apps only" type of install after
windows is done.

I have to create/modify the unattended xml by hand every time - it has my
computer name, domain, etc, as well as the main unattended bat file tor
run.  I also create a user-pc specific .bat file that contains all of the
todos for the user and pc type.

It's been a couple of years since I set it up, and I know I ran into
several problems, mainly around running scripts from a share that was in my
windows domain and a computer that wasn't - or vice versa.  I created a
special account in my domain to do the install with.  And I ended up
breaking the pre.bat into two parts with perl being installed between
them.

That part of my unattended xml looks like:

<FirstLogonCommands>
      <SynchronousCommand wcm:action=3D"add">
          <Order>1</Order>
          <Description>Running appsonly</Description>
          <CommandLine>cmd /C start /wait net use Z: \\ntinstall\install
mypass /user:mydomain\myuser</CommandLine>
      </SynchronousCommand>
      <SynchronousCommand wcm:action=3D"add">
          <Order>2</Order>
          <Description>Running appsonly</Description>
          <CommandLine>cmd /C z:\bin\pre1.bat</CommandLine>
      </SynchronousCommand>
      <SynchronousCommand wcm:action=3D"add">
          <Order>3</Order>
          <Description>Running appsonly</Description>
          <CommandLine>cmd /C Z:\scripts\perl.bat</CommandLine>
      </SynchronousCommand>
      <SynchronousCommand wcm:action=3D"add">
          <Order>4</Order>
          <Description>Running appsonly</Description>
          <CommandLine>cmd /C z:\bin\pre2.bat</CommandLine>
      </SynchronousCommand>
      <SynchronousCommand wcm:action=3D"add">
          <Order>5</Order>
          <Description>Running appsonly</Description>
          <CommandLine>cmd /C z:\bin\todo.plUserSpecificFile.bat</CommandLi=
ne>
      </SynchronousCommand>
      <SynchronousCommand wcm:action=3D"add">
          <Order>6</Order>
          <Description>Running appsonly</Description>
          <CommandLine>cmd /C z:\bin\post.bat</CommandLine>
      </SynchronousCommand>
</FirstLogonCommands>

I tried the WinPE boot then install from a network share yesterday for the
first time, and it worked great.  No PXE boot is required.
Here's my thoughts on how this could work:

User has to make a WinPE boot disk and boot from it.
Map \\ntinstall\install to Z:
>From the PE environment run a script from Z: that builds an unattended xml
file based on user input and saves it somewhere on Z:
Run setup from the Z: drive using the unattended that was just built.

I have a volume license and used that to install from.  I don't know if
there are any differences that would stop this approach with OEM or retail
media.

I'm not very experienced with windows scripting, and but I imagine that
several of the things I do in the unattended (join domain, set local
admins, rename pc) could be done after the install via todos.

Thoughts?

Doug



On Mon, Oct 1, 2012 at 4:04 AM, Johan Ho <[email protected]> wrote:

> Den 21.09.12 02:34, skrev Juanjo Pablos:
> > Hi,
> > I just saw that win7 had become N=BA1 in the operations Systems market
> share.
> >
> http://marketshare.hitslink.com/operating-system-market-share.aspx?qprid=
=3D10
> >
> > I do not see myself with enough time to accomplish this task. So I beg
> > for some help on this matter.
> >
> >
> >
> -------------------------------------------------------------------------=
-----
> > Got visibility?
> > Most devs has no idea what their production app looks like.
> > Find out how fast your code is with AppDynamics Lite.
> > http://ad.doubleclick.net/clk;262219671;13503038;y?
> > http://info.appdynamics.com/FreeJavaPerformanceDownload.html
> > _______________________________________________
> > unattended-devel mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/unattended-devel
> >
>
> I also recently started trying to get unattended installation of Windows
> 7 to work. I found this old post on the unattended info mailing list:
>
>
> http://www.mail-archive.com/[email protected]/msg0911=
6.html
>
> I got as far getting the WinPE 3.0 boot image up and running, but I need
> to focus on other projects right now. Anyways, it did sound like they
> got it to work.
>
> Johan Ho
>
>
> -------------------------------------------------------------------------=
-----
> Got visibility?
> Most devs has no idea what their production app looks like.
> Find out how fast your code is with AppDynamics Lite.
> http://ad.doubleclick.net/clk;262219671;13503038;y?
> http://info.appdynamics.com/FreeJavaPerformanceDownload.html
> _______________________________________________
> unattended-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/unattended-devel
>

--14dae93404c57dd8f904cd9936b0
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

I have a Win7 unattended going.=A0 Well, kind of.<br><br>I boot from a USB =
drive with an unattended xml file on it, which does the basic install and t=
hen starts a modified &quot;apps only&quot; type of install after windows i=
s done.<br>
<br>I have to create/modify the unattended xml by hand every time - it has =
my computer name, domain, etc, as well as the main unattended bat file tor =
run.=A0 I also create a user-pc specific .bat file that contains all of the=
 todos for the user and pc type.<br>
<br>It&#39;s been a couple of years since I set it up, and I know I ran int=
o several problems, mainly around running scripts from a share that was in =
my windows domain and a computer that wasn&#39;t - or vice versa.=A0 I crea=
ted a special account in my domain to do the install with.=A0 And I ended u=
p breaking the pre.bat into two parts with perl being installed between the=
m.=A0 <br>
<br>That part of my unattended xml looks like:<br><span style=3D"font-famil=
y:courier new,monospace"><br>&lt;FirstLogonCommands&gt;<br>=A0=A0=A0=A0=A0 =
&lt;SynchronousCommand wcm:action=3D&quot;add&quot;&gt;<br>=A0=A0=A0=A0=A0=
=A0=A0=A0=A0 &lt;Order&gt;1&lt;/Order&gt;<br>
=A0=A0=A0=A0=A0=A0=A0=A0=A0 &lt;Description&gt;Running appsonly&lt;/Descrip=
tion&gt;<br>=A0=A0=A0=A0=A0=A0=A0=A0=A0 &lt;CommandLine&gt;cmd /C start /wa=
it net use Z: \\ntinstall\install mypass /user:mydomain\myuser&lt;/CommandL=
ine&gt;<br>=A0=A0=A0=A0=A0 &lt;/SynchronousCommand&gt;<br>
=A0=A0=A0=A0=A0 &lt;SynchronousCommand wcm:action=3D&quot;add&quot;&gt;<br>=
=A0=A0=A0=A0=A0=A0=A0=A0=A0 &lt;Order&gt;2&lt;/Order&gt;<br>=A0=A0=A0=A0=A0=
=A0=A0=A0=A0 &lt;Description&gt;Running appsonly&lt;/Description&gt;<br>=A0=
=A0=A0=A0=A0=A0=A0=A0=A0 &lt;CommandLine&gt;cmd /C z:\bin\pre1.bat&lt;/Comm=
andLine&gt;<br>
=A0=A0=A0=A0=A0 &lt;/SynchronousCommand&gt;<br>=A0=A0=A0=A0=A0 &lt;Synchron=
ousCommand wcm:action=3D&quot;add&quot;&gt;<br>=A0=A0=A0=A0=A0=A0=A0=A0=A0 =
&lt;Order&gt;3&lt;/Order&gt;<br>=A0=A0=A0=A0=A0=A0=A0=A0=A0 &lt;Description=
&gt;Running appsonly&lt;/Description&gt;<br>=A0=A0=A0=A0=A0=A0=A0=A0=A0 &lt=
;CommandLine&gt;cmd /C Z:\scripts\perl.bat&lt;/CommandLine&gt;<br>
=A0=A0=A0=A0=A0 &lt;/SynchronousCommand&gt;<br>=A0=A0=A0=A0=A0 &lt;Synchron=
ousCommand wcm:action=3D&quot;add&quot;&gt;<br>=A0=A0=A0=A0=A0=A0=A0=A0=A0 =
&lt;Order&gt;4&lt;/Order&gt;<br>=A0=A0=A0=A0=A0=A0=A0=A0=A0 &lt;Description=
&gt;Running appsonly&lt;/Description&gt;<br>=A0=A0=A0=A0=A0=A0=A0=A0=A0 &lt=
;CommandLine&gt;cmd /C z:\bin\pre2.bat&lt;/CommandLine&gt;<br>
=A0=A0=A0=A0=A0 &lt;/SynchronousCommand&gt;<br>=A0=A0=A0=A0=A0 &lt;Synchron=
ousCommand wcm:action=3D&quot;add&quot;&gt;<br>=A0=A0=A0=A0=A0=A0=A0=A0=A0 =
&lt;Order&gt;5&lt;/Order&gt;<br>=A0=A0=A0=A0=A0=A0=A0=A0=A0 &lt;Description=
&gt;Running appsonly&lt;/Description&gt;<br>=A0=A0=A0=A0=A0=A0=A0=A0=A0 &lt=
;CommandLine&gt;cmd /C z:\bin\<a href=3D"http://todo.pl">todo.pl</a> UserSp=
ecificFile.bat&lt;/CommandLine&gt;<br>
=A0=A0=A0=A0=A0 &lt;/SynchronousCommand&gt;<br>=A0=A0=A0=A0=A0 &lt;Synchron=
ousCommand wcm:action=3D&quot;add&quot;&gt;<br>=A0=A0=A0=A0=A0=A0=A0=A0=A0 =
&lt;Order&gt;6&lt;/Order&gt;<br>=A0=A0=A0=A0=A0=A0=A0=A0=A0 &lt;Description=
&gt;Running appsonly&lt;/Description&gt;<br>=A0=A0=A0=A0=A0=A0=A0=A0=A0 &lt=
;CommandLine&gt;cmd /C z:\bin\post.bat&lt;/CommandLine&gt;<br>
=A0=A0=A0=A0=A0 &lt;/SynchronousCommand&gt;<br>&lt;/FirstLogonCommands&gt;<=
/span><br>

<p class=3D"MsoNoSpacing"><span style=3D"font-size:9.0pt;font-family:&quot;=
Courier New&quot;"><span style></span></span>I tried the WinPE boot then in=
stall from a network share yesterday for the first time, and it worked grea=
t.=A0 No PXE boot is required.<br>
</p>Here&#39;s my thoughts on how this could work:<br><br>User has to make =
a WinPE boot disk and boot from it.=A0 <br>Map \\ntinstall\install to Z:<br=
>From the PE environment run a script from Z: that builds an unattended xml=
 file based on user input and saves it somewhere on Z:<br>
Run setup from the Z: drive using the unattended that was just built.<br><b=
r>I have a volume license and used that to install from.=A0 I don&#39;t kno=
w if there are any differences that would stop this approach with OEM or re=
tail media.<br>
<br>I&#39;m not very experienced with windows scripting, and but I imagine =
that several of the things I do in the unattended (join domain, set local a=
dmins, rename pc) could be done after the install via todos.=A0 <br><br>Tho=
ughts?<br>
<br>Doug<br><br><br><br><div class=3D"gmail_quote">On Mon, Oct 1, 2012 at 4=
:04 AM, Johan Ho <span dir=3D"ltr">&lt;<a href=3D"mailto:[email protected]" ta=
rget=3D"_blank">[email protected]</a>&gt;</span> wrote:<br><blockquote class=
=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padd=
ing-left:1ex">
Den 21.09.12 02:34, skrev Juanjo Pablos:<br>
<div><div class=3D"h5">&gt; Hi,<br>
&gt; I just saw that win7 had become N=BA1 in the operations Systems market=
 share.<br>
&gt; <a href=3D"http://marketshare.hitslink.com/operating-system-market-sha=
re.aspx?qprid=3D10" target=3D"_blank">http://marketshare.hitslink.com/opera=
ting-system-market-share.aspx?qprid=3D10</a><br>
&gt;<br>
&gt; I do not see myself with enough time to accomplish this task. So I beg=
<br>
&gt; for some help on this matter.<br>
&gt;<br>
&gt;<br>
&gt; ----------------------------------------------------------------------=
--------<br>
&gt; Got visibility?<br>
&gt; Most devs has no idea what their production app looks like.<br>
&gt; Find out how fast your code is with AppDynamics Lite.<br>
&gt; <a href=3D"http://ad.doubleclick.net/clk;262219671;13503038;y" target=
=3D"_blank">http://ad.doubleclick.net/clk;262219671;13503038;y</a>?<br>
&gt; <a href=3D"http://info.appdynamics.com/FreeJavaPerformanceDownload.htm=
l" target=3D"_blank">http://info.appdynamics.com/FreeJavaPerformanceDownloa=
d.html</a><br>
&gt; _______________________________________________<br>
&gt; unattended-devel mailing list<br>
&gt; <a href=3D"mailto:[email protected]">unattended-d=
[email protected]</a><br>
&gt; <a href=3D"https://lists.sourceforge.net/lists/listinfo/unattended-dev=
el" target=3D"_blank">https://lists.sourceforge.net/lists/listinfo/unattend=
ed-devel</a><br>
&gt;<br>
<br>
</div></div>I also recently started trying to get unattended installation o=
f Windows<br>
7 to work. I found this old post on the unattended info mailing list:<br>
<br>
<a href=3D"http://www.mail-archive.com/[email protected]=
t/msg09116.html" target=3D"_blank">http://www.mail-archive.com/unattended-i=
[email protected]/msg09116.html</a><br>
<br>
I got as far getting the WinPE 3.0 boot image up and running, but I need<br=
>
to focus on other projects right now. Anyways, it did sound like they<br>
got it to work.<br>
<span class=3D"HOEnZb"><font color=3D"#888888"><br>
Johan Ho<br>
</font></span><div class=3D"HOEnZb"><div class=3D"h5"><br>
---------------------------------------------------------------------------=
---<br>
Got visibility?<br>
Most devs has no idea what their production app looks like.<br>
Find out how fast your code is with AppDynamics Lite.<br>
<a href=3D"http://ad.doubleclick.net/clk;262219671;13503038;y" target=3D"_b=
lank">http://ad.doubleclick.net/clk;262219671;13503038;y</a>?<br>
<a href=3D"http://info.appdynamics.com/FreeJavaPerformanceDownload.html" ta=
rget=3D"_blank">http://info.appdynamics.com/FreeJavaPerformanceDownload.htm=
l</a><br>
_______________________________________________<br>
unattended-devel mailing list<br>
<a href=3D"mailto:[email protected]">unattended-devel@=
lists.sourceforge.net</a><br>
<a href=3D"https://lists.sourceforge.net/lists/listinfo/unattended-devel" t=
arget=3D"_blank">https://lists.sourceforge.net/lists/listinfo/unattended-de=
vel</a><br>
</div></div></blockquote></div><br>

--14dae93404c57dd8f904cd9936b0--


--===============0683916291864016319==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d
--===============0683916291864016319==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
unattended-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/unattended-devel

--===============0683916291864016319==--