次の方法で共有


WirelessProfile Schema

Note  Wireless Provisioning Services (WPS) is no longer available as of Windows Vista.

 

The WirelessProfile XML schema is used by the CreateProfilemethod of the IProvisioningProfileWirelessinterface to dynamically create a profile within the preferred profile list managed by the Wireless Zero Configuration service.

Elements within this schema must conform to the rules defined in Validation Rules.

An example of WirelessProfile XML data is described in Sample WirelessProfile XML Data.

<xs:schema 
 xmlns:xs="https://www.w3.org/2001/XMLSchema"
 targetNamespace="https://www.microsoft.com/provisioning/WirelessProfile"
 xmlns="https://www.microsoft.com/provisioning/WirelessProfile"
 elementFormDefault="qualified">

  <xs:element name="WirelessProfile">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="version" type="xs:positiveInteger" minOccurs="1"
         maxOccurs="1" />
        <xs:element name="ssid" minOccurs="1" maxOccurs="1">
          <xs:simpleType>
            <xs:restriction base="xs:string">
              <xs:minLength value="1"  />
              <xs:maxLength value="32" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="connectionType" minOccurs="1" maxOccurs="1">
          <xs:simpleType>
            <xs:restriction base="xs:string">
              <xs:enumeration value="IBSS" />
              <xs:enumeration value="ESS" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="authentication" minOccurs="1" maxOccurs="1">
          <xs:simpleType>
            <xs:restriction base="xs:string">
              <xs:enumeration value="Open" />
              <xs:enumeration value="Shared" />
              <xs:enumeration value="WPA" />
              <xs:enumeration value="WPAPSK" />
              <xs:enumeration value="WPA-NONE" />
              <xs:enumeration value="WPA2" />
              <xs:enumeration value="WPA2PSK" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="encryption" minOccurs="1" maxOccurs="1">
          <xs:simpleType>
            <xs:restriction base="xs:string">
              <xs:enumeration value="None" />
              <xs:enumeration value="WEP" />
              <xs:enumeration value="TKIP" />
              <xs:enumeration value="AES" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="networkKey" minOccurs="0" maxOccurs="1">
          <xs:simpleType>
            <xs:restriction base="xs:string">
              <xs:minLength value="5"  />
              <xs:maxLength value="64" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="keyIndex" type="xs:integer" minOccurs="0" maxOccurs="1"/>
        <xs:element name="keyProvidedAutomatically" type="xs:boolean" minOccurs="1"
         maxOccurs="1"/>
        <xs:element name="IEEE802.1XEnabled" type="xs:boolean" minOccurs="1"
         maxOccurs="1"/>
        <xs:element name="EAPMethod" minOccurs="0" maxOccurs="1">
          <xs:simpleType>
            <xs:restriction base="xs:string">
              <xs:enumeration value="EAP-TLS" />
              <xs:enumeration value="PEAP" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xs:schema>

Note   Allowed values of elements keyProvidedAutomatically and IEEE802.1XEnabled are 0 or 1; do not use values of TRUE or FALSE.

 

 

 

Send comments about this topic to Microsoft