Skip to content

Commit

Permalink
reorder firstlogon commands
Browse files Browse the repository at this point in the history
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
  • Loading branch information
jeremyd2019 committed Sep 8, 2021
1 parent 137e07f commit 522e274
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Untitled.xml
Original file line number Diff line number Diff line change
Expand Up @@ -71,37 +71,37 @@
</UserAccounts>
<FirstLogonCommands>
<SynchronousCommand wcm:action="add">
<Order>4</Order>
<Order>1</Order>
<CommandLine>reg import &quot;%systemroot%\OEM\CustomizationFiles\explorer_settings.reg&quot;</CommandLine>
<Description>Import explorer settings</Description>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<Order>5</Order>
<Order>2</Order>
<CommandLine>reg import &quot;%systemroot%\OEM\CustomizationFiles\powershell_settings.reg&quot;</CommandLine>
<Description>Import powershell settings</Description>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<Order>7</Order>
<Order>4</Order>
<CommandLine>cmd /c COPY /Y &quot;%SystemRoot%\OEM\CustomizationFiles\settings.json&quot; &quot;%LOCALAPPDATA%\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState&quot;</CommandLine>
<Description>Copy Windows Terminal settings</Description>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<Order>6</Order>
<Order>3</Order>
<CommandLine>cmd /c mkdir &quot;%LOCALAPPDATA%\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState&quot;</CommandLine>
<Description>Make Windows Terminal settings dir</Description>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<Order>1</Order>
<Order>5</Order>
<Description>Install sshd</Description>
<CommandLine>DISM /online /Add-Capability /CapabilityName:OpenSSH.Server~~~~0.0.1.0</CommandLine>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<Order>2</Order>
<Order>6</Order>
<Description>Enable sshd</Description>
<CommandLine>sc config sshd start= auto</CommandLine>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<Order>3</Order>
<Order>7</Order>
<Description>Start sshd</Description>
<CommandLine>sc start sshd</CommandLine>
</SynchronousCommand>
Expand Down

0 comments on commit 522e274

Please sign in to comment.