The UnPackNALPath method, in Configuration Manager, decodes a network abstraction layer (NAL) path into its components.

The following syntax is simplified from Managed Object Format (MOF) code and is intended to show the definition of the method.

SInt32 UnPackNALPath(
	 String NALPath,
	 String DisplayQualifiers[],
	 String NALType, 
	 String NetworkOSPath, 
	 String NetworkConnectionQualifiers[]



Data type: StringQualifiers: [in]NAL path to be decoded.

Data type: String Array Qualifiers: [out]Qualifiers used by the Configuration Manager console. See the DisplayQualifiers property of PackNALPath Method in Class SMS_NAL_Methods.

Data type: StringQualifiers: [out]The NAL type specified by the network operating system. See the NALType property of PackNALPath Method in Class SMS_NAL_Methods.

Data type: StringQualifiers: [out]Network operating system path. See the NetworkOSPath property of PackNALPath Method in Class SMS_NAL_Methods.

Data type: String ArrayQualifiers: [out]Configuration Manager component-specific qualifiers. See the NetworkConnectionQualifiers property of PackNALPath Method in Class SMS_NAL_Methods.

Return Values

An SInt32 data type.

Example Code

The following example decodes a NAL path.

  Copy Code
	Dim clsNALMethods As SWbemObject
	Dim NALPath As String
	Dim DisplayQuals() As Variant
	Dim NALType As String
	Dim NOSPath As String
	Dim NOSQuals() As Variant
	Dim instResources As SWbemObjectSet
	Dim instResource As SWbemObject
	Dim Query As String

	Set clsNALMethods = Services.Get("SMS_NAL_Methods")

	Query = "SELECT * FROM SMS_SystemResourceList " & _
			"WHERE RoleName=""SMS Distribution Point"" AND SiteCode=""<site code>"""
	Set instResources = Services.ExecQuery(Query, , wbemFlagForwardOnly Or wbemFlagReturnImmediately)

	For Each instResource In instResources
		NALPath = instResource.NALPath

		clsNALMethods.UnPackNALPath NALPath, DisplayQuals, NALType, NOSPath, NOSQuals
		MsgBox "Path = " & NALPath & vbCrLf & _
			 "Display = " & DisplayQuals(0) & vbCrLf & _
			 "Type = " & NALType & vbCrLf & _
			 "NOSPath = " & NOSPath & vbCrLf & _
			 "NOSQual = " & NOSQuals(0)


Runtime Requirements

Development Requirements

See Also

Send comments about this topic to Microsoft.