CollapseAll image

Update a Wireless Profile

Once a wireless profile has been created, it can be updated with a change in its parameters. The following steps describe how to perform a profile update.

1.  Either locate the desired profile using the steps in the Enumerate Existing Wireless Profiles use case, or use the endpoint reference returned when the profile was created (see Add a Wireless Profile).

2.  Perform a CIM_WiFiEndpointSettings.Get.

3.  Change the relevant parameters.

4.  Invoke AMT_WiFiPortConfigurationService.UpdateWiFiSettings, with the saved reference to CIM_WiFiEndpointSettings and the revised CIM_WiFiEndpointSettings object as inputs. Optionally provide a CIM_IEEE8021xSettings object and a reference to a certificate that will be used with this connection. The method returns a reference to the new CIM_IEEE8021xSettings object, if one was defined.

Click here for a snippet demonstrating this step

You can execute this snippet by inserting it into the execution template found here.

  

# $wifiEndpointSettingsRef is an EPR to the CIM_WiFiEndpointSettings object created by 'Add a Wireless Profile' use case.

$wifiEndpointSettingsInstance =$wifiEndpointSettingsRef.Get()

$wifiEndpointSettingsInstance.SetProperty("PSKPassPhrase","P@ssw0rd")

$wifiEndpointSettingsInstance.SetProperty("SSID","Wireless-API-Update")

$wifiPortConfigurationServiceRef =$wsmanConnectionObject.NewReference("SELECT * FROM AMT_WiFiPortConfigurationService WHERE Name='Intel(r) AMT WiFi Port Configuration Service'")

$inputObject =$wifiPortConfigurationServiceRef.CreateMethodInput("UpdateWiFiSettings")

$inputObject.SetProperty("WiFiEndpointSettings",$wifiEndpointSettingsRef)

$inputObject.SetProperty("WiFiEndpointSettingsInput",$wifiEndpointSettingsInstance)

$outputObjet =$wifiPortConfigurationServiceRef.InvokeMethod($inputObject)

$returnValue =$outputObjet.GetProperty("ReturnValue")

 

 

Instance Diagram

Classes Used in This Flow

SDK Sample

If there is a sample demonstrating this flow, it is included in the SDK installation file. See SDK Installation Layout for details.

 

See Also:

   Wireless Profile Parameters

   Update a Wireless Profile

Copyright © 2006-2022, Intel Corporation. All rights reserved.