设置新设备时,Windows 10物联网核心(15063)管理员密码错误
答
图像创建过程不会加密(或至少哈希)到卡上的密码。它只是复制一堆文件,并在它们的顶部,在EFIESP文件夹中,放置一个批处理脚本PreProvisionDevice.cmd从用户输入创建。该脚本在第一次启动处理,并包含以下说明:
REM SQM-machine-id
reg add HKLM\Software\Microsoft\SQMClient /v MachineId /t REG_SZ /d 4d8b6b44-180f-450a-abce-de862265091a /f
REM Change the adiministrator password
net user Administrator "myPassWith%percent"
REM Remove the password change prompt from DevicePortal
reg add HKLM\Software\Microsoft\Windows\CurrentVersion\IoT\WebManagement\LoggedInUsers /v Administrator /t REG_DWORD /d 0x1
REM Change the computername
set computername minwinpc3
REM Reboot the device for changes to take effect
shutdown /r /t 5
REM delete the provisioning file and the wifiprofile
del %systemdrive%\EFIESP\WiFiProfile.xml
del %0
四号线,你可以看到上世纪90年代,滑稽,老同学,网用户命令。而未经转化的百分比。正确的版本应该是“myPassWith %% percent”。已经吸取了教训,我们得出结论:
- 避免%的
- 初始密码,如果你已经做到了,在登录用的密码忽略
- 了潘多拉的盒子被隐藏在那里的百分比。如果在密码字符串中使用%0变量或& &串联?并且名单可能会继续...