{"content":"<div></div>","rawMetadata":{"metadata":{"_op_canonicalUrlPrefix":"https://learn.microsoft.com/de-de/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":"Chris Kibble","id":"39386226","name":"ChrisKibble","profile_url":"https://github.com/ChrisKibble"},{"display_name":"sankethka","id":"16908144","name":"sankethka","profile_url":"https://github.com/sankethka"}],"update_at":"25.06.2026","updated_at_date_time":"2026-06-25T23:35:39.1031072Z"},"_path":"module/configurationmanager/new-cmtsstepconditionifstatement.json","_rel":"../../","_tocRel":"../sccm-ps/toc.json","apiPlatform":"powershell","author":"Banreet","breadcrumb_path":"/powershell/sccm/bread/toc.json","canonical_url":"https://learn.microsoft.com/de-de/powershell/module/configurationmanager/new-cmtsstepconditionifstatement?view=sccm-ps","content_git_url":"https://github.com/MicrosoftDocs/sccm-docs-powershell-ref/blob/main/sccm-ps/ConfigurationManager/New-CMTSStepConditionIfStatement.md","default_moniker":"sccm-ps","depot_name":"MSDN.sccm-powershell","document_id":"f20fddef-1de2-6450-824f-7c3f1f3b3991","document_version_independent_id":"3be79e8f-8f30-01c5-9677-604823ce671c","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":"feb10061cae80cda58061bf333c9af520bf62498","gitcommit":"https://github.com/MicrosoftDocs/sccm-docs-powershell/blob/feb10061cae80cda58061bf333c9af520bf62498/sccm-ps/ConfigurationManager/New-CMTSStepConditionIfStatement.md","github_contributors":["aczechowski","damabe","ChrisKibble","sankethka"],"locale":"de-de","manager":"laurawi","Module Name":"ConfigurationManager","monikers":["sccm-ps"],"ms.author":"dannygu","ms.date":"09/02/2021","ms.service":"configuration-manager","ms.subservice":"other","ms.topic":"reference","online version":"","open_to_public_contributors":true,"original_content_git_url":"https://github.com/MicrosoftDocs/sccm-docs-powershell/blob/live/sccm-ps/ConfigurationManager/New-CMTSStepConditionIfStatement.md","original_content_git_url_template":"{repo}/blob/{branch}/sccm-ps/ConfigurationManager/New-CMTSStepConditionIfStatement.md","PlatyPS schema version":"2.0.0","products":["https://authoring-docs-microsoft.poolparty.biz/devrel/f1499c3b-793f-48c3-a9ce-20285bcc6541"],"site_name":"Docs","titleSuffix":"Configuration Manager","uhfHeaderId":"MSDocsHeader-Powershell","updated_at":"2026-06-25 11:35 PM","xrefs":[{"href":"https://learn.microsoft.com/powershell/module/configurationmanager/new-cmtsstepconditionifstatement","monikerGroup":"f98fea35b6ac2b0f56c6ee5ec06ffce9","name":"New-CMTSStepConditionIfStatement","schemaType":"PowershellCmdlet","summary":"<p>Erstellen Sie eine <em>if-Anweisungsbedingung</em> für einen Tasksequenzschritt.</p>\n","uid":"ConfigurationManager.New-CMTSStepConditionIfStatement"}],"ocv-translation-feedback":true},"_xrefmap":{"ConfigurationManager":{"href":"./","monikerGroup":"f98fea35b6ac2b0f56c6ee5ec06ffce9","name":"ConfigurationManager","schemaType":"PowershellModule","uid":"ConfigurationManager"},"ConfigurationManager.New-CMTSStepConditionIfStatement":{"href":"new-cmtsstepconditionifstatement","monikerGroup":"f98fea35b6ac2b0f56c6ee5ec06ffce9","name":"New-CMTSStepConditionIfStatement","schemaType":"PowershellCmdlet","summary":"<p>Erstellen Sie eine <em>if-Anweisungsbedingung</em> für einen Tasksequenzschritt.</p>\n","uid":"ConfigurationManager.New-CMTSStepConditionIfStatement"}},"description":"<p>Verwenden Sie dieses Cmdlet, um ein <em>if-Anweisungsbedingungsobjekt</em> für einen Tasksequenzschritt zu erstellen. Verwenden Sie dann eines der Cmdlets <strong>New-CMTSStep*</strong> oder <strong>Set-CMTSStep*</strong> mit den Parametern <strong>Condition</strong> oder <strong>AddCondition</strong> . Beispiel: <a href=\"set-cmtsstepapplydataimage\">Set-CMTSStepApplyDataImage</a>.</p>\n<p>Weitere Informationen finden Sie unter <a href=\"/mem/configmgr/osd/understand/task-sequence-editor#bkmk_conditions\">Verwenden des Tasksequenz-Editors: Bedingungen</a>.</p>\n<div class=\"NOTE\">\n<p>Hinweis</p>\n<p>Führen Sie Configuration Manager-Cmdlets auf dem Configuration Manager-Standortlaufwerk aus, z. B <code>PS XYZ:\\&gt;</code>. . Weitere Informationen finden Sie unter <a href=\"/powershell/sccm/overview\">Erste Schritte</a>.</p>\n</div>\n","examples":[{"code":"$file = \"C:\\Program Files (x86)\\Microsoft Endpoint Manager\\AdminConsole\\bin\\en-US\\AdminUI.PS.dll-Help.xml\"\n$datetime = Get-Date (\"August 2, 2021\")\n$conditionFile = New-CMTSStepConditionFile -FilePath $file -FileTimestamp $datetime -FileDateTimeOperator Greater\n\n$model = \"Latitude E7470\"\n$wmiQuery = \"Select * From Win32_ComputerSystem Where Model = `\"$Model`\"\"\n$conditionQuery = New-CMTSStepConditionQueryWMI -Namespace \"root\\cimv2\" -Query $wmiQuery\n\n$condition = New-CMTSStepConditionIfStatement -StatementType All -Condition $conditionFile,$conditionQuery\n\n$tsNameOsd = \"Default OS deployment\"\n$tsStepNameSetDynVar = \"Set Dynamic Variables\"\n\nSet-CMTSStepSetDynamicVariable -TaskSequenceName $tsNameOsd -StepName $tsStepNameSetDynVar -AddCondition $condition\n\nIf  All  the conditions are true:\n    File  C:\\Program Files (x86)\\Microsoft Endpoint Manager\\AdminConsole\\bin\\en-US\\AdminUI.PS.dll-Help.xml exists  and  timestamp greater than \"8/1/2021 16:00:00\"\n    WMI Query  Select * From Win32_ComputerSystem Where Model = \"Latitude E7470\"","description":"","summary":"<p>In diesem Beispiel werden zunächst die Cmdlets <strong>New-CMTSStepConditionFile</strong> und <strong>New-CMTSStepConditionQueryWMI</strong> verwendet, um untergeordnete Bedingungsobjekte zu erstellen. Es übergibt diese beiden Objekte an das <strong>Cmdlet New-CMTSStepConditionIfStatement</strong> und speichert dieses Bedingungsobjekt.</p>\n<p>Anschließend wird das Cmdlet <strong>Set-CMTSStepSetDynamicVariable</strong> verwendet, um dieses Bedingungsobjekt dem Schritt <strong>Dynamische Variablen festlegen</strong> der Tasksequenz <strong>Standardbetriebssystembereitstellung</strong> hinzuzufügen.</p>\n","title":"Beispiel 1"}],"inputs":[{"description":"","name":"<span class=\"no-loc xref\">None</span>\n"}],"links":[{"href":"get-cmtsstepconditionifstatement","text":"Get-CMTSStepConditionIfStatement"},{"href":"/mem/configmgr/osd/understand/task-sequence-editor#bkmk_conditions","text":"Verwenden des Tasksequenz-Editors: Bedingungen"}],"module":"ConfigurationManager","name":"New-CMTSStepConditionIfStatement","notes":"<p>Weitere Informationen zu diesem Rückgabeobjekt und seinen Eigenschaften finden Sie unter <a href=\"/mem/configmgr/develop/reference/osd/sms_tasksequence_conditionoperator-server-wmi-class\">SMS_TaskSequence_ConditionOperator WMI-Serverklasse</a>.</p>\n","outputs":[{"description":"","name":"<span class=\"no-loc xref\">IResultObject</span>\n"}],"parameters":[{"aliases":"SubCondition, SubConditions","defaultValue":"None","description":"<p>Geben Sie mindestens ein Bedingungsobjekt an, das in diesen <em>if-Anweisungsblock</em> eingeschlossen werden soll. Verwenden Sie zum Abrufen dieser geschachtelten Objekte eines der <strong>Cmdlets New-CMTSStepCondition*</strong> . Beispiel: <a href=\"new-cmtsstepconditionfile\">New-CMTSStepConditionFile</a>.</p>\n","name":"Condition","parameterValueGroup":"","position":"Named","type":"<p><span class=\"no-loc xref\">IResultObject</span><span>[</span><span>]</span></p>\n"},{"aliases":"cf","defaultValue":"None","description":"<p>Fordert Sie vor dem Ausführen des Cmdlets zur Bestätigung auf.</p>\n","name":"Confirm","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">SwitchParameter</span>\n"},{"aliases":"","defaultValue":"None","description":"<p>Dieser Parameter behandelt Wildcardzeichen als Literalzeichenwerte. Sie können es nicht mit <strong>ForceWildcardHandling</strong> kombinieren.</p>\n","name":"DisableWildcardHandling","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">SwitchParameter</span>\n"},{"aliases":"","defaultValue":"None","description":"<p>Dieser Parameter verarbeitet Wildcardzeichen und kann zu unerwartetem Verhalten führen (nicht empfohlen). Sie können es nicht mit <strong>DisableWildcardHandling</strong> kombinieren.</p>\n","name":"ForceWildcardHandling","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">SwitchParameter</span>\n"},{"aliases":"Operator","defaultValue":"None","description":"<p>Geben Sie den Typ der zu erstellenden <em>if-Anweisung</em> an. Es gibt drei Arten von Überprüfungen, die Sie mit dieser Bedingung durchführen können:</p>\n<ul>\n<li>Wenn <code>All</code> der Bedingungen erfüllt sind</li>\n<li>Wenn <code>Any</code> der Bedingungen erfüllt sind</li>\n<li>Wenn <code>None</code> der Bedingungen erfüllt sind</li>\n</ul>\n","isRequired":true,"name":"StatementType","parameterValueGroup":"All, Any, None","position":"Named","type":"<span class=\"no-loc xref\">ConditionStatementType</span>\n"},{"aliases":"wi","defaultValue":"None","description":"<p>Zeigt, was passieren würde, wenn das Cmdlet ausgeführt wird. Das Cmdlet wird nicht ausgeführt.</p>\n","name":"WhatIf","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">SwitchParameter</span>\n"}],"schema":"PowershellCmdlet","summary":"<p>Erstellen Sie eine <em>if-Anweisungsbedingung</em> für einen Tasksequenzschritt.</p>\n","syntaxes":["New-CMTSStepConditionIfStatement [-Condition <IResultObject[]>] -StatementType <ConditionStatementType>\n [-DisableWildcardHandling] [-ForceWildcardHandling] [-WhatIf] [-Confirm] [<CommonParameters>]"],"uid":"ConfigurationManager.New-CMTSStepConditionIfStatement","hideEdit":true,"ms.translationtype":"MT","ms.contentlocale":"de-de","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-CMTSStepConditionIfStatement.md","xrefs":[{"href":"https://learn.microsoft.com/powershell/module/configurationmanager/new-cmtsstepconditionifstatement","monikerGroup":"f98fea35b6ac2b0f56c6ee5ec06ffce9","name":"New-CMTSStepConditionIfStatement","schemaType":"PowershellCmdlet","summary":"<p>Erstellen Sie eine <em>if-Anweisungsbedingung</em> für einen Tasksequenzschritt.</p>\n","uid":"ConfigurationManager.New-CMTSStepConditionIfStatement"}],"canonical_url":"https://learn.microsoft.com/de-de/powershell/module/configurationmanager/new-cmtsstepconditionifstatement?view=sccm-ps","_op_canonicalUrl":"https://learn.microsoft.com/de-de/powershell/module/configurationmanager/new-cmtsstepconditionifstatement?view=sccm-ps"},"pageMetadata":"<meta name=\"description\" content=\"<p>Verwenden Sie dieses Cmdlet, um ein <em>if-Anweisungsbedingungsobjekt</em> für einen Tasksequenzschritt zu erstellen. Verwenden Sie dann eines der Cmdlets <strong>New-CMTSStep*</strong> oder <strong>Set-CMTSStep*</strong> mit den Parametern <strong>Condition</strong> oder <strong>AddCondition</strong> . Beispiel: <a href=&quot;set-cmtsstepapplydataimage&quot;>Set-CMTSStepApplyDataImage</a>.</p>\n<p>Weitere Informationen finden Sie unter <a href=&quot;/mem/configmgr/osd/understand/task-sequence-editor#bkmk_conditions&quot;>Verwenden des Tasksequenz-Editors: Bedingungen</a>.</p>\n<div class=&quot;NOTE&quot;>\n<p>Hinweis</p>\n<p>Führen Sie Configuration Manager-Cmdlets auf dem Configuration Manager-Standortlaufwerk aus, z. B <code>PS XYZ:\\&amp;gt;</code>. . Weitere Informationen finden Sie unter <a href=&quot;/powershell/sccm/overview&quot;>Erste Schritte</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-CMTSStepConditionIfStatement.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=\"de-de\" />\r\n<meta name=\"ms.translationtype\" content=\"MT\" />\r\n<meta name=\"name\" content=\"New-CMTSStepConditionIfStatement\" />\r\n<meta name=\"notes\" content=\"<p>Weitere Informationen zu diesem Rückgabeobjekt und seinen Eigenschaften finden Sie unter <a href=&quot;/mem/configmgr/develop/reference/osd/sms_tasksequence_conditionoperator-server-wmi-class&quot;>SMS_TaskSequence_ConditionOperator WMI-Serverklasse</a>.</p>\n\" />\r\n<meta name=\"schema\" content=\"PowershellCmdlet\" />\r\n<meta name=\"summary\" content=\"<p>Erstellen Sie eine <em>if-Anweisungsbedingung</em> für einen Tasksequenzschritt.</p>\n\" />\r\n<meta name=\"syntaxes\" content=\"New-CMTSStepConditionIfStatement [-Condition <IResultObject[]>] -StatementType <ConditionStatementType>\n [-DisableWildcardHandling] [-ForceWildcardHandling] [-WhatIf] [-Confirm] [<CommonParameters>]\" />\r\n<meta name=\"uid\" content=\"ConfigurationManager.New-CMTSStepConditionIfStatement\" />\r\n","themesRelativePathToOutputRoot":"_themes/"}