Import-SCLibraryPhysicalResource

Import-SCLibraryPhysicalResource

Imports a resource into the VMM library.

構文

Parameter Set: Default
Import-SCLibraryPhysicalResource [-SourcePath] <String> [[-SharePath] <String> ] [-AllowUnencryptedTransfer] [-OverwriteExistingFiles] [-VMMServer <ServerConnection> ] [ <CommonParameters>]

詳細説明

The Import-SCLibraryPhysicalResource cmdlet imports a resource into the Virtual Machine Manager (VMM) library. Self-service users can only import resources into their designated user role data path or a folder under that path.

パラメーター

-AllowUnencryptedTransfer

Indicates that network file transfers do not require encryption. Allowing unencrypted network file transfers can improve performance if neither the source host nor the destination host requires encryption.

Use this parameter to:

-- Allow unencrypted file transfers into, or out of, the library.
-- Allow unencrypted file transfers into, out of, or within a host group.

エイリアス

none

必須?

false

位置は?

named

既定値

none

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

false

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

false

-OverwriteExistingFiles

Indicates that files with the same name are overwritten when importing or exporting resources into or out of the VMM library.

エイリアス

none

必須?

false

位置は?

named

既定値

none

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

false

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

false

-SharePath<String>

Specifies a path to a valid library share on an existing library server that uses a Universal Naming Convention (UNC) path.

Example format: -SharePath "\\LibServer01\LibShare"

エイリアス

none

必須?

false

位置は?

2

既定値

none

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

false

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

false

-SourcePath<String>

Specifies the path to the resource to import.

エイリアス

none

必須?

true

位置は?

1

既定値

none

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

false

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

false

-VMMServer<ServerConnection>

Specifies a VMM server object.

エイリアス

none

必須?

false

位置は?

named

既定値

none

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

True (ByValue)

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

false

<CommonParameters>

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

入力

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

出力

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

Example Example 1.: Import a library resource by an administrator or delegated administrator.:

This command imports the virtual hard disk named VHD01.vhd stored in the folder named C:\AdminFolder into the specified library path. If a resource with that name already exists in that library path, this command overwrites those files.

PS C:\> Import-SCLibraryPhysicalResource -SourcePath "C:\AdminFolder\VHD01.vhd" -SharePath "\\VMMLibraryServer\MSSCVMMLibrary\ImportedLibraryResources" -OverwriteExistingFiles

Example Example 2.: Import a library resource by a self-service user by specifying a path under the default user role data path in the VMM library.:y

This command imports the virtual hard disk named VHD01 from the folder named C:\SSFolder to the SSUserSubFolder\Folder01 folder stored under the default user role data path for the self-service user role of which the logged on user is a member.

PS C:\> Import-SCLibraryPhysicalResource -SourcePath "C:\SSFolder\VHD01.vhd" -SharePath "\\<DefaultUserRoleDataPath>\SSUserSubfolder\Folder01"

Example Example 3.: Import a library resource by a self-service user to the default user role data path in the VMM library.:

This command imports the file named VHD01.vhd stored in C:\SSFolder to the default user role data path for the self-service user role of which the logged on user is a member.

PS C:\> Import-SCLibraryPhysicalResource -SourcePath "C:\SSFolder\VHD01.vhd"

関連トピック

Export-SCLibraryPhysicalResource