I'm attempting to deploy an REG_MULTI-SZ value via a Custom Setting Profile in UEM, but I'm not able to locate the correct formatting on the data string. I found the example below "Registry Operation Template", but it only shows that a MultiString type can be used and doesn't provide any examples on how to construct the data string. Anyone ever done this?
<wap-provisioningdoc id="Insert GUID" name="customprofile">/ <characteristic type="com.airwatch.winrt.registryoperation" uuid="Insert GUID"> <parm RegistryPath="HKLM or HKCU with full path" Action="Replace/Remove"> <Value Name="Registry Name" Data="Registry Data" Type="String/Binary/DWORD/QWORD/MultiString/ExpandString" /> </parm> </characteristic> </wap-provisioningdoc>
You can set multi lines string like this.
--------
<wap-provisioningdoc id="cb5817ed-b405-4d04-9a2c-23a5f9865107" name="customprofile">/
<characteristic type="com.airwatch.winrt.registryoperation" uuid="786edfba-78e2-407e-a04b-ea5f9fe5974c">
<parm RegistryPath="HKLM\Software\Policies\Microsoft\Windows" Action="Replace">
<Value Name="MultiString" Data="abc
def
ghi" Type="MultiString" />
</parm>
</characteristic>
</wap-provisioningdoc>
--------
Result is like following picture.
I have set the REG_Multi_SZ registry value with a value like following sample.
--------
<wap-provisioningdoc id="cb5817ed-b405-4d04-9a2c-23a5f9865107" name="customprofile">/
<characteristic type="com.airwatch.winrt.registryoperation" uuid="786edfba-78e2-407e-a04b-ea5f9fe5974c">
<parm RegistryPath="HKLM\Software\Policies\Microsoft\Windows" Action="Replace">
<Value Name="MultiString" Data="0" Type="MultiString" />
</parm>
</characteristic>
</wap-provisioningdoc>
--------
In the "Data=" field, how are you add multiple strings? What separator is being used so each breaks onto a new line?
You can set multi lines string like this.
--------
<wap-provisioningdoc id="cb5817ed-b405-4d04-9a2c-23a5f9865107" name="customprofile">/
<characteristic type="com.airwatch.winrt.registryoperation" uuid="786edfba-78e2-407e-a04b-ea5f9fe5974c">
<parm RegistryPath="HKLM\Software\Policies\Microsoft\Windows" Action="Replace">
<Value Name="MultiString" Data="abc
def
ghi" Type="MultiString" />
</parm>
</characteristic>
</wap-provisioningdoc>
--------
Result is like following picture.
Perfect! Works like a charm. I have to ask, where did you learn that? I've search every term I can think of and couldn't that format anywhere.
To be honest, I couldn't find a guide for that custom profile.
In my experience, I set the special character ">" in custom profile with HTML code ">".
From that experience, I've confirmed that I need to use the HTML code " " to insert line breaks in registry settings.
