如何使用MDM安装MSI应用程序

时间:2018-08-16 22:48:19

标签: windows mdm

我使用以下XML来安装https://docs.microsoft.com/en-us/windows/client-management/mdm/enterprisedesktopappmanagement-csp

中提到的应用程序
 <Exec>
        <CmdID>6</CmdID>
        <Item>
            <Target>
                <LocURI>./Device/Vendor/MSFT/EnterpriseDesktopAppManagement/MSI/%7B7D71CF20-A776-41C3-8707-BB1AE5F28A02%7D/DownloadInstall</LocURI>
            </Target>
            <Meta>
                <Format xmlns="syncml:metinf">xml</Format>
                <Type xmlns="syncml:metinf">text/plain</Type>
            </Meta>
            <Data>
                <MsiInstallJob id="{9BD4F7CD-880A-40B5-B74C-1BEECB51E596}">
                    <Product Version="6.7.9">
                        <Download>
                            <ContentURLList>
                                <ContentURL>https://www.hass.de/files/nodes/story/45/npp.6.7.9.installer.msi</ContentURL>
                            </ContentURLList>
                        </Download>
                        <Enforcement>
                            <CommandLine>/quiet</CommandLine>
                            <TimeOut>5</TimeOut>
                            <RetryCount>3</RetryCount>
                            <RetryInterval>5</RetryInterval>
                        </Enforcement>
                    </Product>
                </MsiInstallJob>
            </Data>
        </Item>
    </Exec>

SyncML状态返回500状态

在数据标签内转义<,>,“之后,状态仍为500。

<Exec>
<CmdID>1</CmdID>
      <Item>
          <Target>
              <LocURI>./User/Vendor/MSFT/EnterpriseDesktopAppManagement/MSI/%7B7D71CF20-A776-41C3-8707-BB1AE5F28A02%7D/DownloadInstall</LocURI>
          </Target>
          <Meta>
              <Format xmlns="syncml:metinf">xml</Format>
              <Type xmlns="syncml:metinf">text/plain</Type>
          </Meta>
          <Data>&lt;MsiInstallJob id=&quot;%7B9BD4F7CD-880A-40B5-B74C-1BEECB51E596%7D&quot;&gt;
                      &lt;Product Version=&quot;6.7.9&quot;&gt;
                           &lt;Download&gt;
                              &lt;ContentURLList&gt;
                                  &lt;ContentURL&gt;https://www.hass.de/files/nodes/story/45/npp.6.7.9.installer.msi
                                  &lt;/ContentURL&gt;
                              &lt;/ContentURLList&gt;
                           &lt;/Download&gt;
                           &lt;Enforcement&gt;
                               &lt;CommandLine&gt;/quiet&lt;/CommandLine&gt;
                               &lt;TimeOut&gt;5&lt;/TimeOut&gt;
                               &lt;RetryCount&gt;3&lt;/RetryCount&gt;
                               &lt;RetryInterval&gt;5&lt;/RetryInterval&gt;
                           &lt;/Enforcement&gt;
                      &lt;/Product&gt;
              &lt;/MsiInstallJob&gt;
          </Data>
      </Item>

我的问题是要使XML生效,需要对XML进行哪些修改?由于参数无效,事件查看器给出了错误的描述。

0 个答案:

没有答案