Windows 7 Sysprep met lokale accounts.

Pagina: 1
Acties:

Acties:
  • 0 Henk 'm!

  • Danielson
  • Registratie: Januari 2003
  • Laatst online: 11:09
Ik heb een vreemd probleem bij het syspreppen van Windows 7 machines waar ik niet uit kom. Als ik een lokale gebruiker aanmaak voordat ik de machine sysprep, dan werkt dit account perfect.

Maar als de machine eenmaal gesysprept is dan gebeuren er vreemde dingen met de lokale accounts; b.v. de event viewer crasht, applicaties zijn niet te installeren, een groot deel van de al geïnstalleerde applicaties crashen.

Dit probleem heb ik met Windows 7 Professional, Windows 7 Enterprise en Windows 7 Embedded, allemaal met SP1

Voor het syspreppen gebruik ik het volgende commando: sysprep.exe /generalize /oobe /schutdown /unattend:C:\Windows\System32\Sysprep\Sysprep.xml

De lokale gebruiker is in dit geval: "Gebruiker"

Dit is de inhoud van Sysprep.xml:

code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:ew="urn:schemas-microsoft-com:embedded.unattend.internal.v1">
    <servicing>
        <package action="configure">
            <assemblyIdentity name="Microsoft-Windows-EmbeddedEdition" version="6.1.7601.17514" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" />
            <ew:packageInfo releaseType="Product" customInfoVersion="1.0" />
        </package>
    </servicing>
    <settings pass="generalize">
        <component name="Microsoft-Windows-PnpSysprep" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <PersistAllDeviceInstalls>true</PersistAllDeviceInstalls>
            <DoNotCleanUpNonPresentDevices>true</DoNotCleanUpNonPresentDevices>
        </component>
        <component name="Microsoft-Windows-Security-SPP" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <SkipRearm>1</SkipRearm>
        </component>
    </settings>
    <settings pass="specialize">
        <component name="Microsoft-Windows-Deployment" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <RunSynchronous>
                <RunSynchronousCommand wcm:action="add">
                    <Order>1</Order>
                    <Path>net user administrator /active:yes</Path>
                </RunSynchronousCommand>
            </RunSynchronous>
        </component>
        <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <ComputerName>*</ComputerName>
            <ShowWindowsLive>false</ShowWindowsLive>
            <RegisteredOrganization>Bedrijf</RegisteredOrganization>
            <DisableAutoDaylightTimeSet>false</DisableAutoDaylightTimeSet>
            <TimeZone>W. Europe Standard Time</TimeZone>
        </component>
    </settings>
    <settings pass="oobeSystem">
        <component name="Microsoft-Windows-Embedded-Core-Settings" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <HideEvaluationWarning>1</HideEvaluationWarning>
        </component>
        <component name="Microsoft-Windows-International-Core" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <InputLocale>nl-us</InputLocale>
            <SystemLocale>nl</SystemLocale>
            <UILanguage>en-us</UILanguage>
            <UserLocale>nl</UserLocale>
        </component>
        <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <AutoLogon>
                <Password>
                    <Value>VwB5AHMAZQAjADEAMgAzAFAAYQBzAHMAdwBvAHIAZAA=</Value>
                    <PlainText>false</PlainText>
                </Password>
                <Enabled>true</Enabled>
                <Username>Administrator</Username>
                <LogonCount>5</LogonCount>
            </AutoLogon>
            <OOBE>
                <NetworkLocation>Work</NetworkLocation>
                <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
                <ProtectYourPC>1</ProtectYourPC>
                <HideEULAPage>true</HideEULAPage>
            </OOBE>
            <UserAccounts>
                <AdministratorPassword>
                    <Value>VwB5AHMAZQAjADEAMgAzAEEAZABtAGkAbgBpAHMAdAByAGEAdABvAHIAUABhAHMAcwB3AG8AcgBkAA==</Value>
                    <PlainText>false</PlainText>
                </AdministratorPassword>
                <LocalAccounts>
                    <LocalAccount wcm:action="add">
                        <Password>
                            <Value>VwB5AHMAZQAjADEAMgAzAFAAYQBzAHMAdwBvAHIAZAA=</Value>
                            <PlainText>false</PlainText>
                        </Password>
                        <Name>Gebruiker</Name>
                        <DisplayName>Gebruiker</DisplayName>
                        <Description>Default User</Description>
                        <Group>Administrators</Group>
                    </LocalAccount>
                </LocalAccounts>
            </UserAccounts>
            <RegisteredOrganization>Bedrijf</RegisteredOrganization>
            <RegisteredOwner>Afdeling</RegisteredOwner>
        </component>
    </settings>
    <ew:answerFileInfo distributionSharePath="C:\Program Files\Windows Embedded Standard 7\DSSP1" footprint="576716800" ecoreFootprint="576716800" />
</unattend>

Acties:
  • 0 Henk 'm!

  • DukeBox
  • Registratie: April 2000
  • Laatst online: 11:14

DukeBox

loves wheat smoothies

Het is hoe dan ook niet verstandig accounts aan te maken "voor" sysprep.
Waarom maak je deze niet aan achteraf middels de after scripting of policies.

Duct tape can't fix stupid, but it can muffle the sound.


Acties:
  • 0 Henk 'm!

  • Danielson
  • Registratie: Januari 2003
  • Laatst online: 11:09
Omdat je er dan nooit 100% controle over hebt hoe het account eruit komt te zien.

Acties:
  • 0 Henk 'm!

  • Maranello
  • Registratie: Maart 2006
  • Laatst online: 27-05 15:16
Danielson schreef op vrijdag 27 juli 2012 @ 14:18:
Omdat je er dan nooit 100% controle over hebt hoe het account eruit komt te zien.
Wil je echt specifieke gebruikers hebben of gaat het om accountinstellingen? In dat laatste geval kan je namelijk de Default account configureren. De gebruikers die je daarna (na de Sysprep) aanmaakt gebruiken dit account als template voor hun instellingen. Zie: Customize the default local user profile when preparing an image of Windows

Acties:
  • 0 Henk 'm!

  • Danielson
  • Registratie: Januari 2003
  • Laatst online: 11:09
Daar ben ik allemaal bekend mee, maar in dit geval gaat het om een Wyse thin-client, deze werkt alleen met lokale accounts.

Out of the box werkt het bij Wyse ook zo, je hebt twee gebruikers; Administrator en User. Alleen is standaard het User account compleet dichtgetimmerd.

Zodoende maak ik extra account: "Gebruiker" aan, onder dit account configureer ik alle software. Maar hier gaat het dus mis.

Acties:
  • 0 Henk 'm!

  • Danielson
  • Registratie: Januari 2003
  • Laatst online: 11:09
Iemand nog ideeën?
Pagina: 1