Jump to content

Debut unattended W7 setup woes


Recommended Posts

Yes, Work and 3 won't go together! Doesn't match!

The NetworkLocation for "Work" the value is "2"!

And NetworkLocation for "Other" (like you want) is "3"!

Of course if the value isn't correct, you get an error (or the window, for select the NetworkLocation)!

Yes, I've seen that WSIM don't display an error for that!!

Edited by myselfidem
Link to comment
Share on other sites


Mikka!

You can make these changes inside your "Autounattend.xml":

I think, at this time you don't need "RunAsynchronousCommand". Try without this:

<RunAsynchronous>

<RunAsynchronousCommand wcm:action="add">

<Description>Netzwerkadresse festlegen verhindern</Description>

<Order>1</Order>

<Path>wscript %windir%\Setup\Scripts\nw_location_workaround.vbs</Path>

</RunAsynchronousCommand>

</RunAsynchronous>

Before correct these values, to see if it's OK:

To adapt to your needs= "Work"="2" or "Other"="3".

<OOBE>

<HideEULAPage>true</HideEULAPage>

<HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>

<NetworkLocation>Other</NetworkLocation>

<ProtectYourPC>3</ProtectYourPC>

</OOBE>

<UserAccounts>

<LocalAccounts>

<LocalAccount wcm:action="add">

<Password>

<PlainText>true</PlainText>

<Value>12345</Value>

</Password>

<Group>Administratoren</Group>

<Name>Your Name</Name>

</LocalAccount>

</LocalAccounts>

</UserAccounts>

<UserData>

<AcceptEula>true</AcceptEula>

<FullName>Your Full name</FullName>

Regards

Edited by myselfidem
Link to comment
Share on other sites

Yes, Work and 3 won't go together! Doesn't match!

The NetworkLocation for "Work" the value is "2"!

And NetworkLocation for "Other" (like you want) is "3"!

Of course if the value isn't correct, you get an error (or the window, for select the NetworkLocation)!

Yes, I've seen that WSIM don't display an error for that!!

That is because NetworkLocation and ProtectYourPC are not the same thing!

NetworkLocation: choose firewall setting (if you boot to audit mode, always select Other)

ProtectYourPC: choose your Automatic Updates setting

http://technet.microsoft.com/en-us/library/cc749278%28WS.10%29.aspx

The levels do not specifically match up to the Automatic Updates you see from Windows, but does match up to the OOBE screen which only shows you 3 options.

1 = install updates

2 = download updates

3 = disable updates

Link to comment
Share on other sites

Thank you, myselfidem and Tripredacus.

In my opinion this is a catch and should be treated by WSIM.

And if errors might arise by omitting information like, for instance, RegisteredOwner, this must be checked by WSIM, too.

Link to comment
Share on other sites

Mikka!

You can have more help inside "Unattended Windows Setup Reference for Windows 7.chm"

FullName

FullName specifies the name of the end user.

Values

User_name

Specifies the name of the end user. User_name is a string with a maximum length of 63 characters.

This string type does not support empty elements. Do not create an empty value for this setting.

Rgards

Edited by myselfidem
Link to comment
Share on other sites

Mikka!

If you want use DISM yourself, you can have some help here:

DiverPacks.net

Enable or Disable a feature from a Wim Image using DISM

Reference.chm for Windows 7

Windows 7 Packages

If a package is enabled, all of its parent hierarchy must also be enabled. To view the entire hierarchy, see the individual package topics.

Use the command to enable or to disable the Windows feature in a Command Prompt window. The command is case-sensitive.

As an example for Windows 7 Ultimate x86: Using DISM

If you have only one Image, use: /index:1

Use Command with Admin rights!

Browse to "Servicing\DISM" to your needs: "x86\Servicing\Dism.exe" or "amd64\Sevicing\Dism.exe"

Example with x86!

-----------------

First create an temp folder: Example here: "C:\test"

Mount your Image with DISM:

C:\Program Files\Windows AIK\Tools\x86\Servicing>Dism.exe /mount-wim /wimfile:"C:\Win7\sources\install.wim" /index:5 /mountdir:"C:\test"

Get Packages Info about your Image:

C:\Program Files\Windows AIK\Tools\x86\Servicing>Dism.exe /Image:C:\test /Get-Packages >C:\Packages.txt

Get Features Info about your Image:

C:\Program Files\Windows AIK\Tools\x86\Servicing>Dism.exe /Image:C:\test /Get-Features /Format:List >C:\Features.txt

Example for Disable-Feature:


C:\Program Files\Windows AIK\Tools\x86\Servicing>Dism.exe /Image:C:\test /Disable-Feature /?

Disable "InboxGames" Feature:

C:\Program Files\Windows AIK\Tools\x86\Servicing>Dism.exe /Image:C:\test /Disable-Feature /FeatureName:InboxGames

Example: Remove Package:

C:\Program Files\Windows AIK\Tools\x86\Servicing>Dism.exe /Image:C:\test /Remove-Package /?

Unmount and Commit your Image:


C:\Program Files\Windows AIK\Tools\x86\Servicing>Dism.exe /unmount-wim /mountdir:"C:\test" /commit

Regards

