<?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 Thanks Joe.
I got it.
Bao in Intel® Business Client Software Development</title>
    <link>https://community.intel.com/t5/Intel-Business-Client-Software/App-crash-when-I-called-SetNextBoot-function/m-p/1104821#M6733</link>
    <description>&lt;P&gt;Thanks Joe.&lt;/P&gt;

&lt;P&gt;I got it. But I got the error as following when I tried to implement the RSE command.&lt;/P&gt;

&lt;P&gt;Could you please hlep?&lt;/P&gt;

&lt;P&gt;Here is the code:&lt;/P&gt;

&lt;PRE class="brush:csharp;"&gt;        public void SetNextBoot(BootOptionsFlags options, FirmwareVerbosityEnum FWVerbosity)
        {
            try
            {               

                IManagedReference bootSettingDataRef =
                   Connection.NewReference(
                       "SELECT * FROM AMT_BootSettingData WHERE InstanceID='Intel(r) AMT:BootSettingData 0'");
                IManagedInstance bootSettingDataInstance = bootSettingDataRef.Get();

                bootSettingDataInstance.SetProperty("BIOSPause", false);
                bootSettingDataInstance.SetProperty("BIOSSetup", false);
                bootSettingDataInstance.SetProperty("ConfigurationDataReset", false);
                bootSettingDataInstance.SetProperty("ForcedProgressEvents", false);
                bootSettingDataInstance.SetProperty("LockKeyboard", false);
                bootSettingDataInstance.SetProperty("LockPowerButton", false);
                bootSettingDataInstance.SetProperty("LockResetButton", false);
                bootSettingDataInstance.SetProperty("LockSleepButton", false);
                bootSettingDataInstance.SetProperty("ReflashBIOS", false);
                bootSettingDataInstance.SetProperty("UserPasswordBypass", false);
                bootSettingDataInstance.SetProperty("UseSafeMode", false);
                bootSettingDataInstance.SetProperty("UseSOL", false);
                bootSettingDataInstance.SetProperty("LockSleepButton",  false);
                bootSettingDataInstance.SetProperty("FirmwareVerbosity", 0);


                //The Enforce Secure Boot option is enabled in AMT version 8.1 and above.
                if (Utils.Utils.CompareVersions(version, "8.0") &amp;gt; 0)
                    bootSettingDataInstance.SetProperty("EnforceSecureBoot",  false);

                //The Remote Secure Erase option is enabled in AMT version 11.0 and above.
                if (Utils.Utils.CompareVersions(version, "11.0") &amp;gt;= 0)
                {
                    if (BootOptionsFlags.SecureErase == options)
                    {
                        bootSettingDataInstance.SetProperty("SecureErase", true);
                        bootSettingDataInstance.SetProperty("RSEPassword", "intel");                
                    }
                } 

                bootSettingDataRef.Put(bootSettingDataInstance);
            }
            catch (ManageabilityException ex)
            {
            }
        }
    &lt;/PRE&gt;

&lt;P&gt;Here is the error:&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="RSE_crash_2.png"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/8918iDFA3C69C95113669/image-size/large?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="RSE_crash_2.png" alt="RSE_crash_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="RSE_Crash_1.png"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/8919iFE9F91B4F5481BA7/image-size/large?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="RSE_Crash_1.png" alt="RSE_Crash_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Bao&lt;/P&gt;</description>
    <pubDate>Wed, 22 Jun 2016 23:23:00 GMT</pubDate>
    <dc:creator>bao_t_</dc:creator>
    <dc:date>2016-06-22T23:23:00Z</dc:date>
    <item>
      <title>App crash when I called SetNextBoot function</title>
      <link>https://community.intel.com/t5/Intel-Business-Client-Software/App-crash-when-I-called-SetNextBoot-function/m-p/1104819#M6731</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;I have tried to execute the&amp;nbsp;SecureErase command by using the example in HLAPI but my app is always crash. I am sure that my target client is supported SecureErase. Here is my example code:&lt;/P&gt;

&lt;PRE class="brush:csharp;"&gt; public void SetSecureEraseBootNext(IAMTInstance amt)
 {           
      BootCapabilities bootCapabilities = amt.BootControl.BootCapabilities;
      BootOptionsFlags flags = BootOptionsFlags.NONE;
           
      if (bootCapabilities.SecureErase)
      {           
          flags = BootOptionsFlags.SecureErase;
      }
      try
      {
          if (bootCapabilities.SecureErase)
          {
               // Here is the code crash 
               amt.BootControl.SetNextBoot(flags);                    
          }
      }
      catch (ManageabilityException ex)
      {               
      }         
}&lt;/PRE&gt;

&lt;P&gt;Could you please help?&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2016 08:09:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Business-Client-Software/App-crash-when-I-called-SetNextBoot-function/m-p/1104819#M6731</guid>
      <dc:creator>bao_t_</dc:creator>
      <dc:date>2016-06-22T08:09:14Z</dc:date>
    </item>
    <item>
      <title>Hey Bao</title>
      <link>https://community.intel.com/t5/Intel-Business-Client-Software/App-crash-when-I-called-SetNextBoot-function/m-p/1104820#M6732</link>
      <description>&lt;P&gt;Hey Bao&lt;/P&gt;

&lt;P&gt;I don't see any code confirming that Secure Erase is allowable for the device.&lt;/P&gt;

