VMware Workspace ONE Community
StormFlowers
Contributor
Contributor
Jump to solution

Win10 Custom Settings Profile to deploy Multistring Registry Values

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>

Labels (1)
Reply
0 Kudos
1 Solution

Accepted Solutions
ogushia
Hot Shot
Hot Shot
Jump to solution

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&#010;def&#010;ghi" Type="MultiString" />
</parm>
</characteristic>
</wap-provisioningdoc>
--------

Result is like following picture.

ogushia_0-1644077965172.png

 

View solution in original post

5 Replies
ogushia
Hot Shot
Hot Shot
Jump to solution

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>
--------

Reply
0 Kudos
StormFlowers
Contributor
Contributor
Jump to solution

In the "Data=" field, how are you add multiple strings? What separator is being used so each breaks onto a new line?

Reply
0 Kudos
ogushia
Hot Shot
Hot Shot
Jump to solution

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&#010;def&#010;ghi" Type="MultiString" />
</parm>
</characteristic>
</wap-provisioningdoc>
--------

Result is like following picture.

ogushia_0-1644077965172.png

 

StormFlowers
Contributor
Contributor
Jump to solution

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.

Reply
0 Kudos
ogushia
Hot Shot
Hot Shot
Jump to solution

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 "&gt;".

From that experience, I've confirmed that I need to use the HTML code "&#10;" to insert line breaks in registry settings.

Reply
0 Kudos