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
true
vagrant
3
vagrant
true
1
powershell.exe -NoProfile -ExecutionPolicy Bypass -Command "Set-ExecutionPolicy -Scope LocalMachine -ExecutionPolicy Bypass -Force"
Set ExecutionPolicy Bypass
2
cmd.exe /c winrm quickconfig -force -q > C:\Windows\Temp\firstlogon.log 2>&1
WinRM quickconfig
3
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" >> C:\Windows\Temp\firstlogon.log 2>&1
Configure WinRM auth and limits
4
powershell.exe -NoProfile -ExecutionPolicy Bypass -Command "New-NetFirewallRule -Name WinRM-HTTP -DisplayName 'WinRM HTTP' -Protocol TCP -LocalPort 5985 -Action Allow -Profile Any -ErrorAction SilentlyContinue" >> C:\Windows\Temp\firstlogon.log 2>&1
Open firewall for WinRM HTTP
5
cmd.exe /c sc config WinRM start= auto && net stop WinRM && net start WinRM >> C:\Windows\Temp\firstlogon.log 2>&1
Restart WinRM service
UTC