{"content":"<div></div>","rawMetadata":{"metadata":{"_op_canonicalUrlPrefix":"https://learn.microsoft.com/ja-jp/powershell/","_op_gitContributorInformation":{"author":{"display_name":"Banreet Kaur","id":"92906285","name":"Banreet","profile_url":"https://github.com/Banreet"},"contributors":[{"display_name":"Aaron Czechowski","id":"26784733","name":"aczechowski","profile_url":"https://github.com/aczechowski"},{"display_name":"Dan Mabee","id":"40476441","name":"damabe","profile_url":"https://github.com/damabe"},{"display_name":"Jonathan Gao","id":"2213767","name":"mumian","profile_url":"https://github.com/mumian"},{"display_name":"sankethka","id":"16908144","name":"sankethka","profile_url":"https://github.com/sankethka"}],"update_at":"2026/09/01","updated_at_date_time":"2026-09-01T12:43:52.0890293Z"},"_path":"module/configurationmanager/set-cmcollection.json","_rel":"../../","_tocRel":"../sccm-ps/toc.json","apiPlatform":"powershell","author":"Banreet","breadcrumb_path":"/powershell/sccm/bread/toc.json","canonical_url":"https://learn.microsoft.com/ja-jp/powershell/module/configurationmanager/set-cmcollection?view=sccm-ps","content_git_url":"https://github.com/MicrosoftDocs/sccm-docs-powershell-ref/blob/main/sccm-ps/ConfigurationManager/Set-CMCollection.md","default_moniker":"sccm-ps","depot_name":"MSDN.sccm-powershell","external help file":"AdminUI.PS.dll-Help.xml","feedback_product_url":"https://feedbackportal.microsoft.com/feedback/forum/4669adfc-ee1b-ec11-b6e7-0022481f8472","feedback_system":"Standard","git_commit_id":"4203a6563bd2461e666e2d652af52c458ba89ef4","gitcommit":"https://github.com/MicrosoftDocs/sccm-docs-powershell/blob/4203a6563bd2461e666e2d652af52c458ba89ef4/sccm-ps/ConfigurationManager/Set-CMCollection.md","github_contributors":["aczechowski","damabe","mumian","sankethka"],"locale":"ja-jp","manager":"laurawi","Module Name":"ConfigurationManager","monikers":["sccm-ps"],"ms.author":"dannygu","ms.date":"12/29/2021","ms.service":"configuration-manager","ms.subservice":"other","ms.topic":"reference","open_to_public_contributors":true,"original_content_git_url":"https://github.com/MicrosoftDocs/sccm-docs-powershell/blob/live/sccm-ps/ConfigurationManager/Set-CMCollection.md","original_content_git_url_template":"{repo}/blob/{branch}/sccm-ps/ConfigurationManager/Set-CMCollection.md","PlatyPS schema version":"2.0.0","products":["https://authoring-docs-microsoft.poolparty.biz/devrel/f1499c3b-793f-48c3-a9ce-20285bcc6541"],"site_name":"Docs","title":"Set-CMCollection","titleSuffix":"Configuration Manager","uhfHeaderId":"MSDocsHeader-Powershell","updated_at":"2026-09-01 12:43 PM","xrefs":[{"href":"https://learn.microsoft.com/powershell/module/configurationmanager/set-cmcollection","monikerGroup":"f98fea35b6ac2b0f56c6ee5ec06ffce9","name":"Set-CMCollection","schemaType":"PowershellCmdlet","summary":"<p>デバイスまたはユーザー コレクションを構成します。</p>\n","uid":"ConfigurationManager.Set-CMCollection"}],"ocv-translation-feedback":true},"_xrefmap":{"ConfigurationManager":{"href":"./","monikerGroup":"f98fea35b6ac2b0f56c6ee5ec06ffce9","name":"ConfigurationManager","schemaType":"PowershellModule","uid":"ConfigurationManager"},"ConfigurationManager.Set-CMCollection":{"href":"set-cmcollection","monikerGroup":"f98fea35b6ac2b0f56c6ee5ec06ffce9","name":"Set-CMCollection","schemaType":"PowershellCmdlet","summary":"<p>デバイスまたはユーザー コレクションを構成します。</p>\n","uid":"ConfigurationManager.Set-CMCollection"}},"description":"<p>デバイスまたはユーザー コレクションを構成するには、このコマンドレットを使用します。</p>\n<p>制限コレクションは、コレクションのメンバーにできるリソースを決定します。\nたとえば、制限コレクションとして <strong>All Systems</strong> コレクションを使用する場合、新しいコレクションには Configuration Manager 階層内の任意のデバイスを含めることができます。</p>\n<p>メンバーシップ ルールを使用してコレクションにリソースを追加します。\nコレクションにメンバーを追加するには、次のいずれかのコマンドレットを使用してメンバーシップ規則を追加します。例:</p>\n<ul>\n<li>\n              <a href=\"add-cmdevicecollectionquerymembershiprule\">Add-CMDeviceCollectionQueryMembershipRule</a></li>\n<li>\n              <a href=\"add-cmusercollectionquerymembershiprule\">Add-CMUserCollectionQueryMembershipRule</a></li>\n</ul>\n<p>既定のコレクションを構成することはできません。 ターゲットとするコレクションには、 <code>SMS</code>ではなくサイト コードで始まる ID が必要です。</p>\n<p>詳細については、「 <a href=\"/mem/configmgr/core/clients/manage/collections/create-collections\">Configuration Manager でコレクションを作成する方法</a>」を参照してください。</p>\n<div class=\"NOTE\">\n<p>注:</p>\n<p>\n              <code>PS XYZ:\\&gt;</code>など、Configuration Manager サイト ドライブから Configuration Manager コマンドレットを実行します。 詳細については、「作業の <a href=\"/powershell/sccm/overview\">開始</a>」を参照してください。</p>\n</div>\n","examples":[{"code":"$userCollection = Get-CMCollection -Name \"testUser\"\nSet-CMCollection -InputObject $userCollection -NewName \"newTestUser\"","description":"","summary":"<p>最初のコマンドは <strong>、testUser</strong> という名前のコレクション オブジェクトを取得し、 <strong>$userCollection</strong> 変数に格納します。</p>\n<p>2 番目のコマンドは、コレクションの名前を更新します。</p>\n","title":"例 1: コレクションの名前を変更する"}],"inputs":[{"description":"","name":"<span class=\"no-loc xref\">Microsoft.ConfigurationManagement.ManagementProvider.IResultObject</span>\n"}],"links":[{"href":"copy-cmcollection","text":"Copy-CMCollection"},{"href":"export-cmcollection","text":"Export-CMCollection"},{"href":"get-cmcollection","text":"Get-CMCollection"},{"href":"get-cmcollectionmember","text":"Get-CMCollectionMember"},{"href":"get-cmcollectionsetting","text":"Get-CMCollectionSetting"},{"href":"import-cmcollection","text":"Import-CMCollection"},{"href":"invoke-cmcollectionupdate","text":"Invoke-CMCollectionUpdate"},{"href":"new-cmcollection","text":"New-CMCollection"},{"href":"remove-cmcollection","text":"Remove-CMCollection"},{"href":"set-cmcollection","text":"Set-CMCollection"},{"href":"set-cmdevicecollectionvariable","text":"Set-CMDeviceCollectionVariable"},{"href":"get-cmdevicecollection","text":"Get-CMDeviceCollection"},{"href":"get-cmusercollection","text":"Get-CMUserCollection"},{"href":"/mem/configmgr/core/clients/manage/collections/create-collections","text":"Configuration Manager でコレクションを作成する方法"}],"module":"ConfigurationManager","name":"Set-CMCollection","notes":"","outputs":[{"description":"","name":"<span class=\"no-loc xref\">System.Object</span>\n"}],"parameters":[{"aliases":"","defaultValue":"None","description":"<p>構成するコレクションの ID を指定します。 この値は <strong>CollectionID</strong> プロパティです (たとえば、 <code>XYZ00012</code>)。 既定のコレクションを構成できないため、この値は <code>SMS</code>ではなくサイト コードで始まります。</p>\n","isRequired":true,"name":"CollectionId","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">String</span>\n"},{"aliases":"","defaultValue":"None","description":"<p>このコレクションを説明して識別するオプションのコメントを指定します。</p>\n","name":"Comment","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">String</span>\n"},{"aliases":"cf","defaultValue":"False","description":"<p>コマンドレットを実行する前に確認メッセージを表示します。</p>\n","name":"Confirm","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">SwitchParameter</span>\n"},{"aliases":"","defaultValue":"None","description":"<p>このパラメーターは、ワイルドカード文字をリテラル文字の値として扱います。 \n              <strong>ForceWildcardHandling</strong> と組み合わせることはできません。</p>\n","name":"DisableWildcardHandling","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">SwitchParameter</span>\n"},{"aliases":"","defaultValue":"None","description":"<p>このパラメーターはワイルドカード文字を処理し、予期しない動作が発生する可能性があります (推奨されません)。 \n              <strong>DisableWildcardHandling</strong> と組み合わせることはできません。</p>\n","name":"ForceWildcardHandling","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">SwitchParameter</span>\n"},{"aliases":"Collection","defaultValue":"None","description":"<p>構成するコレクション オブジェクトを指定します。 このオブジェクトを取得するには、 <a href=\"get-cmcollection\">Get-CMCollection</a>、 <a href=\"get-cmdevicecollection\">Get-CMDeviceCollection</a>、または <a href=\"get-cmusercollection\">Get-CMUserCollection コマンドレットを</a> 使用します。</p>\n","isRequired":true,"name":"InputObject","parameterValueGroup":"","pipelineInput":true,"position":"Named","type":"<span class=\"no-loc xref\">IResultObject</span>\n"},{"aliases":"","defaultValue":"None","description":"<p>制限コレクションのオブジェクトを指定します。 このオブジェクトを取得するには、 <a href=\"get-cmcollection\">Get-CMCollection</a>、 <a href=\"get-cmdevicecollection\">Get-CMDeviceCollection</a>、または <a href=\"get-cmusercollection\">Get-CMUserCollection コマンドレットを</a> 使用します。</p>\n","name":"LimitingCollection","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">IResultObject</span>\n"},{"aliases":"LimitToCollectionId","defaultValue":"None","description":"<p>制限コレクションの ID を指定します。 この値は <strong>CollectionID</strong> プロパティです (たとえば、 <code>XYZ00012</code> や <code>SMS00001</code>)。</p>\n","name":"LimitingCollectionId","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">String</span>\n"},{"aliases":"LimitToCollectionName","defaultValue":"None","description":"<p>制限コレクションの名前を指定します。</p>\n","name":"LimitingCollectionName","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">String</span>\n"},{"aliases":"","defaultValue":"None","description":"<p>構成するコレクションの名前を指定します。</p>\n","isRequired":true,"name":"Name","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">String</span>\n"},{"aliases":"","defaultValue":"None","description":"<p>コレクションの新しい名前を指定します。 名前を変更するには、このパラメーターを使用します。</p>\n","name":"NewName","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">String</span>\n"},{"aliases":"","defaultValue":"None","description":"<p>このパラメーターを追加して、作業中のアイテムを表すオブジェクトを返します。 既定では、このコマンドレットは出力を生成しない場合があります。</p>\n","name":"PassThru","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">SwitchParameter</span>\n"},{"aliases":"","defaultValue":"None","description":"<p>\n              <strong>RefreshType</strong> パラメーターを <code>Periodic</code> または <code>Both</code> に設定する場合は、このパラメーターを使用してスケジュールを設定します。 サイトがコレクション メンバーシップの完全更新を実行する場合の schedule オブジェクトを指定します。 このオブジェクトを取得するには、 <a href=\"new-cmschedule\">New-CMSchedule コマンドレットを</a> 使用します。</p>\n","name":"RefreshSchedule","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">IResultObject</span>\n"},{"aliases":"","defaultValue":"None","description":"<p>コレクション メンバーシップの更新方法を指定します。</p>\n<ul>\n<li>\n              <code>Manual</code> (1): 管理者は、Configuration Manager コンソールまたは <a href=\"invoke-cmcollectionupdate\">Invoke-CMCollectionUpdate</a> コマンドレットを使用して、メンバーシップの更新を手動でトリガーします。</li>\n<li>\n              <code>Periodic</code> (2): サイトはスケジュールに従って完全な更新を行います。 増分更新は使用されません。 型を指定しない場合、この値が既定値です。</li>\n<li>\n              <code>Continuous</code> (4): サイトは定期的に新しいリソースを評価し、新しいメンバーを追加します。 この型は <em>、増分更新</em>とも呼ばれます。 スケジュールに従って完全な更新を行うわけではありません。</li>\n<li>\n              <code>Both</code> (6): <code>Periodic</code> と <code>Continuous</code>の両方の組み合わせで、増分更新と完全更新の両方がスケジュールに従って行われます。</li>\n</ul>\n<p>\n              <code>Periodic</code>または<code>Both</code>を指定する場合は、<strong>RefreshSchedule</strong> パラメーターを使用してスケジュールを設定します。</p>\n<div class=\"NOTE\">\n<p>注:</p>\n<p>\n              <code>None</code>値 (0) は、機能的には<code>Manual</code>と同じです。</p>\n</div>\n","name":"RefreshType","parameterValueGroup":"None, Manual, Periodic, Continuous, Both","position":"Named","type":"<span class=\"no-loc xref\">CollectionRefreshType</span>\n"},{"aliases":"DeviceCollectionVariablePrecedence","defaultValue":"None","description":"<p>デバイス コレクション変数の優先順位に 1 から 9 の整数値を指定します。 \n              <code>1</code> は最も優先順位が低く、 <code>9</code> が最も高くなります。</p>\n<p>デバイス コレクションで変数を構成するには、 <a href=\"set-cmdevicecollectionvariable\">Set-CMDeviceCollectionVariable</a> コマンドレットを使用します。</p>\n<p>現在の変数の優先度を表示するには、 <a href=\"get-cmcollectionsetting\">Get-CMCollectionSetting コマンドレットを</a> 使用します。</p>\n","name":"VariablePriority","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">Int32</span>\n"},{"aliases":"wi","defaultValue":"False","description":"<p>コマンドレットが実行されるとどうなるかを示します。 コマンドレットは実行されません。</p>\n","name":"WhatIf","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">SwitchParameter</span>\n"}],"schema":"PowershellCmdlet","summary":"<p>デバイスまたはユーザー コレクションを構成します。</p>\n","syntaxes":["Set-CMCollection [-Comment <String>] -InputObject <IResultObject> [-LimitingCollection <IResultObject>]\n [-LimitingCollectionId <String>] [-LimitingCollectionName <String>] [-NewName <String>] [-PassThru]\n [-RefreshSchedule <IResultObject>] [-RefreshType <CollectionRefreshType>] [-VariablePriority <Int32>]\n [-DisableWildcardHandling] [-ForceWildcardHandling] [-WhatIf] [-Confirm] [<CommonParameters>]","Set-CMCollection -CollectionId <String> [-Comment <String>] [-LimitingCollection <IResultObject>]\n [-LimitingCollectionId <String>] [-LimitingCollectionName <String>] [-NewName <String>] [-PassThru]\n [-RefreshSchedule <IResultObject>] [-RefreshType <CollectionRefreshType>] [-VariablePriority <Int32>]\n [-DisableWildcardHandling] [-ForceWildcardHandling] [-WhatIf] [-Confirm] [<CommonParameters>]","Set-CMCollection [-Comment <String>] [-LimitingCollection <IResultObject>] [-LimitingCollectionId <String>]\n [-LimitingCollectionName <String>] -Name <String> [-NewName <String>] [-PassThru]\n [-RefreshSchedule <IResultObject>] [-RefreshType <CollectionRefreshType>] [-VariablePriority <Int32>]\n [-DisableWildcardHandling] [-ForceWildcardHandling] [-WhatIf] [-Confirm] [<CommonParameters>]"],"uid":"ConfigurationManager.Set-CMCollection","hideEdit":true,"ms.translationtype":"MT","ms.contentlocale":"ja-jp","loc_version":"2024-08-21T21:18:36.7205003Z","loc_source_id":"Github-72476255#live","loc_file_id":"Github-72476255.live.MSDN.sccm-powershell.sccm-ps/ConfigurationManager/Set-CMCollection.md","xrefs":[{"href":"https://learn.microsoft.com/powershell/module/configurationmanager/set-cmcollection","monikerGroup":"f98fea35b6ac2b0f56c6ee5ec06ffce9","name":"Set-CMCollection","schemaType":"PowershellCmdlet","summary":"<p>デバイスまたはユーザー コレクションを構成します。</p>\n","uid":"ConfigurationManager.Set-CMCollection"}],"canonical_url":"https://learn.microsoft.com/ja-jp/powershell/module/configurationmanager/set-cmcollection?view=sccm-ps","_op_canonicalUrl":"https://learn.microsoft.com/ja-jp/powershell/module/configurationmanager/set-cmcollection?view=sccm-ps"},"pageMetadata":"<meta name=\"description\" content=\"<p>デバイスまたはユーザー コレクションを構成するには、このコマンドレットを使用します。</p>\n<p>制限コレクションは、コレクションのメンバーにできるリソースを決定します。\nたとえば、制限コレクションとして <strong>All Systems</strong> コレクションを使用する場合、新しいコレクションには Configuration Manager 階層内の任意のデバイスを含めることができます。</p>\n<p>メンバーシップ ルールを使用してコレクションにリソースを追加します。\nコレクションにメンバーを追加するには、次のいずれかのコマンドレットを使用してメンバーシップ規則を追加します。例:</p>\n<ul>\n<li>\n              <a href=&quot;add-cmdevicecollectionquerymembershiprule&quot;>Add-CMDeviceCollectionQueryMembershipRule</a></li>\n<li>\n              <a href=&quot;add-cmusercollectionquerymembershiprule&quot;>Add-CMUserCollectionQueryMembershipRule</a></li>\n</ul>\n<p>既定のコレクションを構成することはできません。 ターゲットとするコレクションには、 <code>SMS</code>ではなくサイト コードで始まる ID が必要です。</p>\n<p>詳細については、「 <a href=&quot;/mem/configmgr/core/clients/manage/collections/create-collections&quot;>Configuration Manager でコレクションを作成する方法</a>」を参照してください。</p>\n<div class=&quot;NOTE&quot;>\n<p>注:</p>\n<p>\n              <code>PS XYZ:\\&amp;gt;</code>など、Configuration Manager サイト ドライブから Configuration Manager コマンドレットを実行します。 詳細については、「作業の <a href=&quot;/powershell/sccm/overview&quot;>開始</a>」を参照してください。</p>\n</div>\n\" />\r\n<meta name=\"hideEdit\" content=\"true\" />\r\n<meta name=\"loc_file_id\" content=\"Github-72476255.live.MSDN.sccm-powershell.sccm-ps/ConfigurationManager/Set-CMCollection.md\" />\r\n<meta name=\"loc_source_id\" content=\"Github-72476255#live\" />\r\n<meta name=\"loc_version\" content=\"2024-08-21T21:18:36.7205003Z\" />\r\n<meta name=\"module\" content=\"ConfigurationManager\" />\r\n<meta name=\"ms.contentlocale\" content=\"ja-jp\" />\r\n<meta name=\"ms.translationtype\" content=\"MT\" />\r\n<meta name=\"name\" content=\"Set-CMCollection\" />\r\n<meta name=\"notes\" content=\"\" />\r\n<meta name=\"schema\" content=\"PowershellCmdlet\" />\r\n<meta name=\"summary\" content=\"<p>デバイスまたはユーザー コレクションを構成します。</p>\n\" />\r\n<meta name=\"syntaxes\" content=\"Set-CMCollection [-Comment <String>] -InputObject <IResultObject> [-LimitingCollection <IResultObject>]\n [-LimitingCollectionId <String>] [-LimitingCollectionName <String>] [-NewName <String>] [-PassThru]\n [-RefreshSchedule <IResultObject>] [-RefreshType <CollectionRefreshType>] [-VariablePriority <Int32>]\n [-DisableWildcardHandling] [-ForceWildcardHandling] [-WhatIf] [-Confirm] [<CommonParameters>]\" />\r\n<meta name=\"syntaxes\" content=\"Set-CMCollection -CollectionId <String> [-Comment <String>] [-LimitingCollection <IResultObject>]\n [-LimitingCollectionId <String>] [-LimitingCollectionName <String>] [-NewName <String>] [-PassThru]\n [-RefreshSchedule <IResultObject>] [-RefreshType <CollectionRefreshType>] [-VariablePriority <Int32>]\n [-DisableWildcardHandling] [-ForceWildcardHandling] [-WhatIf] [-Confirm] [<CommonParameters>]\" />\r\n<meta name=\"syntaxes\" content=\"Set-CMCollection [-Comment <String>] [-LimitingCollection <IResultObject>] [-LimitingCollectionId <String>]\n [-LimitingCollectionName <String>] -Name <String> [-NewName <String>] [-PassThru]\n [-RefreshSchedule <IResultObject>] [-RefreshType <CollectionRefreshType>] [-VariablePriority <Int32>]\n [-DisableWildcardHandling] [-ForceWildcardHandling] [-WhatIf] [-Confirm] [<CommonParameters>]\" />\r\n<meta name=\"uid\" content=\"ConfigurationManager.Set-CMCollection\" />\r\n","themesRelativePathToOutputRoot":"_themes/"}