{"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/06/25","updated_at_date_time":"2026-06-25T23:23:07.409516Z"},"_path":"module/configurationmanager/new-cmcompliancerulefilefoldersimple.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/new-cmcompliancerulefilefoldersimple?view=sccm-ps","content_git_url":"https://github.com/MicrosoftDocs/sccm-docs-powershell-ref/blob/main/sccm-ps/ConfigurationManager/New-CMComplianceRuleFileFolderSimple.md","default_moniker":"sccm-ps","depot_name":"MSDN.sccm-powershell","description":"単純なファイル フォルダーのコンプライアンス規則を作成します。","document_id":"57120b62-5305-4edc-6c08-4a3b2690e2dc","document_version_independent_id":"a1cc9247-d7e3-360d-5ec1-2f8a9af14b00","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":"48cf632fb4b9ad92060012681a500478254de750","gitcommit":"https://github.com/MicrosoftDocs/sccm-docs-powershell/blob/48cf632fb4b9ad92060012681a500478254de750/sccm-ps/ConfigurationManager/New-CMComplianceRuleFileFolderSimple.md","github_contributors":["aczechowski","damabe","sankethka"],"locale":"ja-jp","manager":"laurawi","Module Name":"ConfigurationManager","monikers":["sccm-ps"],"ms.author":"dannygu","ms.date":"11/20/2020","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/New-CMComplianceRuleFileFolderSimple.md","original_content_git_url_template":"{repo}/blob/{branch}/sccm-ps/ConfigurationManager/New-CMComplianceRuleFileFolderSimple.md","PlatyPS schema version":"2.0.0","products":["https://authoring-docs-microsoft.poolparty.biz/devrel/f1499c3b-793f-48c3-a9ce-20285bcc6541"],"site_name":"Docs","title":"New-CMComplianceRuleFileFolderSimple","titleSuffix":"Configuration Manager","uhfHeaderId":"MSDocsHeader-Powershell","updated_at":"2026-06-25 11:23 PM","xrefs":[{"href":"https://learn.microsoft.com/powershell/module/configurationmanager/new-cmcompliancerulefilefoldersimple","monikerGroup":"f98fea35b6ac2b0f56c6ee5ec06ffce9","name":"New-CMComplianceRuleFileFolderSimple","schemaType":"PowershellCmdlet","summary":"<p>単純なファイル フォルダーのコンプライアンス規則を作成します。</p>\n","uid":"ConfigurationManager.New-CMComplianceRuleFileFolderSimple"}],"ocv-translation-feedback":true},"_xrefmap":{"ConfigurationManager":{"href":"./","monikerGroup":"f98fea35b6ac2b0f56c6ee5ec06ffce9","name":"ConfigurationManager","schemaType":"PowershellModule","uid":"ConfigurationManager"},"ConfigurationManager.New-CMComplianceRuleFileFolderSimple":{"href":"new-cmcompliancerulefilefoldersimple","monikerGroup":"f98fea35b6ac2b0f56c6ee5ec06ffce9","name":"New-CMComplianceRuleFileFolderSimple","schemaType":"PowershellCmdlet","summary":"<p>単純なファイル フォルダーのコンプライアンス規則を作成します。</p>\n","uid":"ConfigurationManager.New-CMComplianceRuleFileFolderSimple"}},"description":"<p>このコマンドレットを使用して、単純なファイル フォルダーのコンプライアンス規則を作成します。</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":"$ci = Get-CMConfigurationItem -Name \"ci1\" -Fast\n\n$Result = $ci | Add-CMComplianceSettingFile -Path \"C:\\\" -FileName  \"TestFile.exe\" -NoRule -Name \"AttributeSetting1\"\n\n$TestSet = $Result | Get-CMComplianceSetting -SettingName \"AttributeSetting1\"\n\n$r1 = $TestSet | New-CMComplianceRuleFileFolderSimple -PropertyType SHA1Hash -RuleName \"RuleSha1HashEquals\" -ExpressionOperator IsEquals -ExpectedValue \"s4XuFV2KZldXAMQZ6YEWFv+5zA6ZB982Fbh471TMboc=\"\n\n$r2 = $TestSet | New-CMComplianceRuleFileFolderSimple -PropertyType Company -RuleName \"RuleCompanyEquals\" -ExpressionOperator IsEquals -ExpectedValue \"Contoso\"\n\n$r3 = $TestSet | New-CMComplianceRuleFileFolderSimple -PropertyType ProductName -RuleName \"RuleProductNameEquals\" -ExpressionOperator IsEquals -ExpectedValue \"MyContoso\"\n\n$Result | Add-CMComplianceSettingRule -Rule $r1\n\n$Result | Add-CMComplianceSettingRule -Rule $r2\n\n$Result | Add-CMComplianceSettingRule -Rule $r3","description":"","summary":"","title":"例 1"}],"inputs":[{"description":"","name":"<span class=\"no-loc xref\">Microsoft.ConfigurationManagement.DesiredConfigurationManagement.ConfigurationItemSetting</span>\n"}],"links":[{"href":"get-cmconfigurationitem","text":"Get-CMConfigurationItem"},{"href":"add-cmcompliancesettingfile","text":"Add-CMComplianceSettingFile"},{"href":"get-cmcompliancesetting","text":"Get-CMComplianceSetting"},{"href":"add-cmcompliancesettingrule","text":"Add-CMComplianceSettingRule"}],"module":"ConfigurationManager","name":"New-CMComplianceRuleFileFolderSimple","notes":"","outputs":[{"description":"","name":"<span class=\"no-loc xref\">System.Object</span>\n"}],"parameters":[{"aliases":"cf","defaultValue":"None","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":"ExpectedValues","defaultValue":"None","description":"<p>値を比較する文字列の配列を指定します。 比較する値は、指定した <strong>PropertyType</strong> によって異なります。</p>\n","name":"ExpectedValue","parameterValueGroup":"","position":"Named","type":"<p><span class=\"no-loc xref\">String</span><span>[</span><span>]</span></p>\n"},{"aliases":"","defaultValue":"None","description":"<p>\n              <strong>ExpectedValue</strong> には、比較演算子を指定します。</p>\n","isRequired":true,"name":"ExpressionOperator","parameterValueGroup":"And, Or, Other, IsEquals, NotEquals, GreaterThan, LessThan, Between, NotBetween, GreaterEquals, LessEquals, BeginsWith, NotBeginsWith, EndsWith, NotEndsWith, Contains, NotContains, AllOf, OneOf, NoneOf, SetEquals, SubsetOf, ExcludesAll","position":"Named","type":"<span class=\"no-loc xref\">RuleExpressionOperator</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":"Setting","defaultValue":"None","description":"<p>このルールのターゲットとして構成項目設定オブジェクトを指定します。</p>\n","isRequired":true,"name":"InputObject","parameterValueGroup":"","pipelineInput":true,"position":"Named","type":"<span class=\"no-loc xref\">ConfigurationItemSetting</span>\n"},{"aliases":"","defaultValue":"None","description":"<p>ルールが非準拠の場合のレポートの重大度レベルを指定します。</p>\n","name":"NoncomplianceSeverity","parameterValueGroup":"None, Informational, Warning, Critical, CriticalWithEvent","position":"Named","type":"<span class=\"no-loc xref\">NoncomplianceSeverity</span>\n"},{"aliases":"","defaultValue":"None","description":"<p>コンプライアンスの比較と評価を行う folder プロパティを指定します。 このプロパティの値を指定するには <strong>-ExpectedValue</strong> パラメーターを使用し、比較手段を指定するには <strong>-ExpressionOperator</strong> パラメーターを使用します。</p>\n<p>バージョン 2010 以降、パラメーターの型が <em>FileFolderProperty</em> から <em>SimpleFileFolderProperty</em> 型に変更されました。</p>\n","isRequired":true,"name":"PropertyType","parameterValueGroup":"Company, ProductName, SHA1Hash","position":"Named","type":"<span class=\"no-loc xref\">SimpleFileFolderProperty</span>\n"},{"aliases":"","defaultValue":"None","description":"<p>この設定インスタンスが見つからない場合は、このパラメーターを追加して非準拠を報告します。</p>\n","name":"ReportNoncompliance","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">SwitchParameter</span>\n"},{"aliases":"","defaultValue":"None","description":"<p>この規則の説明 (省略可能) を指定します。</p>\n","name":"RuleDescription","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">String</span>\n"},{"aliases":"","defaultValue":"None","description":"<p>この規則の名前を指定します。</p>\n","isRequired":true,"name":"RuleName","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">String</span>\n"},{"aliases":"wi","defaultValue":"None","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":["New-CMComplianceRuleFileFolderSimple -PropertyType <SimpleFileFolderProperty>\n -ExpressionOperator <RuleExpressionOperator> [-ReportNoncompliance] -InputObject <ConfigurationItemSetting>\n -RuleName <String> [-ExpectedValue <String[]>] [-NoncomplianceSeverity <NoncomplianceSeverity>]\n [-RuleDescription <String>] [-DisableWildcardHandling] [-ForceWildcardHandling] [-WhatIf] [-Confirm]\n [<CommonParameters>]"],"uid":"ConfigurationManager.New-CMComplianceRuleFileFolderSimple","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/New-CMComplianceRuleFileFolderSimple.md","xrefs":[{"href":"https://learn.microsoft.com/powershell/module/configurationmanager/new-cmcompliancerulefilefoldersimple","monikerGroup":"f98fea35b6ac2b0f56c6ee5ec06ffce9","name":"New-CMComplianceRuleFileFolderSimple","schemaType":"PowershellCmdlet","summary":"<p>単純なファイル フォルダーのコンプライアンス規則を作成します。</p>\n","uid":"ConfigurationManager.New-CMComplianceRuleFileFolderSimple"}],"canonical_url":"https://learn.microsoft.com/ja-jp/powershell/module/configurationmanager/new-cmcompliancerulefilefoldersimple?view=sccm-ps","_op_canonicalUrl":"https://learn.microsoft.com/ja-jp/powershell/module/configurationmanager/new-cmcompliancerulefilefoldersimple?view=sccm-ps"},"pageMetadata":"<meta name=\"description\" content=\"<p>このコマンドレットを使用して、単純なファイル フォルダーのコンプライアンス規則を作成します。</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/New-CMComplianceRuleFileFolderSimple.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=\"New-CMComplianceRuleFileFolderSimple\" />\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=\"New-CMComplianceRuleFileFolderSimple -PropertyType <SimpleFileFolderProperty>\n -ExpressionOperator <RuleExpressionOperator> [-ReportNoncompliance] -InputObject <ConfigurationItemSetting>\n -RuleName <String> [-ExpectedValue <String[]>] [-NoncomplianceSeverity <NoncomplianceSeverity>]\n [-RuleDescription <String>] [-DisableWildcardHandling] [-ForceWildcardHandling] [-WhatIf] [-Confirm]\n [<CommonParameters>]\" />\r\n<meta name=\"uid\" content=\"ConfigurationManager.New-CMComplianceRuleFileFolderSimple\" />\r\n","themesRelativePathToOutputRoot":"_themes/"}