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

Located at:<SDK_root>\Windows\Intel_AMT\Samples\WS-Management\WirelessConfiguration

 

See Also:

   Wireless Profile Parameters

   Update a Wireless Profile

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