{"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/09/01","updated_at_date_time":"2026-09-01T11:34:01.9565933Z"},"_path":"module/configurationmanager/export-cmsecurityrole.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/export-cmsecurityrole?view=sccm-ps","content_git_url":"https://github.com/MicrosoftDocs/sccm-docs-powershell-ref/blob/main/sccm-ps/ConfigurationManager/Export-CMSecurityRole.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":"0eebe140da8d33091d6703e03cf0d5da3ec90ad8","gitcommit":"https://github.com/MicrosoftDocs/sccm-docs-powershell/blob/0eebe140da8d33091d6703e03cf0d5da3ec90ad8/sccm-ps/ConfigurationManager/Export-CMSecurityRole.md","github_contributors":["aczechowski","damabe","sankethka"],"locale":"ja-jp","manager":"laurawi","Module Name":"ConfigurationManager","monikers":["sccm-ps"],"ms.author":"dannygu","ms.date":"12/21/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/Export-CMSecurityRole.md","original_content_git_url_template":"{repo}/blob/{branch}/sccm-ps/ConfigurationManager/Export-CMSecurityRole.md","PlatyPS schema version":"2.0.0","products":["https://authoring-docs-microsoft.poolparty.biz/devrel/f1499c3b-793f-48c3-a9ce-20285bcc6541"],"site_name":"Docs","title":"Export-CMSecurityRole","titleSuffix":"Configuration Manager","uhfHeaderId":"MSDocsHeader-Powershell","updated_at":"2026-09-01 11:34 AM","xrefs":[{"href":"https://learn.microsoft.com/powershell/module/configurationmanager/export-cmsecurityrole","monikerGroup":"f98fea35b6ac2b0f56c6ee5ec06ffce9","name":"Export-CMSecurityRole","schemaType":"PowershellCmdlet","summary":"<p>セキュリティ ロールを XML ファイルにエクスポートします。</p>\n","uid":"ConfigurationManager.Export-CMSecurityRole"}],"ocv-translation-feedback":true},"_xrefmap":{"ConfigurationManager":{"href":"./","monikerGroup":"f98fea35b6ac2b0f56c6ee5ec06ffce9","name":"ConfigurationManager","schemaType":"PowershellModule","uid":"ConfigurationManager"},"ConfigurationManager.Export-CMSecurityRole":{"href":"export-cmsecurityrole","monikerGroup":"f98fea35b6ac2b0f56c6ee5ec06ffce9","name":"Export-CMSecurityRole","schemaType":"PowershellCmdlet","summary":"<p>セキュリティ ロールを XML ファイルにエクスポートします。</p>\n","uid":"ConfigurationManager.Export-CMSecurityRole"}},"description":"<p>このコマンドレットを使用して、カスタム セキュリティ ロールの構成をサイトから XML ファイルにエクスポートします。 組み込みのロールをエクスポートすることはできません。 セキュリティ ロールとアクセス許可の詳細については、「 <a href=\"/mem/configmgr/core/understand/fundamentals-of-role-based-administration\">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":"Export-CMSecurityRole -Path \"\\\\Contoso01\\Export\\Sec_Roles\\Security_Manager.xml\" -RoleId \"XYZ00001\"","description":"","summary":"<p>このコマンドは、XYZ00001 という名前 <strong>の</strong> カスタム セキュリティ ロールをSecurity_Manager.xmlという名前のファイル <strong> に </strong>エクスポートします。</p>\n","title":"例 1: カスタム セキュリティ ロールをエクスポートする"}],"inputs":[{"description":"","name":"<span class=\"no-loc xref\">Microsoft.ConfigurationManagement.ManagementProvider.IResultObject</span>\n"}],"links":[{"href":"copy-cmsecurityrole","text":"Copy-CMSecurityRole"},{"href":"get-cmsecurityrole","text":"Get-CMSecurityRole"},{"href":"import-cmsecurityrole","text":"Import-CMSecurityRole"},{"href":"set-cmsecurityrole","text":"Set-CMSecurityRole"},{"href":"remove-cmsecurityrole","text":"Remove-CMSecurityRole"},{"href":"/mem/configmgr/core/servers/deploy/configure/configure-role-based-administration#automate-with-windows-power-shell","text":"Windows PowerShell を使用してロールベースの管理を自動化する"}],"module":"ConfigurationManager","name":"Export-CMSecurityRole","notes":"","outputs":[{"description":"","name":"<span class=\"no-loc xref\">System.Object</span>\n"}],"parameters":[{"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":"Role","defaultValue":"None","description":"<p>エクスポートするセキュリティ ロール オブジェクトを指定します。 このオブジェクトを取得するには、 <a href=\"get-cmsecurityrole\">Get-CMSecurityRole コマンドレットを</a> 使用します。</p>\n","isRequired":true,"name":"InputObject","parameterValueGroup":"","pipelineInput":true,"position":"Named","type":"<span class=\"no-loc xref\">IResultObject</span>\n"},{"aliases":"FileName, FilePath, ExportFilePath, XmlFileName, RolesXml","defaultValue":"None","description":"<p>セキュリティ ロールをエクスポートする XML ファイルのパスを指定します。 ローカル パスまたはネットワーク パスを指定できます。 \n              <code>.xml</code>ファイル拡張子を含めます。</p>\n","isRequired":true,"name":"Path","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">String</span>\n"},{"aliases":"","defaultValue":"None","description":"<p>エクスポートするセキュリティ ロールの ID を指定します。 この値は、 <code>RoleID</code> プロパティです。 このコマンドレットはカスタム ロールでのみ機能するため、この値は常にサイト コードで始まる必要があります。 (組み込みロールの ID は <code>SMS</code>から始まります)。</p>\n","isRequired":true,"name":"RoleId","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">String</span>\n"},{"aliases":"","defaultValue":"None","description":"<p>エクスポートするセキュリティ ロールの名前を指定します。</p>\n","isRequired":true,"name":"RoleName","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">String</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>セキュリティ ロールを XML ファイルにエクスポートします。</p>\n","syntaxes":["Export-CMSecurityRole -InputObject <IResultObject> -Path <String> [-DisableWildcardHandling]\n [-ForceWildcardHandling] [-WhatIf] [-Confirm] [<CommonParameters>]","Export-CMSecurityRole -Path <String> -RoleId <String> [-DisableWildcardHandling] [-ForceWildcardHandling]\n [-WhatIf] [-Confirm] [<CommonParameters>]","Export-CMSecurityRole -Path <String> -RoleName <String> [-DisableWildcardHandling] [-ForceWildcardHandling]\n [-WhatIf] [-Confirm] [<CommonParameters>]"],"uid":"ConfigurationManager.Export-CMSecurityRole","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/Export-CMSecurityRole.md","xrefs":[{"href":"https://learn.microsoft.com/powershell/module/configurationmanager/export-cmsecurityrole","monikerGroup":"f98fea35b6ac2b0f56c6ee5ec06ffce9","name":"Export-CMSecurityRole","schemaType":"PowershellCmdlet","summary":"<p>セキュリティ ロールを XML ファイルにエクスポートします。</p>\n","uid":"ConfigurationManager.Export-CMSecurityRole"}],"canonical_url":"https://learn.microsoft.com/ja-jp/powershell/module/configurationmanager/export-cmsecurityrole?view=sccm-ps","_op_canonicalUrl":"https://learn.microsoft.com/ja-jp/powershell/module/configurationmanager/export-cmsecurityrole?view=sccm-ps"},"pageMetadata":"<meta name=\"description\" content=\"<p>このコマンドレットを使用して、カスタム セキュリティ ロールの構成をサイトから XML ファイルにエクスポートします。 組み込みのロールをエクスポートすることはできません。 セキュリティ ロールとアクセス許可の詳細については、「 <a href=&quot;/mem/configmgr/core/understand/fundamentals-of-role-based-administration&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/Export-CMSecurityRole.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=\"Export-CMSecurityRole\" />\r\n<meta name=\"notes\" content=\"\" />\r\n<meta name=\"schema\" content=\"PowershellCmdlet\" />\r\n<meta name=\"summary\" content=\"<p>セキュリティ ロールを XML ファイルにエクスポートします。</p>\n\" />\r\n<meta name=\"syntaxes\" content=\"Export-CMSecurityRole -InputObject <IResultObject> -Path <String> [-DisableWildcardHandling]\n [-ForceWildcardHandling] [-WhatIf] [-Confirm] [<CommonParameters>]\" />\r\n<meta name=\"syntaxes\" content=\"Export-CMSecurityRole -Path <String> -RoleId <String> [-DisableWildcardHandling] [-ForceWildcardHandling]\n [-WhatIf] [-Confirm] [<CommonParameters>]\" />\r\n<meta name=\"syntaxes\" content=\"Export-CMSecurityRole -Path <String> -RoleName <String> [-DisableWildcardHandling] [-ForceWildcardHandling]\n [-WhatIf] [-Confirm] [<CommonParameters>]\" />\r\n<meta name=\"uid\" content=\"ConfigurationManager.Export-CMSecurityRole\" />\r\n","themesRelativePathToOutputRoot":"_themes/"}