en-US 0409:00000409 en-US en-US en-US 0 true 1 EFI 300 2 MSR 128 3 Primary true 1 1 FAT32 2 2 3 3 NTFS C 0 3 /IMAGE/NAME Windows 11 Pro W269N-WFGWX-YVC9B-4J6C9-T83GX OnError true vagrant vagrant bootstrap-win11 UTC 1 reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OOBE /v BypassNRO /t REG_DWORD /d 1 /f 2 reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v LocalAccountTokenFilterPolicy /t REG_DWORD /d 1 /f true true true true Work 3 true true vagrant Administrators vagrant Vagrant Box Build vagrant true</PlainText> </Password> </LocalAccount> </LocalAccounts> </UserAccounts> <AutoLogon> <Enabled>true</Enabled> <Username>vagrant</Username> <LogonCount>3</LogonCount> <Password> <Value>vagrant</Value> <PlainText>true</PlainText> </Password> </AutoLogon> <FirstLogonCommands> <!-- Allow PowerShell scripts unsigned (machine scope). --> <SynchronousCommand wcm:action="add"> <Order>1</Order> <CommandLine>powershell.exe -NoProfile -ExecutionPolicy Bypass -Command "Set-ExecutionPolicy -Scope LocalMachine -ExecutionPolicy Bypass -Force"</CommandLine> <Description>Set ExecutionPolicy Bypass</Description> </SynchronousCommand> <!-- Enable WinRM inline so we don't depend on the PROVISION ISO still being mounted at first logon (Windows Setup sometimes detaches secondary DVDs after install). Mirrors the contents of scripts/oobe-enable-winrm.ps1 (now unused) and writes a transcript to C:\Windows\Temp\firstlogon.log for debugging. --> <SynchronousCommand wcm:action="add"> <Order>2</Order> <CommandLine>cmd.exe /c winrm quickconfig -force -q &gt; C:\Windows\Temp\firstlogon.log 2&gt;&amp;1</CommandLine> <Description>WinRM quickconfig</Description> </SynchronousCommand> <SynchronousCommand wcm:action="add"> <Order>3</Order> <CommandLine>powershell.exe -NoProfile -ExecutionPolicy Bypass -Command "Set-NetConnectionProfile -NetworkCategory Private -ErrorAction SilentlyContinue; Set-Item WSMan:\localhost\Service\Auth\Basic $true; Set-Item WSMan:\localhost\Service\AllowUnencrypted $true; Set-Item WSMan:\localhost\Service\MaxConcurrentOperationsPerUser 12000; Set-Item WSMan:\localhost\Shell\MaxMemoryPerShellMB 1024" &gt;&gt; C:\Windows\Temp\firstlogon.log 2&gt;&amp;1</CommandLine> <Description>Configure WinRM auth and limits</Description> </SynchronousCommand> <SynchronousCommand wcm:action="add"> <Order>4</Order> <CommandLine>powershell.exe -NoProfile -ExecutionPolicy Bypass -Command "New-NetFirewallRule -Name WinRM-HTTP -DisplayName 'WinRM HTTP' -Protocol TCP -LocalPort 5985 -Action Allow -Profile Any -ErrorAction SilentlyContinue" &gt;&gt; C:\Windows\Temp\firstlogon.log 2&gt;&amp;1</CommandLine> <Description>Open firewall for WinRM HTTP</Description> </SynchronousCommand> <SynchronousCommand wcm:action="add"> <Order>5</Order> <CommandLine>cmd.exe /c sc config WinRM start= auto &amp;&amp; net stop WinRM &amp;&amp; net start WinRM &gt;&gt; C:\Windows\Temp\firstlogon.log 2&gt;&amp;1</CommandLine> <Description>Restart WinRM service</Description> </SynchronousCommand> </FirstLogonCommands> <TimeZone>UTC</TimeZone> </component> </settings> </unattend>