&lt;P&gt;You should look at &lt;A href="https://software.intel.com/sites/manageability/AMT_Implementation_and_Reference_Guide/HTMLDocuments/WS-Management_Class_Reference/AMT_BootCapabilities.htm"&gt;Class AMT_BootCapabilities&lt;/A&gt;.SecureErase and validate for true, prior to initiating the action&lt;/P&gt;

&lt;P&gt;What AMT version are we dealing with? It should be AMT 11+&lt;/P&gt;

&lt;P&gt;Take a look at the blog"&amp;nbsp;&lt;A href="https://software.intel.com/en-us/blogs/2016/04/18/intel-amt-remote-secure-erase"&gt;Remote Secure Erase with Intel® AMT&lt;/A&gt;", it should be of some assistance on this as well.&lt;/P&gt;

&lt;P&gt;Joe&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2016 18:58:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Business-Client-Software/App-crash-when-I-called-SetNextBoot-function/m-p/1104820#M6732</guid>
      <dc:creator>Joseph_O_Intel1</dc:creator>
      <dc:date>2016-06-22T18:58:02Z</dc:date>
    </item>
    <item>
      <title>Thanks Joe.
I got it.
Bao</title>
      <link>https://community.intel.com/t5/Intel-Business-Client-Software/App-crash-when-I-called-SetNextBoot-function/m-p/1104821#M6733</link>
      <description>&lt;P&gt;Thanks Joe.&lt;/P&gt;

&lt;P&gt;I got it. But I got the error as following when I tried to implement the RSE command.&lt;/P&gt;

&lt;P&gt;Could you please hlep?&lt;/P&gt;

&lt;P&gt;Here is the code:&lt;/P&gt;

&lt;PRE class="brush:csharp;"&gt;        public void SetNextBoot(BootOptionsFlags options, FirmwareVerbosityEnum FWVerbosity)
        {
            try
            {               

                IManagedReference bootSettingDataRef =
                   Connection.NewReference(
                       "SELECT * FROM AMT_BootSettingData WHERE InstanceID='Intel(r) AMT:BootSettingData 0'");
                IManagedInstance bootSettingDataInstance = bootSettingDataRef.Get();

                bootSettingDataInstance.SetProperty("BIOSPause", false);
                bootSettingDataInstance.SetProperty("BIOSSetup", false);
                bootSettingDataInstance.SetProperty("ConfigurationDataReset", false);
                bootSettingDataInstance.SetProperty("ForcedProgressEvents", false);
                bootSettingDataInstance.SetProperty("LockKeyboard", false);
                bootSettingDataInstance.SetProperty("LockPowerButton", false);
                bootSettingDataInstance.SetProperty("LockResetButton", false);
                bootSettingDataInstance.SetProperty("LockSleepButton", false);
                bootSettingDataInstance.SetProperty("ReflashBIOS", false);
                bootSettingDataInstance.SetProperty("UserPasswordBypass", false);
                bootSettingDataInstance.SetProperty("UseSafeMode", false);
                bootSettingDataInstance.SetProperty("UseSOL", false);
                bootSettingDataInstance.SetProperty("LockSleepButton",  false);
                bootSettingDataInstance.SetProperty("FirmwareVerbosity", 0);


                //The Enforce Secure Boot option is enabled in AMT version 8.1 and above.
                if (Utils.Utils.CompareVersions(version, "8.0") &amp;gt; 0)
                    bootSettingDataInstance.SetProperty("EnforceSecureBoot",  false);

                //The Remote Secure Erase option is enabled in AMT version 11.0 and above.
                if (Utils.Utils.CompareVersions(version, "11.0") &amp;gt;= 0)
                {
                    if (BootOptionsFlags.SecureErase == options)
                    {
                        bootSettingDataInstance.SetProperty("SecureErase", true);
                        bootSettingDataInstance.SetProperty("RSEPassword", "intel");                
                    }
                } 

                bootSettingDataRef.Put(bootSettingDataInstance);
            }
            catch (ManageabilityException ex)
            {
            }
        }
    &lt;/PRE&gt;

&lt;P&gt;Here is the error:&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="RSE_crash_2.png"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/8918iDFA3C69C95113669/image-size/large?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="RSE_crash_2.png" alt="RSE_crash_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="RSE_Crash_1.png"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/8919iFE9F91B4F5481BA7/image-size/large?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="RSE_Crash_1.png" alt="RSE_Crash_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Bao&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2016 23:23:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Business-Client-Software/App-crash-when-I-called-SetNextBoot-function/m-p/1104821#M6733</guid>
      <dc:creator>bao_t_</dc:creator>
      <dc:date>2016-06-22T23:23:00Z</dc:date>
    </item>
    <item>
      <title>Hey Bao</title>
      <link>https://community.intel.com/t5/Intel-Business-Client-Software/App-crash-when-I-called-SetNextBoot-function/m-p/1104822#M6734</link>
      <description>&lt;P&gt;Hey Bao&lt;/P&gt;

&lt;P&gt;The error message is suggesting a SOAP error, which we deprecated in Intel AMT 9.&lt;/P&gt;

&lt;P&gt;What version of the Intel.WSMan.Scripting library are you using?&lt;/P&gt;

&lt;P&gt;What version of the HLAPI.dll are you using?&lt;/P&gt;

&lt;P&gt;Can you please provide a System Discovery XML for my review, please attach in a PM&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;Joe&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2016 20:26:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Business-Client-Software/App-crash-when-I-called-SetNextBoot-function/m-p/1104822#M6734</guid>
      <dc:creator>Joseph_O_Intel1</dc:creator>
      <dc:date>2016-06-28T20:26:00Z</dc:date>
    </item>
  </channel>
</rss>

