WinPE Computer Name MININT-xxxxxxx

April 16, 2026

If you have done any kind Windows operating system deployment using Configuration Manager, or Microsoft Deployment Toolkit, you have probably noticed that when the system boots the WinPE boot image, it gives the computer name MININT-xxxxxxx. This is a randomly generated computer name to prevent naming conflicts. Back in my Configuration Manager OSD days (now I pretty much only use 2Pint Software DeployR), it would bug me because the status messages would get registered with the MININT name. That made it nearly impossible to link a status message back to a physical device. If there was only a way that I could create my own computer name in WinPE to something I could link back to the computer, it would make troubleshooting much easier when needed.

The first thing I thought of was just making it what the computer would actually be named. However, there was a problem with this approach. We were using the MAC address as part of the name. For laptops (even ones with ethernet adapters), we would use the Wi-Fi MAC address. WinPE does not have the necessary components for the wireless network stack (WinRE would be needed). Other things made this more complicated, like building in docks, and shared network adapters.

Time to find another property that was unique and readily available at boot up (that was the other challenge is sometimes the system would get named before the network stack would be initialized). In comes the UUID. After all, it is supposed to be unique, right? Well, it is rather long, longer than a computer name (15 characters). But in most cases, a partial UUID would get us close, if not spot on to the device being built. Since a Windows computer name cannot consist of entirely numbers, I decided to prefix it with ‘OSD’. The computer name became OSD + the first 12 of the UUID.

Next came how to implement this so that it was set before the TS engine took over. It turns out that WinPE will also process an unattend.xml file (thanks Michael Niehaus for the tip). With a little bit of PowerShell (make sure it is added to WinPE), this becomes easy to implement. When I create my WinPE boot images, I create a ProgramData\OSD file and put files in there. The Set-WinPEComputerName.ps1 can be found on my GitHub.

To launch it, create an entry in the Winpeshl.ini file that looks like the following:

[Launch]
%windir%\System32\WindowsPowerShell\v1.0\powershell.exe,-executionpolicy bypass -noprofile -windowstyle hidden -file "x:\ProgramData\OSD\Set-WinPEComputerName.ps1"

You might notice that I also call it and OSD ID, however, more on that for another time…

Originally posted on https://miketerrill.net

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.