none
SkipComputerName=NO - [ByVMType] - NOT WORKING RRS feed

  • Question

  • I would like to provide a computer name when deploying VMs because my current naming scheme (using the Serial number breaks unattended for VMs)

    Updated C:\MININT\Unattend.xml with OSDComputerName=VM-VMware-42 2e cf f6 59 f8 c0 19-16 21 ed 35 6a e1 9a d4 (value was VM-VMware-42 2e cf f6 59 f8 c0 19-16 21 ed 35 6a e1 9a d4) ZTIConfigure 2/29/2016 10:50:29 AM 0 (0x0000)

    The serial is too long and contains characters not suitable for a computer name.

    I have changed my CS.ini to ask for a computer name if a VM is detected but for some reason i never get the computer name pane.

    Something is wrong in my settings section i guess:

    [Settings]
    Priority=DefaultGateway,ByLaptopType, ByDesktopType, ByVMType, ByServerType, HardwareInfo,Model,Default
    Properties=Type,MakeAlias,ModelAlias,Mbam,MyCustomProperty
    
    [DefaultGateway]
    10.8.255.254=Paris
    10.12.20.254=WTC
    10.1.255.254=ITVLAN
    
    [WTC]
    DeployRoot=\\mdtserver\MDTProduction$
    WSUSServer=http://NLWUSSV02:8530
    SLSHARE=\\mdtserver\Logs$\%ComputerName%
    UDShare=\\mdtserver\MigData$
    BackupShare=\\mdtserver\MigData$
    EventService=http://mdtserver:9800
    SLShareDynamicLogging =\\mdtserver\Logs$\%ComputerName%
    
    [Paris]
    DeployRoot=\\mdtserver2\MDTProduction$
    WSUSServer=http://mdtserver2:8530
    SLSHARE=\\mdtserver2\Logs$\%ComputerName%
    UDShare=\\mdtserver2\MigData$
    BackupShare=\\mdtserver2\MigData$
    EventService=http://mdtserver2:9800
    SLShareDynamicLogging =\\mdtserver2\Logs$\%ComputerName%
    
    [ITVLAN]
    DeployRoot=\\mdtserver\MDTProduction$
    WSUSServer=http://NLWUSSV02:8530
    SLSHARE=\\mdtserver\Logs$\%ComputerName%
    UDShare=\\mdtserver\MigData$
    BackupShare=\\mdtserver\MigData$
    EventService=http://mdtserver:9800
    SLShareDynamicLogging =\\mdtserver\Logs$\%ComputerName%
    BDEInstallSuppress=NO
    
    
    [HardwareInfo]
    UserExit=ModelAliasExit.vbs
    MakeAlias=#SetMakeAlias()#
    ModelAlias=#SetModelAlias()#
    
    
    [Default]
    _SMSTSOrgName=IT TEAM - Production
    
    UDDIR=%ComputerName%
    BackupDir=%ComputerName%
    
    ScanStateArgs=/ue:*\* /ui:Corp\* /uel:30
    USMTMigFiles001=MigApp.xml
    USMTMigFiles002=MigUser.xml
    USMTMigFiles003=MigDocs.xml
    USMTMigFiles004=WNB.xml
    
    HideShell=YES
    ApplyGPOPack=NO
    
    SkipUserData=NO
    UserDataLocation=AUTO
    SkipApplications=YES
    SkipAppsOnUpgrade=NO
    SkipPackageDisplay=NO
    SkipAdminPassword=YES
    SkipProductKey=YES
    SkipComputerName=YES
    SkipDomainMembership=YES
    SkipLocaleSelection=YES
    SkipTaskSequence=NO
    SkipTimeZone=YES
    SkipBitLocker=YES
    SkipSummary=YES
    SkipBDDWelcome=YES
    SkipCapture=YES
    SkipFinalSummary=YES
    
    TimeZoneName=W. Europe Standard Time
    
    JoinDomain=corp.acmegroup.local
    DomainAdmin=JoinAccount
    DomainAdminDomain=corp.acmegroup.local
    DomainAdminPassword=ABC-123
    MachineObjectOU=OU=ImagedComputers,DC=corp,DC=acmegroup,DC=local
    
    BitsPerPel=32
    VRefresh=60
    XResolution=1
    YResolution=1
    
    
    [ByLaptopType]
    SkipComputerName=YES
    OSDComputerName=%Type%-%SerialNumber%
    Subsection=Laptop-%IsLaptop%
    MandatoryApplications001={4d6d80f2-e23a-46d4-b9b3-5f10d348adb3}
    
    
    [ByDesktopType]
    SkipComputerName=YES
    OSDComputerName=%Type%-%SerialNumber%
    Subsection=Desktop-%IsDesktop%
    
    
    [ByVMType]
    Subsection=VM-%IsVM%
    SkipComputerName=NO
    
    [ByServerType]
    Subsection=Server-%IsServer%
    SkipBDDWelcome=NO
    SkipComputerName=NO
    
    [Laptop-True]
    Type=LT
    
    [Desktop-True]
    Type=WK
    
    [VM-True]
    Type=VM
    
    [Server-True]
    Type=Server


    Monday, February 29, 2016 11:01 AM

Answers

  • You only really want the Subsection=whatever in your ByType sections.

    [ByLaptopType]
    Subsection=Laptop-%IsLaptop%
    
    [ByDesktopType]
    Subsection=Desktop-%IsDesktop%
    
    [ByVMType]
    Subsection=VM-%IsVM%
    
    [ByServerType]
    Subsection=Server-%IsServer%
    
    [Laptop-True]
    Type=LT
    SkipComputerName=YES
    OSDComputerName=%Type%-%SerialNumber%
    MandatoryApplications001={4d6d80f2-e23a-46d4-b9b3-5f10d348adb3}
    
    [Desktop-True]
    Type=WK
    SkipComputerName=YES
    OSDComputerName=%Type%-%SerialNumber%
    
    [VM-True]
    Type=VM
    SkipComputerName=NO
    
    [Server-True]
    Type=Server
    SkipBDDWelcome=NO
    SkipComputerName=NO


    Logs are very important. https://keithga.wordpress.com/2014/10/24/video-mdt-2013-log-files-basics-bdd-log-and-smsts-log/ Mention any customizations you have made.

    Tuesday, March 1, 2016 11:51 AM
    Moderator

All replies

  • You only really want the Subsection=whatever in your ByType sections.

    [ByLaptopType]
    Subsection=Laptop-%IsLaptop%
    
    [ByDesktopType]
    Subsection=Desktop-%IsDesktop%
    
    [ByVMType]
    Subsection=VM-%IsVM%
    
    [ByServerType]
    Subsection=Server-%IsServer%
    
    [Laptop-True]
    Type=LT
    SkipComputerName=YES
    OSDComputerName=%Type%-%SerialNumber%
    MandatoryApplications001={4d6d80f2-e23a-46d4-b9b3-5f10d348adb3}
    
    [Desktop-True]
    Type=WK
    SkipComputerName=YES
    OSDComputerName=%Type%-%SerialNumber%
    
    [VM-True]
    Type=VM
    SkipComputerName=NO
    
    [Server-True]
    Type=Server
    SkipBDDWelcome=NO
    SkipComputerName=NO


    Logs are very important. https://keithga.wordpress.com/2014/10/24/video-mdt-2013-log-files-basics-bdd-log-and-smsts-log/ Mention any customizations you have made.

    Tuesday, March 1, 2016 11:51 AM
    Moderator
  • Thanks That resolved the issue!
    Friday, March 4, 2016 1:30 PM