<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: SCCM Delete Provisioning Data from script in Intel vPro® Platform</title>
    <link>https://community.intel.com/t5/Intel-vPro-Platform/SCCM-Delete-Provisioning-Data-from-script/m-p/250788#M2646</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd recommend writing some sort of wrapper script around the unprovisionex.exe utility provided by Intel. This tool ought to do what you're looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://communities.intel.com/docs/DOC-1763"&gt;http://communities.intel.com/docs/DOC-1763&lt;/A&gt; &lt;A href="http://communities.intel.com/docs/DOC-1763"&gt;http://communities.intel.com/docs/DOC-1763&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Trevor Sullivan&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;Systems Engineer&lt;/I&gt;&lt;/P&gt;&lt;P&gt;OfficeMax Corporation&lt;/P&gt;</description>
    <pubDate>Fri, 20 Feb 2009 16:25:35 GMT</pubDate>
    <dc:creator>idata</dc:creator>
    <dc:date>2009-02-20T16:25:35Z</dc:date>
    <item>
      <title>SCCM Delete Provisioning Data from script</title>
      <link>https://community.intel.com/t5/Intel-vPro-Platform/SCCM-Delete-Provisioning-Data-from-script/m-p/250787#M2645</link>
      <description>&lt;P&gt;I am looking for a way to do a full unprovision of a provisioned SCCM client from the command.  I want to do it the same way as the SCCM console does, because that will take care of all of the cleanup required so I can then re-provision them.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Feb 2009 14:45:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-vPro-Platform/SCCM-Delete-Provisioning-Data-from-script/m-p/250787#M2645</guid>
      <dc:creator>idata</dc:creator>
      <dc:date>2009-02-20T14:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: SCCM Delete Provisioning Data from script</title>
      <link>https://community.intel.com/t5/Intel-vPro-Platform/SCCM-Delete-Provisioning-Data-from-script/m-p/250788#M2646</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd recommend writing some sort of wrapper script around the unprovisionex.exe utility provided by Intel. This tool ought to do what you're looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://communities.intel.com/docs/DOC-1763"&gt;http://communities.intel.com/docs/DOC-1763&lt;/A&gt; &lt;A href="http://communities.intel.com/docs/DOC-1763"&gt;http://communities.intel.com/docs/DOC-1763&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Trevor Sullivan&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;Systems Engineer&lt;/I&gt;&lt;/P&gt;&lt;P&gt;OfficeMax Corporation&lt;/P&gt;</description>
      <pubDate>Fri, 20 Feb 2009 16:25:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-vPro-Platform/SCCM-Delete-Provisioning-Data-from-script/m-p/250788#M2646</guid>
      <dc:creator>idata</dc:creator>
      <dc:date>2009-02-20T16:25:35Z</dc:date>
    </item>
    <item>
      <title>Re: SCCM Delete Provisioning Data from script</title>
      <link>https://community.intel.com/t5/Intel-vPro-Platform/SCCM-Delete-Provisioning-Data-from-script/m-p/250789#M2647</link>
      <description>&lt;P&gt;Trevor, will the unprovisionex.exe take care of all of the cleanup as well?  SCCM creates an AD object for the AMT device and that needs to be deleted as part of the process.  If I go into the SCCM Console and select "delete provisioning data" for a specific client, it will take care of the cleanup, the syste detects that it is not provisioned, has an auto-provision policy and re-provisions on its own.&lt;/P&gt;&lt;P&gt;If I can find out how SCCM performs the unprovision, I can automate the process completely.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Feb 2009 16:34:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-vPro-Platform/SCCM-Delete-Provisioning-Data-from-script/m-p/250789#M2647</guid>
      <dc:creator>idata</dc:creator>
      <dc:date>2009-02-20T16:34:14Z</dc:date>
    </item>
    <item>
      <title>Re: SCCM Delete Provisioning Data from script</title>
      <link>https://community.intel.com/t5/Intel-vPro-Platform/SCCM-Delete-Provisioning-Data-from-script/m-p/250790#M2648</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The source code for ConfigMgr isn't available, and you'd probably have to talk to Microsoft developers to figure out every detail of what it's doing when it does a full unprovision. &lt;B&gt;Most&lt;/B&gt; of these additional actions can be easily automated with VBscript or Powershell, such as deleting the AD computer account for the AMT device, as you mentioned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure about automating revocation of the AMT Web Server certificate assigned to the client, but I would imagine there are APIs to tie into your Microsoft Certificate Authority.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Trevor Sullivan&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;Systems Engineer&lt;/I&gt;&lt;/P&gt;&lt;P&gt;OfficeMax Corporation&lt;/P&gt;</description>
      <pubDate>Fri, 20 Feb 2009 16:56:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-vPro-Platform/SCCM-Delete-Provisioning-Data-from-script/m-p/250790#M2648</guid>
      <dc:creator>idata</dc:creator>
      <dc:date>2009-02-20T16:56:49Z</dc:date>
    </item>
    <item>
      <title>Re: SCCM Delete Provisioning Data from script</title>
      <link>https://community.intel.com/t5/Intel-vPro-Platform/SCCM-Delete-Provisioning-Data-from-script/m-p/250791#M2649</link>
      <description>&lt;P&gt;In follow-up to this, I actually discovered a method of invoking SCCM's unprovisioning command on a vPro system (or an entire ConfigMgr collection). You can perform this operation using the ConfigMgr WMI provider.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are two key methods on the SMS_Collection WMI class that you would be interested in:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://msdn.microsoft.com/en-us/library/dd339667.aspx"&gt;http://msdn.microsoft.com/en-us/library/dd339667.aspx&lt;/A&gt; AMTOperateForMachines&lt;/P&gt;&lt;P&gt;&lt;A href="http://msdn.microsoft.com/en-us/library/dd339692.aspx"&gt;http://msdn.microsoft.com/en-us/library/dd339692.aspx&lt;/A&gt; AMTOperateForCollection&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If we were to use these methods via a Powershell script, or interactive Powershell session, we would execute code that looks something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#  Define SCCM server&lt;/P&gt;&lt;P&gt;$SccmServer = 'sccmsp1'&lt;/P&gt;&lt;P&gt;#  Define SCCM WMI provider path&lt;/P&gt;&lt;P&gt;$SccmNamespace = 'root\sms\site_lab'&lt;/P&gt;&lt;P&gt;#  Define WMI class name&lt;/P&gt;&lt;P&gt;$SccmCollection = 'SMS_Collection'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#  Define target SCCM (AMT) resource to unprovision&lt;/P&gt;&lt;P&gt;$AmtResourceId = "1234"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#  Build WMI path string from previously defined variables&lt;/P&gt;&lt;P&gt;$WmiString = "&lt;A&gt;\\${SccmServer}\${SccmNamespace}&lt;/A&gt;:${SccmCollection}"&lt;/P&gt;&lt;P&gt;#  Get and store a reference to the SMS_Collection WMI class&lt;/P&gt;&lt;P&gt;$SccmCollectionClass = [wmiclass]"$WmiString"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#  Perform a partial unprovision on the target resource ID&lt;/P&gt;&lt;P&gt;$UnprovisionResult = $SccmCollectionClass.AMTOperateForMachines($AmtResourceId, 32)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#  Perform a full unprovision on the target resource ID&lt;/P&gt;&lt;P&gt;$UnprovisionResult = $SccmCollectionClass.AMTOperateForMachines($AmtResourceId, 64)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FYI, I have not tested the code above, and do not recommend running it in a production environment until it has been tested. Other than some possible syntax problems though, it should theoretically work. Since the AMTOperateForMachines WMI method takes an array as the first parameter, you might have to surround a non-array with @() to force Powershell to interpret it as an array ... again, I am not sure of this though, as I haven't had an opportunity to test this code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$UnprovisionResult = $SccmCollectionClass.AMTOperateForMachines(@($AmtResourceId), 32)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Trevor Sullivan&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;Systems Engineer&lt;/I&gt;&lt;/P&gt;&lt;P&gt;OfficeMax Corporation&lt;/P&gt;</description>
      <pubDate>Sun, 08 Mar 2009 17:06:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-vPro-Platform/SCCM-Delete-Provisioning-Data-from-script/m-p/250791#M2649</guid>
      <dc:creator>idata</dc:creator>
      <dc:date>2009-03-08T17:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: SCCM Delete Provisioning Data from script</title>
      <link>https://community.intel.com/t5/Intel-vPro-Platform/SCCM-Delete-Provisioning-Data-from-script/m-p/250792#M2650</link>
      <description>&lt;P&gt;This was very helpful.  I was able to create a VBScript that invokes this method to run the full unprovision.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Mar 2009 14:50:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-vPro-Platform/SCCM-Delete-Provisioning-Data-from-script/m-p/250792#M2650</guid>
      <dc:creator>idata</dc:creator>
      <dc:date>2009-03-09T14:50:31Z</dc:date>
    </item>
    <item>
      <title>Re: SCCM Delete Provisioning Data from script</title>
      <link>https://community.intel.com/t5/Intel-vPro-Platform/SCCM-Delete-Provisioning-Data-from-script/m-p/250793#M2651</link>
      <description>&lt;P&gt;Eschloss, I know this is an old post but is there any chance i can get a copy of your vbs for this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or maybe someone else has a similar script i can use?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;much appreciated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stéphane&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2011 19:23:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-vPro-Platform/SCCM-Delete-Provisioning-Data-from-script/m-p/250793#M2651</guid>
      <dc:creator>idata</dc:creator>
      <dc:date>2011-10-25T19:23:16Z</dc:date>
    </item>
  </channel>
</rss>

