Skip to content

Commit

Permalink
Move installing sshd to FirstLogonCommands.
Browse files Browse the repository at this point in the history
Hopefully it will work there...  It failed in specialize due to
WU_E_SETUP_IN_PROGRESS
  • Loading branch information
jeremyd2019 committed Sep 8, 2021
1 parent aa7eaaa commit b501574
Showing 1 changed file with 22 additions and 12 deletions.
34 changes: 22 additions & 12 deletions Untitled.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,25 +22,20 @@
<component name="Microsoft-Windows-Deployment" 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">
<RunSynchronous>
<RunSynchronousCommand wcm:action="add">
<Order>2</Order>
<Order>1</Order>
<Path>sc config sshd start= auto</Path>
<Description>Enable sshd</Description>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>3</Order>
<Order>2</Order>
<Path>powercfg -h off</Path>
<Description>Disable hibernation</Description>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>4</Order>
<Order>3</Order>
<Path>reg add HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Power /v HiberbootEnabled /t REG_DWORD /d 0 /f</Path>
<Description>Turn off Fast Startup</Description>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>1</Order>
<Description>Install sshd</Description>
<Path>DISM /online /Add-Capability /CapabilityName:OpenSSH.Server~~~~0.0.1.0</Path>
</RunSynchronousCommand>
</RunSynchronous>
</component>
<component name="Microsoft-Windows-powercpl" 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">
Expand Down Expand Up @@ -76,25 +71,40 @@
</UserAccounts>
<FirstLogonCommands>
<SynchronousCommand wcm:action="add">
<Order>1</Order>
<Order>4</Order>
<CommandLine>reg import &quot;%systemroot%\OEM\CustomizationFiles\explorer_settings.reg&quot;</CommandLine>
<Description>Import explorer settings</Description>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<Order>2</Order>
<Order>5</Order>
<CommandLine>reg import &quot;%systemroot%\OEM\CustomizationFiles\powershell_settings.reg&quot;</CommandLine>
<Description>Import powershell settings</Description>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<Order>4</Order>
<Order>7</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>3</Order>
<Order>6</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>
<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>
<Description>Enable sshd</Description>
<CommandLine>sc config sshd start= auto</CommandLine>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<Order>3</Order>
<Description>Start sshd</Description>
<CommandLine>sc start sshd</CommandLine>
</SynchronousCommand>
</FirstLogonCommands>
</component>
<component name="Microsoft-Windows-International-Core" 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">
Expand Down

0 comments on commit b501574

Please sign in to comment.