{"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":"sankethka","id":"16908144","name":"sankethka","profile_url":"https://github.com/sankethka"}],"update_at":"2026/08/03","updated_at_date_time":"2026-08-03T07:57:19.3653519Z"},"_path":"module/configurationmanager/get-cmmaintenancewindow.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/get-cmmaintenancewindow?view=sccm-ps","content_git_url":"https://github.com/MicrosoftDocs/sccm-docs-powershell-ref/blob/main/sccm-ps/ConfigurationManager/Get-CMMaintenanceWindow.md","default_moniker":"sccm-ps","depot_name":"MSDN.sccm-powershell","description":"コレクションのメンテナンス期間を取得します。","document_id":"49113586-8032-adea-1fdf-ef7edf9e5ee5","document_version_independent_id":"62ec9501-05be-9081-efb3-110b07bc0530","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":"c74b3f4574af7a8a480adb998b311f6eeeb3e856","gitcommit":"https://github.com/MicrosoftDocs/sccm-docs-powershell/blob/c74b3f4574af7a8a480adb998b311f6eeeb3e856/sccm-ps/ConfigurationManager/Get-CMMaintenanceWindow.md","github_contributors":["aczechowski","damabe","sankethka"],"locale":"ja-jp","manager":"laurawi","Module Name":"ConfigurationManager","monikers":["sccm-ps"],"ms.author":"dannygu","ms.date":"06/16/2021","ms.service":"microsoft-endpoint-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/Get-CMMaintenanceWindow.md","original_content_git_url_template":"{repo}/blob/{branch}/sccm-ps/ConfigurationManager/Get-CMMaintenanceWindow.md","PlatyPS schema version":"2.0.0","products":["https://authoring-docs-microsoft.poolparty.biz/devrel/f1499c3b-793f-48c3-a9ce-20285bcc6541"],"site_name":"Docs","title":"Get-CMMaintenanceWindow","titleSuffix":"Configuration Manager","uhfHeaderId":"MSDocsHeader-Powershell","updated_at":"2026-08-03 07:57 AM","xrefs":[{"href":"https://learn.microsoft.com/powershell/module/configurationmanager/get-cmmaintenancewindow","monikerGroup":"f98fea35b6ac2b0f56c6ee5ec06ffce9","name":"Get-CMMaintenanceWindow","schemaType":"PowershellCmdlet","summary":"<p>コレクションのメンテナンス期間を取得します。</p>\n","uid":"ConfigurationManager.Get-CMMaintenanceWindow"}],"ocv-translation-feedback":true},"_xrefmap":{"ConfigurationManager":{"href":"./","monikerGroup":"f98fea35b6ac2b0f56c6ee5ec06ffce9","name":"ConfigurationManager","schemaType":"PowershellModule","uid":"ConfigurationManager"},"ConfigurationManager.Get-CMMaintenanceWindow":{"href":"get-cmmaintenancewindow","monikerGroup":"f98fea35b6ac2b0f56c6ee5ec06ffce9","name":"Get-CMMaintenanceWindow","schemaType":"PowershellCmdlet","summary":"<p>コレクションのメンテナンス期間を取得します。</p>\n","uid":"ConfigurationManager.Get-CMMaintenanceWindow"}},"description":"<p>このコマンドレットを使用して、指定したコレクションのメンテナンス期間を取得します。 特定のメンテナンス期間に結果をフィルター処理することもできます。</p>\n<p>メンテナンス期間の詳細については、「 <a href=\"/mem/configmgr/core/clients/manage/collections/use-maintenance-windows\">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":"Get-CMMaintenanceWindow -CollectionID \"XYZ0004D\" | Where-Object { $_.IsEnabled }","description":"","summary":"<p>このコマンドは、指定したコレクションに対して有効になっているメンテナンス期間を取得します。</p>\n","title":"例 1: ID でコレクションのメンテナンス期間を有効にする"},{"code":"$coll = Get-CMCollection -CollectionID 'XYZ0003F'\n$coll | Get-CMMaintenanceWindow -MaintenanceWindowName 'nightly SUM window'","description":"","summary":"<p>次の使用例は、最初にコレクション オブジェクトを取得し、それをパイプラインに渡して、名前でメンテナンス期間を取得します。</p>\n","title":"例 2: コレクション オブジェクトのすべてのメンテナンス期間を取得する"},{"code":"$mw = Get-CMMaintenanceWindow -CollectionID \"XYZ000AB\"\nConvert-CMSchedule -ScheduleString $mw.ServiceWindowSchedules","description":"","summary":"<p>この例では、最初に特定のコレクションのメンテナンス期間を取得します。 次に、ServiceWindowSchedules プロパティを変換して、メンテナンス期間のスケジュールを表示します。</p>\n","title":"例 3: メンテナンス期間のスケジュールを取得する"}],"inputs":[{"description":"","name":"<span class=\"no-loc xref\">Microsoft.ConfigurationManagement.ManagementProvider.IResultObject</span>\n"}],"links":[{"href":"new-cmmaintenancewindow","text":"New-CMMaintenanceWindow"},{"href":"remove-cmmaintenancewindow","text":"Remove-CMMaintenanceWindow"},{"href":"set-cmmaintenancewindow","text":"Set-CMMaintenanceWindow"},{"href":"/mem/configmgr/core/clients/manage/collections/use-maintenance-windows","text":"Configuration Manager でメンテナンス期間を使用する方法"}],"module":"ConfigurationManager","name":"Get-CMMaintenanceWindow","notes":"<p>この戻りオブジェクトとそのプロパティの詳細については、「 <a href=\"/mem/configmgr/develop/reference/core/servers/configure/sms_servicewindow-server-wmi-class\">サーバー WMI クラスSMS_ServiceWindow</a>」を参照してください。</p>\n","outputs":[{"description":"","name":"<span class=\"no-loc xref\">IResultObject[]</span>\n"}],"parameters":[{"aliases":"","defaultValue":"None","description":"<p>メンテナンス期間を照会するコレクション ID を指定します。 この ID は、 <code>XYZ0003F</code>など、標準のコレクション ID です。</p>\n","isRequired":true,"name":"CollectionId","parameterValueGroup":"","position":"0","type":"<span class=\"no-loc xref\">String</span>\n"},{"aliases":"","defaultValue":"None","description":"<p>メンテナンス期間を照会するコレクション名を指定します。</p>\n","isRequired":true,"name":"CollectionName","parameterValueGroup":"","position":"0","type":"<span class=\"no-loc xref\">String</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, Site","defaultValue":"None","description":"<p>メンテナンス期間を照会するコレクション オブジェクトを指定します。 このオブジェクトを取得するには、 <a href=\"get-cmcollection\">Get-CMCollection コマンドレットを</a> 使用します。</p>\n","isRequired":true,"name":"InputObject","parameterValueGroup":"","pipelineInput":true,"position":"0","type":"<span class=\"no-loc xref\">IResultObject</span>\n"},{"acceptWildcardCharacters":true,"aliases":"Name","defaultValue":"None","description":"<p>対象のコレクションのメンテナンス期間の名前を指定します。 既定では、 <strong>Get-CMMaintenanceWindow</strong> はすべてのメンテナンス期間を返します。 指定したウィンドウ名に結果をフィルター処理するには、このパラメーターを使用します。</p>\n<p>ワイルドカード文字を使用できます。</p>\n<ul>\n<li>\n              <code>*</code>: 複数の文字</li>\n<li>\n              <code>?</code>: 1 文字</li>\n</ul>\n","name":"MaintenanceWindowName","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">String</span>\n"}],"schema":"PowershellCmdlet","summary":"<p>コレクションのメンテナンス期間を取得します。</p>\n","syntaxes":["Get-CMMaintenanceWindow [-InputObject] <IResultObject> [-MaintenanceWindowName <String>]\n [-DisableWildcardHandling] [-ForceWildcardHandling] [<CommonParameters>]","Get-CMMaintenanceWindow [-CollectionId] <String> [-MaintenanceWindowName <String>] [-DisableWildcardHandling]\n [-ForceWildcardHandling] [<CommonParameters>]","Get-CMMaintenanceWindow [-CollectionName] <String> [-MaintenanceWindowName <String>] [-DisableWildcardHandling]\n [-ForceWildcardHandling] [<CommonParameters>]"],"uid":"ConfigurationManager.Get-CMMaintenanceWindow","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/Get-CMMaintenanceWindow.md","xrefs":[{"href":"https://learn.microsoft.com/powershell/module/configurationmanager/get-cmmaintenancewindow","monikerGroup":"f98fea35b6ac2b0f56c6ee5ec06ffce9","name":"Get-CMMaintenanceWindow","schemaType":"PowershellCmdlet","summary":"<p>コレクションのメンテナンス期間を取得します。</p>\n","uid":"ConfigurationManager.Get-CMMaintenanceWindow"}],"canonical_url":"https://learn.microsoft.com/ja-jp/powershell/module/configurationmanager/get-cmmaintenancewindow?view=sccm-ps","_op_canonicalUrl":"https://learn.microsoft.com/ja-jp/powershell/module/configurationmanager/get-cmmaintenancewindow?view=sccm-ps"},"pageMetadata":"<meta name=\"description\" content=\"<p>このコマンドレットを使用して、指定したコレクションのメンテナンス期間を取得します。 特定のメンテナンス期間に結果をフィルター処理することもできます。</p>\n<p>メンテナンス期間の詳細については、「 <a href=&quot;/mem/configmgr/core/clients/manage/collections/use-maintenance-windows&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/Get-CMMaintenanceWindow.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=\"Get-CMMaintenanceWindow\" />\r\n<meta name=\"notes\" content=\"<p>この戻りオブジェクトとそのプロパティの詳細については、「 <a href=&quot;/mem/configmgr/develop/reference/core/servers/configure/sms_servicewindow-server-wmi-class&quot;>サーバー WMI クラスSMS_ServiceWindow</a>」を参照してください。</p>\n\" />\r\n<meta name=\"schema\" content=\"PowershellCmdlet\" />\r\n<meta name=\"summary\" content=\"<p>コレクションのメンテナンス期間を取得します。</p>\n\" />\r\n<meta name=\"syntaxes\" content=\"Get-CMMaintenanceWindow [-InputObject] <IResultObject> [-MaintenanceWindowName <String>]\n [-DisableWildcardHandling] [-ForceWildcardHandling] [<CommonParameters>]\" />\r\n<meta name=\"syntaxes\" content=\"Get-CMMaintenanceWindow [-CollectionId] <String> [-MaintenanceWindowName <String>] [-DisableWildcardHandling]\n [-ForceWildcardHandling] [<CommonParameters>]\" />\r\n<meta name=\"syntaxes\" content=\"Get-CMMaintenanceWindow [-CollectionName] <String> [-MaintenanceWindowName <String>] [-DisableWildcardHandling]\n [-ForceWildcardHandling] [<CommonParameters>]\" />\r\n<meta name=\"uid\" content=\"ConfigurationManager.Get-CMMaintenanceWindow\" />\r\n","themesRelativePathToOutputRoot":"_themes/"}