Hi MDT gurus
Using MDT 2012
I get an question that I must change administrator password before first logon after Sysprep
( sysprep /generalize /oobe /shutdown /unattend:c:\unattend.xml)
, using below unattend.xml.
As far as I can tell I have specified the
<AdministratorPassword>
section correctly with the administrator password?
Maybe the syntax should be different?
Surely there must be a log file with a very descriptive err msg to examine if the
<AdministratorPassword>
did not suffice?
Please could you provide a working construct of such syntax?
Generally speaking, debugging errors in unattend.xml take very long time (partly I think because there is no way to syntax check it before the deployment is actually executing, i.e. underway, during runtime), are there any way to shortcut the time with a complete working template of unattend.xml that works almost unchanged?
Maybe a better approach than try to login with local administrator is to try logon using custom added administrator - "deputyadmin" account instead? If so, how is that possible to specify to login with another administrator in unattend.xml?
Final aim is to avoid any and all questions because there will be nobody awake to answer them when this is deployed.
Also the setupcomplete.cmd that I put in c:\windows\setup\scripts do not seem to get called because the unattend.xml in Panther directory is not deleted.
Thank you for your valuable time,
QA4ever
<?xml version="1.0" ?> <unattend xmlns="urn:schemas-microsoft-com:unattend"> <settings pass="windowsPE"> <component name="Microsoft-Windows-Setup" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" processorArchitecture="x86"> <WindowsDeploymentServices> <Login> <WillShowUI>OnError</WillShowUI> <Credentials> <Username>Administrator</Username> <Domain>8k99</Domain> <Password>Mypass</Password> </Credentials> </Login> <ImageSelection> <WillShowUI>OnError</WillShowUI> <InstallImage> <ImageName>Windows Server 2008 R2</ImageName> <ImageGroup>ImageGroup1</ImageGroup> <Filename>Install.wim</Filename> </InstallImage> <InstallTo> <DiskID>0</DiskID> <PartitionID>1</PartitionID> </InstallTo> </ImageSelection> </WindowsDeploymentServices> <DiskConfiguration> <WillShowUI>OnError</WillShowUI> <Disk> <DiskID>0</DiskID> <WillWipeDisk>true</WillWipeDisk> <ModifyPartitions> <ModifyPartition> <Order>1</Order> <PartitionID>1</PartitionID> <Letter>C</Letter> <Label>TestOS</Label> <Format>NTFS</Format> <Active>true</Active> <Extend>false</Extend> </ModifyPartition> </ModifyPartitions> </Disk> </DiskConfiguration> </component> <component name="Microsoft-Windows-International-Core-WinPE" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" processorArchitecture="x86"> <SetupUILanguage> <WillShowUI>OnError</WillShowUI> <UILanguage>en-US</UILanguage> </SetupUILanguage> <UILanguage>en-US</UILanguage> </component> </settings> <settings pass="specialize"> <component name="Microsoft-Windows-IE-InternetExplorer" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Home_Page>http://deputyadmin</Home_Page> <CompanyName>Mycompany</CompanyName> <FavoritesOnTop>true</FavoritesOnTop> <FilterLevel>High</FilterLevel> <Help_Page></Help_Page> <DisableFirstRunWizard>true</DisableFirstRunWizard> <DisableWelcomePage>true</DisableWelcomePage> <PlaySound>true</PlaySound> <ShowInformationBar>true</ShowInformationBar> <UserAgent></UserAgent> <Window_Title_CN></Window_Title_CN> <SearchScopes> <Scope wcm:action="add"> <ScopeDefault>true</ScopeDefault> <ScopeKey>Search1</ScopeKey> <ScopeDisplayName>Google</ScopeDisplayName> <ScopeUrl>http://www.google.com/search?q={searchTerms}&sourceid=ie7&rls=com.microsoft:{language}:{referrer:source}&ie={inputEncoding?}&oe={outputEncoding?}</ScopeUrl> <FaviconURL>http://www.google.com/favicon.ico</FaviconURL> <SuggestionsURL>http://clients5.google.com/complete/search?q={searchTerms}&client=ie8&mw={ie:maxWidth}&sh={ie:sectionHeight}&rh={ie:rowHeight}&inputencoding={inputEncoding}&outputencoding={outputEncoding}</SuggestionsURL> </Scope> </SearchScopes> <EnableLinksBar>false</EnableLinksBar> <PrintBackground>true</PrintBackground> </component> <component name="Microsoft-Windows-RemoteAssistance-Exe" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <fAllowFullControl>true</fAllowFullControl> <fAllowToGetHelp>true</fAllowToGetHelp> </component> <component name="Microsoft-Windows-Security-SPP-UX" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <SkipAutoActivation>true</SkipAutoActivation> </component> <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <AutoLogon> <Password> <Value>Mypass</Value> <PlainText>true</PlainText> </Password> <Enabled>true</Enabled> <LogonCount>999</LogonCount> <Username>Administrator</Username> </AutoLogon> <ComputerName>8K99</ComputerName> <ProductKey>aaaaa-bbbbb-ccccccc-eeeeeeeee-ffffffffff-ggggg</ProductKey> <RegisteredOrganization>MyCompany</RegisteredOrganization> <RegisteredOwner>QA</RegisteredOwner> <OOBE> <HideEULAPage>true</HideEULAPage> <NetworkLocation>Other</NetworkLocation> <ProtectYourPC>3</ProtectYourPC> <SkipMachineOOBE>true</SkipMachineOOBE> <SkipUserOOBE>true</SkipUserOOBE> </OOBE> <UserAccounts> <AdministratorPassword> <Value>Mypass</Value> <PlainText>true</PlainText> </AdministratorPassword> <LocalAccount wcm:action="add"> <Password> <Value>Mypass</Value> <PlainText>true</PlainText> </Password> <Description>Local Administrator</Description> <DisplayName>Administrator</DisplayName> <Group>Administrators</Group> <Name>Administrator</Name> </LocalAccount> <LocalAccounts> <LocalAccount wcm:action="add"> <Password> <Value>Mypass</Value> <PlainText>true</PlainText> </Password> <Description>Local User</Description> <DisplayName>deputyadmin</DisplayName> <Group>administrators</Group> <Name>deputyadmin</Name> </LocalAccount> </LocalAccounts> </UserAccounts> </component> <component name="Microsoft-Windows-TerminalServices-LocalSessionManager" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <fDenyTSConnections>false</fDenyTSConnections> </component> <component name="Networking-MPSSVC-Svc" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <DomainProfile_EnableFirewall>false</DomainProfile_EnableFirewall> <PrivateProfile_EnableFirewall>false</PrivateProfile_EnableFirewall> <PublicProfile_EnableFirewall>false</PublicProfile_EnableFirewall> </component> <component name="Microsoft-Windows-TerminalServices-RDP-WinStationExtensions" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <UserAuthentication>1</UserAuthentication> </component> </settings> </unattend>