This steps below describe how to setup Windows 10 Mac Address as a custom attribute in VMware Workspace One. Such settings are required for exemple when leveraging Certificate template and require the Mac Address.
Creating the Files to push down:
- Add MAC Address in registry (Powershell script)
$MyMacAddress=(Get-WmiObject Win32_NetworkAdapterConfiguration | where {$_.ipenabled -EQ $true}).Macaddress | select-object -first 1
$registryPath = “HKLM:\SYSTEM\CurrentControlSet\Control\Class\{4d36e972-e325-11ce-bfc1-08002be10318}\0000”
$Name = “MACAddress”
New-ItemProperty -Path $registryPath -Name $name -Value $MyMacAddress
2. Fetch MAC Address from registry key (xml)
<xml version=”1.0″>
<wap-provisioningdoc name=”MAC_Address_2 /V_1″>
<characteristic type=”com.windowspc.getregistryinfo.managed”>
<reg_value custom_attribute_name=”Win10 MAC address”
key_name=”SYSTEM\CurrentControlSet\Control\Class\{4d36e972-e325-11ce-bfc1-08002be10318}\0000″
value_name=”MACAddress”/>
</characteristic>
</wap-provisioningdoc>
Steps:
- Push down PS script to add MAC address in registry
Under Device>provisioning>components>files/actions, push down PS script and specify the download path as C:\Temp\<name of the file>.

- In Manifest tab, Add action under Install manifest.
- Actions: Runs
- Command line and argument to run: C:\Temp\<name of the files>

- Add products in Product list view
- Specify Name and Smart group
- In Manifest tab, Actions to Perform set to Install.
- Save and activate

- 2. Push down xml to fetch MAC address from registry
- Under Device>provisioning>components>files/actions, upload XML and specify the download path as {installation path}\AirWatch\AgentUI\Cache\Profiles.

- Add products in Product list view
- Specify Name and Smart group
- In Manifest tab, Actions to Perform set to Install.
- Save and activate

Testing:




Leave a Reply