Link to home
Start Free TrialLog in
Avatar of IT Guy
IT Guy

asked on

how to enable admin accounts after Sysprep

i am not sure what i'm missing/doing wrong. i created my unattend file to add accounts after the PC's have been imaged however all my local accounts are disabled and i cannot log in

any help is appreciated


here is my xml file
<?xml version="1.0" encoding="UTF-8"?>


-<unattend xmlns="urn:schemas-microsoft-com:unattend">




-<settings pass="oobeSystem">




-<component language="neutral" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" versionScope="nonSxS" publicKeyToken="31bf3856ad364e35" processorArchitecture="amd64" name="Microsoft-Windows-International-Core">


<InputLocale>en-US</InputLocale>


<SystemLocale>en-US</SystemLocale>


<UILanguage>en-US</UILanguage>


<UILanguageFallback>en-US</UILanguageFallback>


<UserLocale>en-US</UserLocale>


</component>




-<component language="neutral" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" versionScope="nonSxS" publicKeyToken="31bf3856ad364e35" processorArchitecture="amd64" name="Microsoft-Windows-Shell-Setup">




-<OOBE>


<HideEULAPage>true</HideEULAPage>


<NetworkLocation>Work</NetworkLocation>


<ProtectYourPC>1</ProtectYourPC>


</OOBE>




-<UserAccounts>




-<LocalAccounts>




-<LocalAccount wcm:action="add">




-<Password>


<Value>ACGKFGBNFGBKDOIVNEOIFNWEFIOEW=</Value>


<PlainText>false</PlainText>


</Password>


<Description>Admin</Description>


<DisplayName>admin</DisplayName>


<Group>administrators</Group>


<Name>admin</Name>


</LocalAccount>




-<LocalAccount wcm:action="add">




-<Password>


<Value>DHGRUIEGRIUGHRUEIGHRUdfgjneriognrfeiobreinob=</Value>


<PlainText>false</PlainText>


</Password>


<Description>Image</Description>


<DisplayName>Image</DisplayName>


<Group>Image</Group>


<Name>Image</Name>


</LocalAccount>


</LocalAccounts>




-<DomainAccounts>




-<DomainAccountList wcm:action="add">


<Domain>mydomain.com</Domain>


</DomainAccountList>


</DomainAccounts>


</UserAccounts>


<TimeZone>Eastern Standard Time</TimeZone>




-<AutoLogon>




-<Password>


<Value>fvjnefvbnfuioevbnVNFIOGNERFIVIFOEVBERF=</Value>


<PlainText>false</PlainText>


</Password>


<Domain>MYDOMAIN</Domain>


<Enabled>true</Enabled>


<LogonCount>3</LogonCount>


<Username>myusername</Username>


</AutoLogon>


</component>


</settings>




-<settings pass="specialize">




-<component language="neutral" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" versionScope="nonSxS" publicKeyToken="31bf3856ad364e35" processorArchitecture="amd64" name="Microsoft-Windows-UnattendedJoin">




-<Identification>




-<Credentials>


<Domain>mydomain.com</Domain>


<Password>mypassword</Password>


<Username>myusername</Username>


</Credentials>


<JoinDomain>mydomain.com</JoinDomain>


</Identification>


</component>


</settings>


<cpifflineImage xmlns:cpi="urn:schemas-microsoft-com:cpi" cpi:source="wim:c:/users/rsingh/desktop/install.wim#Windows 8.1 Enterprise"/>


</unattend>

Open in new window

Avatar of David Johnson, CD
David Johnson, CD
Flag of Canada image

I'm pretty sure that your xml doesn't have all of those linefeeds please use a code block in the future
User generated image
<?xml version="1.0" encoding="UTF-8"?>
-<unattend xmlns="urn:schemas-microsoft-com:unattend">
-<settings pass="oobeSystem">
-<component language="neutral" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" versionScope="nonSxS" publicKeyToken="31bf3856ad364e35" processorArchitecture="amd64" name="Microsoft-Windows-International-Core">
<InputLocale>en-US</InputLocale>
<SystemLocale>en-US</SystemLocale>
<UILanguage>en-US</UILanguage>
<UILanguageFallback>en-US</UILanguageFallback>
<UserLocale>en-US</UserLocale>
</component>
-<component language="neutral" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" versionScope="nonSxS" publicKeyToken="31bf3856ad364e35" processorArchitecture="amd64" name="Microsoft-Windows-Shell-Setup">
-<OOBE>
<HideEULAPage>true</HideEULAPage>
<NetworkLocation>Work</NetworkLocation>
<ProtectYourPC>1</ProtectYourPC>
</OOBE>
-<UserAccounts>
-<LocalAccounts>
-<LocalAccount wcm:action="add">
-<Password>
<Value>ACGKFGBNFGBKDOIVNEOIFNWEFIOEW=</Value>
<PlainText>false</PlainText>
</Password>
<Description>Admin</Description>
<DisplayName>admin</DisplayName>
<Group>administrators</Group>
<Name>admin</Name>
</LocalAccount>
-<LocalAccount wcm:action="add">
-<Password>
<Value>DHGRUIEGRIUGHRUEIGHRUdfgjneriognrfeiobreinob=</Value>
<PlainText>false</PlainText>
</Password>
<Description>Image</Description>
<DisplayName>Image</DisplayName>
<Group>Image</Group>
<Name>Image</Name>
</LocalAccount>
</LocalAccounts>
-<DomainAccounts>
-<DomainAccountList wcm:action="add">
<Domain>mydomain.com</Domain>
</DomainAccountList>
</DomainAccounts>
</UserAccounts>
<TimeZone>Eastern Standard Time</TimeZone>
-<AutoLogon>
-<Password>
<Value>fvjnefvbnfuioevbnVNFIOGNERFIVIFOEVBERF=</Value>
<PlainText>false</PlainText>
</Password>
<Domain>MYDOMAIN</Domain>
<Enabled>true</Enabled>
<LogonCount>3</LogonCount>
<Username>myusername</Username>
</AutoLogon>
</component>
</settings>
-<settings pass="specialize">
-<component language="neutral" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" versionScope="nonSxS" publicKeyToken="31bf3856ad364e35" processorArchitecture="amd64" name="Microsoft-Windows-UnattendedJoin">
-<Identification>
-<Credentials>
<Domain>mydomain.com</Domain>
<Password>mypassword</Password>
<Username>myusername</Username>
</Credentials>
<JoinDomain>mydomain.com</JoinDomain>
</Identification>
</component>
</settings>
<cpifflineImage xmlns:cpi="urn:schemas-microsoft-com:cpi" cpi:source="wim:c:/users/rsingh/desktop/install.wim#Windows 8.1 Enterprise"/>
</unattend> 

