Import-CMSoftwareLicense
Import-CMSoftwareLicense
Imports a software license.
Syntax
Parameter Set: ImportSoftwareLicense
Import-CMSoftwareLicense -ImportType <ImportType> {GeneralLicenseStatement | MicrosoftVolumeLicenseStatement} -MlsFilePath <String> [-Confirm] [-WhatIf] [ <CommonParameters>]
Detailed Description
The Import-CMSoftwareLicense cmdlet imports Microsoft and non-Microsoft licensing information into the Asset Intelligence catalog in Microsoft System Center 2012 SP1 Configuration Manager.
Parameters
-ImportType<ImportType>
Specifies an import type for the software license. The acceptable values for this parameter are: GeneralLicenseStatement and MicrosoftVolumeLicenseStatement.
A general license statement contains information about the purchased licenses for any publisher. A Microsoft Volume License Statement (MVLS) license statement contains information about the license entitlements, or number of purchased licenses, for Microsoft products.
Aliases |
none |
Required? |
true |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
false |
-MlsFilePath<String>
Specifies the Universal Naming Convention (UNC) path of a valid XML-formatted licensing information file.
Aliases |
none |
Required? |
true |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
false |
-Confirm
Prompts you for confirmation before running the cmdlet.
Required? |
false |
Position? |
named |
Default Value |
false |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Required? |
false |
Position? |
named |
Default Value |
false |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
<CommonParameters>
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Inputs
The input type is the type of the objects that you can pipe to the cmdlet.
Outputs
The output type is the type of the objects that the cmdlet emits.
Examples
Example 1: Import a software license
This command imports a MVLS license statement from the licensing information file named SWLicense01.xml.
PS C:\> Import-CMSoftwareLicense -MlsFilePath "\\ContosoFS01\Mid\SWLicense01.xml" -ImportType MicrosftVolumeLicenseStatement