*Edit: I will make an French guide using DISM for Windows 7! ;)

Edited by myselfidem
Link to comment
Share on other sites

*Edit: I will make an French guide using DISM for Windows 7! ;)

I don't mind reading francophone tutorials as long as they're good. ;)

In the meantime I injected some registry settings into the install.wim, which results in a much better default user account. I have to get used to the DISM Tool, but will first try out your given examples.

Thanks a bunch for your help!

Greetings,

Mikka

Link to comment
Share on other sites

What's the main audience?

It's quite colourful, with many font types and highlighting, therefore I ask.

Anyhow, I find it easy to follow.

Thanks for your advice! :rolleyes:

The main audiance is useful for me, at first, because sometimes I forgot some tweaks, tips and commands. It's like a book, you know!

In six months, I'd be happy to find an explanation that I have forgotten, do not waste time searching and give help for few people interested!

Believe me, I read my owns tutorials when I need to refresh my memory!!

Yes, I like colors! :rolleyes:

Btw, how did you find to integrate "HKCU.reg" or reg files, inside wim image?

With: reg.exe load and DISM?

Regards

Edited by myselfidem
Link to comment
Share on other sites

Btw, how did you find to integrate "HKCU.reg" or reg files, inside wim image?

With: reg.exe load and DISM?

Basically, I followed the instructions given in this blog article.

For a start I didn't cram all my settings into it, so I selected a few that I inserted by hand via Regedit.

Of course, as this turned out to work flawlessly, I ponder on some semi-automatic solution for importing prepared reg files instead of manual manipulations, allowing to easily apply a HKCU.reg and a HKLM.reg.

This is a by far better practice than messing around with an existing default user profile in an unknown and potentially unstable state.

By the way, maybe an addition for your tutorial:

I noticed that for unknown reasons unmounting of the folder might throw an irritating error (the commit action itself succeeds, though).

Got this twice yesterday. My install.wim had been successfully modified and performed well in the VM.

Another issue, which came into my mind is the DISM Tool™ of Mr Jinje:

Currently it has one annoying bug occuring on non-english Windows 7 installations leading to an error when opening the W7 setup files directory. As a workaround the developer stated that one should copy the install.wim to the partition's root, for instance C:\, to circumvent it. Unfortunately this erroneous behaviour is not documented yet ...

Link to comment
Share on other sites

Btw, how did you find to integrate "HKCU.reg" or reg files, inside wim image?

With: reg.exe load and DISM?

Basically, I followed the instructions given in this blog article.

By the way, maybe an addition for your tutorial:

I noticed that for unknown reasons unmounting of the folder might throw an irritating error (the commit action itself succeeds, though).

Got this twice yesterday. My install.wim had been successfully modified and performed well in the VM.

Thanks for your informations! :rolleyes:

About "unmounting", maybe you've used the commands inside my last post! I've made an error inside and I've fixed that! Sorry!

I've no trouble with the correct path!

Examples for Windows 7 Ultimate.

The correct path is for an computer with OS x86 based:

C:\Program Files\Windows AIK\Tools\x86\Servicing>Dism.exe /mount-wim /wimfile:"C:\Win7\sources\install.wim" /index:5 /mountdir:"C:\test"

I've forgottten to write correctly and it's an error (fixed inside my last post) : it's not the good one for DISM: missing the correct path for x86 or amd64

C:\Program Files\Windows AIK\Tools\Servicing>Dism.exe /mount-wim /wimfile:"C:\Win7\sources\install.wim" /index:5 /mountdir:"C:\test"

Change to your needs for amd64 with an computer 64-bits:

C:\Program Files\Windows AIK\Tools\amd64\Servicing>Dism.exe /mount-wim /wimfile:"C:\Win7\sources\install.wim" /index:4 /mountdir:"C:\test"

And "unmounting" and "commit":

C:\Program Files\Windows AIK\Tools\amd64\Servicing>Dism.exe /unmount-wim /mountdir:"C:\test" /commit

If we don't want apply the changes (discard):

C:\Program Files\Windows AIK\Tools\amd64\Servicing>Dism.exe /unmount-wim /mountdir:"C:\test" /discard

I will add more informations inside the French guide for DISM.

All is fine for me and I've no errors with the correct path!

Maybe it's needed different parameters (Like SysWOW64) for computer based 64-bits!

I will make some search about this question!

I will make tests with my computer 64-bits based and I tell you later!

Thanks!

Regards

Edited by myselfidem
Link to comment
Share on other sites

Mikka!

I've made the test and I've disable 3 Features with DISM, on my computer 64-bits based, and all is OK!

No errors "Unmounting" and "commit" with the correct "mounted" path for DISM:

Example with Windows 7 Ultimate 64-bits:

C:\Program Files\Windows AIK\Tools\amd64\Servicing>Dism.exe /mount-wim /wimfile:"C:\Win7\sources\install.wim" /index:4 /mountdir:"C:\test"

If there is an error it's needed to Dismount and remount the Image you want!

You can see informations inside your computer: "Windows\Logs\DISM\dism.log"

Regards

*Edit: What is your OS installed on your Computer to create your Windows 7 Professional unattended?

Edited by myselfidem
Link to comment
Share on other sites

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...