Move-CMObject
Move-CMObject
Moves a Configuration Manager object into a different folder.
構文
Parameter Set: SearchByIdMandatory
Move-CMObject -FolderPath <String> -ObjectId <String[]> [-Confirm] [-WhatIf] [ <CommonParameters>]
Parameter Set: SearchByObjectMandatory
Move-CMObject -FolderPath <String> -InputObject <IResultObject[]> [-Confirm] [-WhatIf] [ <CommonParameters>]
詳細説明
The Move-CMObject cmdlet moves a Microsoft System Center 2012 Configuration Manager object into a different folder. Specify the object to move and the destination folder. Because an object exists in only one folder, the cmdlet does not specify the current folder.
パラメーター
-FolderPath<String>
Specifies a destination folder path, in the following format: AAA:\<object type>\folder\sub-folder\subfolder, where AAA represents the Configuration Manager site code. For example, a folder called LOB Apps for an application node at a sight designated CM1 has the following file path: CM1:\Application\LOB Apps.
エイリアス |
なし |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-InputObject<IResultObject[]>
Specifies an array of Configuration Manager objects to move.
エイリアス |
なし |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-ObjectId<String[]>
Specifies an array of IDs of objects to move.
エイリアス |
InstanceKey |
必須? |
true |
位置は? |
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: Move an object
This command moves the object that has the specified ID to the folder GKP:\Application\TestFolder.
PS C:\> Move-CMObject -FolderPath "GKP:\Application\TestFolder" -ObjectId "209224563"