For example, to push a Wi-Fi profile to the system, you must first Prepare an XML file that complies with the WiFi profile of carriercontrolschema Schema (refer Http://blogs.msdn.com/ B /dimeby8/archive/2011/11/01/sample-xml-document-for-provisioningagent-provisionfromxmldocumentasync.aspx ), And then use Provisioningagent . ProvisionfromxmldocumentasyncMethod: Push a Wi-Fi device to the system.
Profile. Refer: Mobile broadband account provisioning sample Http://code.msdn.microsoft.com/windowsapps/ProvisioningAgent-Modern-19afe43b,
You need to sign the XML certificate again in the following way:
-
- Open powershell with the Administrator and run as admin
- Enter the import-module "C: \ Program Files (x86) \ Windows kits \ 8.0 \ bin \ x86 \ provisioningtesthelper. psd1" command to load the module
-
- Enter install-testevcert to generate a new signature certificate
-
- Open IE, enable Internet Options, open content, click certificates to find the personal certificate. You can see the newly generated and installed mbatestcert certificate.
- Find the XML file and use the convertify-signedxml signature.
-
- Use this file as the input and the certificate mbaptestcert as the signature certificate for signature.
-
- The process is as follows:
ps e: \ windows \ system32> convertify-signedxml
The cmdlet converconverter-signedxml located in location 1 of the command Pipeline
Provide values for the following parameters:
(Enter !? To view help .)
Inputfile: e: \ projects \ wi-fi hotspot authentication sample \ JavaScript \ provisioningdata. xml
Outputfile: e: \ projects \ wi-fi hotspot authentication sample \ JavaScript \ test. xml
Certname: mbaptestcert
Loading XML file...
Successfully Loaded File: e: \ projects \ wi-fi hotspot authentication sample \ JavaScript \ provisioningdata. xml
Retrieving certificate...
Successfully retrieved Certificate
Generating signature...
Successfully generated signature
Successfully added signature to XML
Saved output file: e: \ projects \ wi-fi hotspot authentication sample \ JavaScript \ test. xml