Jump to content

winnt.sif: computername


Recommended Posts

Hello,

Currently am I redoing all my winnt.sif files. Everything, no problems (thanks to this forum etc..) except...

[userData]

ComputerName=AIOPC-V3

At the moment have I configured 1 computername. Disadvantage: every machine gets the same name.. which sucks a little bit.

What I am looking for is a preconfigured part and a random part. Like: AIOPC-<random numbers>

How to do that?

----

I've been digging in things like this:

[setupMgr]

ComputerName0=cavalier

ComputerName1=centurion

ComputerName2=enforcer

[combination with winnt.udb file in my PRO1 bootfolder.]

;SetupMgrTag

[uniqueIds]

cavalier=UserData

centurion=UserData

enforcer=UserData

winnt.udb:

[cavalier:UserData]

ComputerName=cavalier

FullName="MSFN Member A"

But No successs..

------

Anyone any ideas??

thanks in advance

Edited by 5128
Link to comment
Share on other sites


It should work with a UDF file. But it uses winnt.exe or winnt32.exe

If you want to use it as a normal install with only a winnt.sif. You should alter the setup timeline. Normally after the txtsetup it starts setup.exe etc etc.

You should make an batchfile named setup.exe and write a script that knows what computername to use and starts winnt.exe.

@rem SetupMgrTag
@echo off

rem
rem This is a SAMPLE batch script generated by the Setup Manager Wizard.
rem If this script is moved from the location where it was generated, it may have to be modified.
rem

set AnswerFile=D:\i386\unattend.txt
set UdfFile=D:\i386\unattend.udb
set ComputerName=%1
set SetupFiles=D:\i386

if "%ComputerName%" == "" goto USAGE

D:\i386\winnt32 /s:%SetupFiles% /unattend:%AnswerFile% /udf:%ComputerName%,෿ile%
goto DONE

:USAGE
echo.
echo Usage: unattend ^<computername^>
echo.

:DONE

I think something like that.

Edited by The Glimmerman
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...