Open in new window

i would really suggest that you download install and use Microsoft Deployment Toolkit

       <UserAccounts>
                <AdministratorPassword>
                    <Value>egBhAHIAZABvAG4AIwAxAEEAZABtAGkAbgBpAHMAdAByAGEAdABvAHIAUABhAHMAcwB3AG8AcgBkAA==</Value>
                    <PlainText>false</PlainText>
                </AdministratorPassword>
                <LocalAccounts>
                    <LocalAccount wcm:action="add">
                        <Password>
                            <Value>cABhAHMAcwB3AG8AcgBkAFAAYQBzAHMAdwBvAHIAZAA=</Value>
                            <PlainText>false</PlainText>
                        </Password>
                        <DisplayName>Account 1</DisplayName>
                        <Name>acct1</Name>
                    </LocalAccount>
                </LocalAccounts>
            </UserAccounts>

Open in new window

Avatar of IT Guy
IT Guy

ASKER

i opened my unattend file via IE and copy - will use your suggestion next time

can i install Microsoft Deployment Toolkit on my WDS server?
Avatar of IT Guy

ASKER

sorry it looks like i have that installed already - i am new to Imaging - i will start exploring the Deployment Toolkit. thanks
 <LocalAccounts>
                    <LocalAccount wcm:action="add">
                        <Password>
                            <Value>cABhAHMAcwB3AG8AcgBkAFAAYQBzAHMAdwBvAHIAZAA=</Value>
                            <PlainText>false</PlainText>
                        </Password>
                        <DisplayName>Account 1</DisplayName>
                        <Name>acct1</Name>
                    </LocalAccount>
                </LocalAccounts>

Open in new window

this area seems to be missing from your example. in the future, right click on the xml and open in notepad
Avatar of IT Guy

ASKER

OK so i took David suggestion and i started building MDT on my Windows 2008 Server - everything was going smoothly until the image is completed then i get a failure with 7 errors. hoping someone so help me on what i screwed up here
User generated image
install over a LAN and not WIFI
Avatar of IT Guy

ASKER

it is connected over LAN - i've never used wifi on this laptop
Avatar of IT Guy

ASKER

you might be correct - i added drives for the image and trying again...
then you need to add the network adapter into the boot.wim User generated image
Avatar of IT Guy

ASKER

yes i have those enabled, did an update of my deployment share and re-deploy but got the same error

User generated image
Avatar of IT Guy

ASKER

from the snapshot of the error in the first picture its pointing to an old Deployment share \\server\c$\deploymentshare however i deleted that a couple of day ago and now its on my \\server\d$\deploymentshare.

i updated it everywhere but i don't understand why it keeps showing the old share name.

any ideas
ASKER CERTIFIED SOLUTION
Avatar of David Johnson, CD
David Johnson, CD
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of IT Guy

ASKER

yes i make sure its pointing to the right deployment - i also deleted all old deployment shares
are you using WDS? if so did you update WDS boot.wim as well?
Avatar of IT Guy

ASKER

yes i did - i am recreating the whole thing; i'm rebuilding my image as we speak
Avatar of IT Guy

ASKER

ok so

i build my deployment share and add my Win10  OS then i build my Laptop and created a capture

- regenerate all boot images and replace the boot image in WDS

- i created a Task Sequence to deploy my captured image but when i boot my laptop to PXE boot it just continually reboots just before my Task Sequences shows up

- if i press F8 i can ping my MDT server
how much memory on the machine your are trying to install.  I've seen this with less than 1224 MB of ram
Avatar of IT Guy

ASKER

the laptop is a Lenovo X1 Carbon with 8GB Ram - i am using Standard Client Task Sequence
Avatar of IT Guy

ASKER

keep getting this error when i try to capture an image

Target Partition not big enough: \\MININT-TGOTQOI\root\cimv2:Win32_DiskPartition.DeviceID="Disk #0, Partition #0"

i have 33GB free on the location i'm trying to save the captured image
Avatar of IT Guy

ASKER

so i installed MDT on another server and i was able to capture and deploy without any errors - now i have WDS and MDT on different servers.

not sure if thats recommended
Avatar of IT Guy

ASKER

it turns out that this laptop has a hardware issue