<div class="content" name="SetRemoteUserCategories" uuid="f6832c80-234c-46fc-ab49-51d08bb441b3"><p>The SetRemoteUserCategories method sets user categories
information on the WSRM server.</p><dl>
<dd>
<div><pre> [id(2), helpstring(&#34;method SetRemoteUserCategories&#34;)] HRESULT SetRemoteUserCategories(
   [in] BSTR bstrRemoteUserCategoriesInfo
 );
</pre></div>
</dd></dl><p><b>bstrRemoteUserCategoriesInfo: </b>A string that
specifies categories of remote session users, in the format of a <a href="f017360f-f03d-4747-adf4-0ea4725300ad" data-linktype="relative-path">Users</a> element (section
2.2.5.30).</p><dl>
<dd>
<p>If this parameter is NULL, <b>E_INVALIDARG</b> MUST
be returned.</p>
</dd></dl><p><b>Return Values: </b>This method returns 0x00000000
for success or a negative <a href="e371cc74-bf4c-4870-8afe-5062cc628b4f#gt_799103ab-b3cb-4eab-8c55-322821b2b235" data-linktype="relative-path">HRESULT</a>
value (in the following table or in <a href="../ms-erref/1bc92ddf-b79e-413c-bbaa-99a5281a6c90" data-linktype="relative-path">[MS-ERREF]</a>
section <a href="../ms-erref/705fb797-2175-4a90-b5a3-3918024b10b8" data-linktype="relative-path">2.1.1</a>)
if an error occurs.</p><dl>
<dd>
<table><thead>
  <tr>
   <th>
   <p>Return value/code</p>
   </th>
   <th>
   <p>Description</p>
   </th>
  </tr>
 </thead><tbody><tr>
  <td>0x00000000 S_OK</td>
  <td>Operation successful.</td>
 </tr><tr>
  <td>0x80070057 E_INVALIDARG</td>
  <td>One or more arguments are invalid.</td>
 </tr><tr>
  <td>0xC1FF0070 WRM_ERR_TAGS_NOT_IN_ORDER</td>
  <td>The XML data that is maintained by the management service is invalid or cannot be processed.&lt;114&gt;</td>
 </tr></tbody></table>
</dd></dl><p>Additional <a href="e92c2589-b1ae-4bee-980a-b1f96710b4e7" data-linktype="relative-path">IWRMRemoteSessionMgmt</a>
interface methods are specified in section 3.2.4.9.</p></div>