Skip to content

Commit 522e274

Browse files
committed
reorder firstlogon commands
It turns out it shows DISM console window on the desktop. Better to load explorer settings first so they'll be applied, and then let DISM do its thing
1 parent 137e07f commit 522e274

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Untitled.xml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -71,37 +71,37 @@
7171
</UserAccounts>
7272
<FirstLogonCommands>
7373
<SynchronousCommand wcm:action="add">
74-
<Order>4</Order>
74+
<Order>1</Order>
7575
<CommandLine>reg import &quot;%systemroot%\OEM\CustomizationFiles\explorer_settings.reg&quot;</CommandLine>
7676
<Description>Import explorer settings</Description>
7777
</SynchronousCommand>
7878
<SynchronousCommand wcm:action="add">
79-
<Order>5</Order>
79+
<Order>2</Order>
8080
<CommandLine>reg import &quot;%systemroot%\OEM\CustomizationFiles\powershell_settings.reg&quot;</CommandLine>
8181
<Description>Import powershell settings</Description>
8282
</SynchronousCommand>
8383
<SynchronousCommand wcm:action="add">
84-
<Order>7</Order>
84+
<Order>4</Order>
8585
<CommandLine>cmd /c COPY /Y &quot;%SystemRoot%\OEM\CustomizationFiles\settings.json&quot; &quot;%LOCALAPPDATA%\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState&quot;</CommandLine>
8686
<Description>Copy Windows Terminal settings</Description>
8787
</SynchronousCommand>
8888
<SynchronousCommand wcm:action="add">
89-
<Order>6</Order>
89+
<Order>3</Order>
9090
<CommandLine>cmd /c mkdir &quot;%LOCALAPPDATA%\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState&quot;</CommandLine>
9191
<Description>Make Windows Terminal settings dir</Description>
9292
</SynchronousCommand>
9393
<SynchronousCommand wcm:action="add">
94-
<Order>1</Order>
94+
<Order>5</Order>
9595
<Description>Install sshd</Description>
9696
<CommandLine>DISM /online /Add-Capability /CapabilityName:OpenSSH.Server~~~~0.0.1.0</CommandLine>
9797
</SynchronousCommand>
9898
<SynchronousCommand wcm:action="add">
99-
<Order>2</Order>
99+
<Order>6</Order>
100100
<Description>Enable sshd</Description>
101101
<CommandLine>sc config sshd start= auto</CommandLine>
102102
</SynchronousCommand>
103103
<SynchronousCommand wcm:action="add">
104-
<Order>3</Order>
104+
<Order>7</Order>
105105
<Description>Start sshd</Description>
106106
<CommandLine>sc start sshd</CommandLine>
107107
</SynchronousCommand>

0 commit comments

Comments
 (0)