Set Hostname based on SCCM Object name

Discussion in 'Parallels Mac Management for Microsoft SCCM' started by LorinW, Feb 28, 2018.

  1. LorinW

    LorinW Bit poster

    Messages:
    6
    We usually add our systems to SCCM with a name and a Mac-Address (using a CSV-File and Import Computer Information wizard). We usually number them, say our machines have names CompMac001, CompMac002 etc.

    We then have a Device Collection called "All Macs" which as a membership rule uses a dynamic rule to add all devices with name LIKE 'CompMac%'. We deployed our install OS X task sequence to this collection.

    When using a Windows Task Sequence to deploy a Windows Image, SCCM automatically names the PC the way the SCCM Device object is named. We're trying to achieve the same behaviour during a OS X task sequence using the Set Hostname step.

    My question is: Is there a Task Sequence variable in which the SCCM computer object name is stored which we can use for this? We tried to enter "%OSDComputerName%" into the Hostname field, but this just yields an empty string (and the OS X Task Sequence fails because set-hostname [empty] is not valid).
     

Share This Page