New-CMPackage

New-CMPackage

Creates a Configuration Manager package.

構文

Parameter Set: New
New-CMPackage -Name <String> [-Description <String> ] [-Language <String> ] [-Manufacturer <String> ] [-Path <String> ] [-Version <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: NewPackageByDefinitionNoSourceFileWithExisted
New-CMPackage -FromDefinition -PackageDefinitionName <String> -PackageNoSourceFile [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: NewPackageByDefinitionNoSourceFileWithNew
New-CMPackage -FromDefinition -PackageNoSourceFile -PackagePath <String> [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: NewPackageByDefinitionSourceFileWithExisted
New-CMPackage -FromDefinition -PackageDefinitionName <String> -SourceFileType <SourceFileType> {AlwaysObtainSourceFile | CreateCompressedVersionOfSourceFile} -SourceFolderPath <String> -SourceFolderPathType <SourceFolderPathType> {LocalFolderOnSiteServer | UncNetworkPath} [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: NewPackageByDefinitionSourceFileWithNew
New-CMPackage -FromDefinition -PackagePath <String> -SourceFileType <SourceFileType> {AlwaysObtainSourceFile | CreateCompressedVersionOfSourceFile} -SourceFolderPath <String> -SourceFolderPathType <SourceFolderPathType> {LocalFolderOnSiteServer | UncNetworkPath} [-Confirm] [-WhatIf] [ <CommonParameters>]

詳細説明

The New-CMPackage cmdlet creates a Microsoft System Center 2012 Configuration Manager package. A package is a System Center 2012 Configuration Manager object that contains the content files and instructions for distributing programs, software updates, boot images, operating system images, and drivers to System Center 2012 Configuration Manager clients.

パラメーター

-Description<String>

Specifies a description for the package. You can use a maximum of 128 characters.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-FromDefinition

Indicates that Configuration Manager creates the package from a package definition file.

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-Language<String>

Specifies the language version of the package. You can use a maximum of 32 characters in a format that you choose to use to identify the language version. Configuration Manager uses the Language property together with Manufacturer, Name, and Version to identify a package. For example, you can have an English version and a German version of the same package.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-Manufacturer<String>

Specifies a manufacturer name to help you identify the package. You can use a maximum of 32 characters.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-Name<String>

Specifies a name for the package.

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-PackageDefinitionName<String>

Specifies the name of a package definition file.

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-PackageNoSourceFile

Indicates that the package does not require source files to be present on client devices.

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-PackagePath<String>

Specifies a share name or path that Configuration Manager creates for the package source files on distribution points.

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-Path<String>

Specifies the location of the files to add to the package.

You can specify either a full local path or a UNC path. Make sure that this location contains all the files and subdirectories that the program needs to complete, including any scripts.

エイリアス

PackageSourcePath

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-SourceFileType<SourceFileType>

Specifies the source file type. Valid values are:

-- AlwaysObtainSourceFile
-- CreateCompressedVersionOfSourceFile

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-SourceFolderPath<String>

Specifies the location of the source files for the package.

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-SourceFolderPathType<SourceFolderPathType>

Specifies the source folder path type. Valid values are:

-- LocalFolderOnSiteServer
-- UncNetworkPath

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-Version<String>

Specifies a version number for the package.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-Confirm

コマンドレットを実行する前に、ユーザーに確認を求めます。

必須?

false

位置は?

named

既定値

false

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-WhatIf

コマンドレットを実行するとどのような結果になるかを表示します。コマンドレットは実行されません。

必須?

false

位置は?

named

既定値

false

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

<CommonParameters>

このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。

入力

入力型は、コマンドレットにパイプできるオブジェクトの型です。

出力

出力型は、コマンドレットによって生成されるオブジェクトの型です。

Example 1: Create a package

This command creates a Configuration Manager package named ScriptsPackage01.

PS C:\> New-CMPackage -Name "ScriptsPackage01"

Example 2: Create a package and add a description

This command creates a Configuration Manager package named ScriptsPackage02 and adds the specified description to the package.

PS C:\> New-CMPackage -Name "ScriptsPackage02" -Description "This package deploys scripts that run on a recurring schedule."

関連トピック

Export-CMPackage

Get-CMPackage

Import-CMPackage

Remove-CMPackage

Set-CMPackage