Share via


3.1.5.1.5 Exec

The Exec command is used by the originator to target a remote action. The target LocURI (section 2.2.3.5) element contains the node to invoke.

The Data (section 2.2.5.1) element contains the Exec-specific parameters.

The following XML snippet shows example usage of the Exec command. In the example, the originator calls the SetValues static method on the MDM_EASPolicy WMI class to set the MinPasswordLength parameter to a value of 8. The syntax for the Exec element type is specified in section 2.2.7.5.

   <SyncBody>
     <Exec>
       <CmdID>11</CmdID>
       <Item>
         <Target>
           <LocURI>./cimv2/MDM_EASPolicy/MDM_EASPolicy.
               Key=%221%22/Exec=SetValues
           </LocURI>
          </Target>
          <Meta>
             <Format xmlns="syncml:metinf">chr</Format>
             <Type xmlns="syncml:metinf">text/plain</Type>
          </Meta>
          <Data>NamedValuesList=MinPasswordLength,8;</Data>
       </Item>
     </Exec>
     ...
   </SyncBody>