Skip to content

Commit 8c3775f

Browse files
authored
Merge pull request #649 from microsoft/dev
djoin blob fixed
2 parents df27b56 + e85428e commit 8c3775f

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

Scripts/3_Deploy.ps1

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,6 @@ If (-not $isAdmin) {
4040
$fileContent = @"
4141
<?xml version='1.0' encoding='utf-8'?>
4242
<unattend xmlns="urn:schemas-microsoft-com:unattend" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
43-
<settings pass="offlineServicing">
44-
<component name="Microsoft-Windows-UnattendedJoin" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
45-
<OfflineIdentification>
46-
<Provisioning>
47-
<AccountData>$Blob</AccountData>
48-
</Provisioning>
49-
</OfflineIdentification>
50-
</component>
51-
</settings>
5243
<settings pass="oobeSystem">
5344
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
5445
<UserAccounts>
@@ -66,6 +57,18 @@ If (-not $isAdmin) {
6657
</component>
6758
</settings>
6859
<settings pass="specialize">
60+
<!-- Offline Domain Join Blob -->
61+
<component name="Microsoft-Windows-UnattendedJoin"
62+
processorArchitecture="amd64"
63+
publicKeyToken="31bf3856ad364e35"
64+
language="neutral"
65+
versionScope="nonSxS">
66+
<Identification>
67+
<Provisioning>
68+
<AccountData>$Blob</AccountData>
69+
</Provisioning>
70+
</Identification>
71+
</component>
6972
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
7073
$oeminformation
7174
<RegisteredOwner>PFE</RegisteredOwner>
@@ -839,9 +842,6 @@ If (-not $isAdmin) {
839842
if ($unattendFile){
840843
WriteInfo "`t Adding unattend to VHD"
841844
Mount-WindowsImage -Path $mountdir -ImagePath $VHDPath -Index 1
842-
if ($VMConfig.Unattend -eq "DjoinBlob"){
843-
Use-WindowsUnattend -Path $mountdir -UnattendPath $unattendFile
844-
}
845845
#&"$PSScriptRoot\Tools\dism\dism" /mount-image /imagefile:$vhdpath /index:1 /MountDir:$mountdir
846846
#&"$PSScriptRoot\Tools\dism\dism" /image:$mountdir /Apply-Unattend:$unattendfile
847847
New-item -type directory "$mountdir\Windows\Panther" -ErrorAction Ignore

0 commit comments

Comments
 (0)