{"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":"sankethka","id":"16908144","name":"sankethka","profile_url":"https://github.com/sankethka"}],"update_at":"25.06.2026","updated_at_date_time":"2026-06-25T23:33:31.3266896Z"},"_path":"module/configurationmanager/new-cmstatusmessagequery.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-cmstatusmessagequery?view=sccm-ps","content_git_url":"https://github.com/MicrosoftDocs/sccm-docs-powershell-ref/blob/main/sccm-ps/ConfigurationManager/New-CMStatusMessageQuery.md","default_moniker":"sccm-ps","depot_name":"MSDN.sccm-powershell","description":"Erstellt eine Statusmeldungsabfrage.","document_id":"ac47c212-6be0-c8ea-08b4-3feeb1be6fa7","document_version_independent_id":"a8a97757-6c58-aa61-e1f5-17739de2ab8f","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-CMStatusMessageQuery.md","github_contributors":["aczechowski","damabe","sankethka"],"locale":"de-de","manager":"laurawi","Module Name":"ConfigurationManager","monikers":["sccm-ps"],"ms.author":"dannygu","ms.date":"05/07/2019","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-CMStatusMessageQuery.md","original_content_git_url_template":"{repo}/blob/{branch}/sccm-ps/ConfigurationManager/New-CMStatusMessageQuery.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-CMStatusMessageQuery","titleSuffix":"Configuration Manager","uhfHeaderId":"MSDocsHeader-Powershell","updated_at":"2026-06-25 11:33 PM","xrefs":[{"href":"https://learn.microsoft.com/powershell/module/configurationmanager/new-cmstatusmessagequery","monikerGroup":"f98fea35b6ac2b0f56c6ee5ec06ffce9","name":"New-CMStatusMessageQuery","schemaType":"PowershellCmdlet","summary":"<p>Erstellt eine Statusmeldungsabfrage.</p>\n","uid":"ConfigurationManager.New-CMStatusMessageQuery"}],"ocv-translation-feedback":true},"_xrefmap":{"ConfigurationManager":{"href":"./","monikerGroup":"f98fea35b6ac2b0f56c6ee5ec06ffce9","name":"ConfigurationManager","schemaType":"PowershellModule","uid":"ConfigurationManager"},"ConfigurationManager.New-CMStatusMessageQuery":{"href":"new-cmstatusmessagequery","monikerGroup":"f98fea35b6ac2b0f56c6ee5ec06ffce9","name":"New-CMStatusMessageQuery","schemaType":"PowershellCmdlet","summary":"<p>Erstellt eine Statusmeldungsabfrage.</p>\n","uid":"ConfigurationManager.New-CMStatusMessageQuery"}},"description":"<p>Das Cmdlet <strong>New-CMStatusMessageQuery</strong> erstellt eine Statusmeldungsabfrage in Configuration Manager.\nStatusmeldungsabfragen in Configuration Manager geben Statusmeldungen aus der Standortdatenbank zurück.\nAlle wichtigen Configuration Manager-Komponenten generieren Statusmeldungen.</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":"PS XYZ:\\> New-CMStatusMessageQuery -Name \"Client Component Configuration Changes and Fatal Errors\" -Expression \"select stat.*, ins.*, att1.*, stat.Time from SMS_StatusMessage as stat left join SMS_StatMsgInsStrings as ins on stat.RecordID = ins.RecordID left join SMS_StatMsgAttributes as att1 on stat.RecordID = att1.RecordID where stat.ModuleName = 'SMS Client' and stat.MessageID = 669 and stat.SiteCode = ##PRM:SMS_StatusMessage.SiteCode## and stat.Time >= ##PRM:SMS_StatusMessage.Time## order by stat.Time desc\"","description":"<p>Dieser Befehl erstellt eine Statusmeldungsabfrage mit dem Namen Änderungen der Clientkomponentenkonfiguration und schwerwiegende Fehler.\nDer <em>Parameter Expression</em> gibt den WMI-Text (WMI Query Language, WQL) für die Abfrage an.</p>\n","summary":"","title":"Beispiel 1: Erstellen einer Statusmeldungsabfrage"}],"inputs":[{"description":"","name":"<span class=\"no-loc xref\">None</span>\n"}],"links":[{"href":"get-cmstatusmessagequery","text":"Get-CMStatusMessageQuery"},{"href":"set-cmstatusmessagequery","text":"Set-CMStatusMessageQuery"},{"href":"remove-cmstatusmessagequery","text":"Remove-CMStatusMessageQuery"}],"module":"ConfigurationManager","name":"New-CMStatusMessageQuery","notes":"","outputs":[{"description":"","name":"<span class=\"no-loc xref\">IResultObject</span>\n"}],"parameters":[{"aliases":"Comments","defaultValue":"None","description":"","name":"Comment","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">String</span>\n"},{"aliases":"cf","defaultValue":"False","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>Gibt WMI Query Language(WQL)-Text für die Abfrage an.</p>\n","name":"Expression","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">String</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":"","defaultValue":"None","description":"<p>Gibt einen Namen für die Statusmeldungsabfrage an.</p>\n","isRequired":true,"name":"Name","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">String</span>\n"},{"aliases":"wi","defaultValue":"False","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>Erstellt eine Statusmeldungsabfrage.</p>\n","syntaxes":["New-CMStatusMessageQuery [-Comment <String>] [-Expression <String>] -Name <String> [-DisableWildcardHandling]\n [-ForceWildcardHandling] [-WhatIf] [-Confirm] [<CommonParameters>]"],"uid":"ConfigurationManager.New-CMStatusMessageQuery","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-CMStatusMessageQuery.md","xrefs":[{"href":"https://learn.microsoft.com/powershell/module/configurationmanager/new-cmstatusmessagequery","monikerGroup":"f98fea35b6ac2b0f56c6ee5ec06ffce9","name":"New-CMStatusMessageQuery","schemaType":"PowershellCmdlet","summary":"<p>Erstellt eine Statusmeldungsabfrage.</p>\n","uid":"ConfigurationManager.New-CMStatusMessageQuery"}],"canonical_url":"https://learn.microsoft.com/de-de/powershell/module/configurationmanager/new-cmstatusmessagequery?view=sccm-ps","_op_canonicalUrl":"https://learn.microsoft.com/de-de/powershell/module/configurationmanager/new-cmstatusmessagequery?view=sccm-ps"},"pageMetadata":"<meta name=\"description\" content=\"<p>Das Cmdlet <strong>New-CMStatusMessageQuery</strong> erstellt eine Statusmeldungsabfrage in Configuration Manager.\nStatusmeldungsabfragen in Configuration Manager geben Statusmeldungen aus der Standortdatenbank zurück.\nAlle wichtigen Configuration Manager-Komponenten generieren Statusmeldungen.</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-CMStatusMessageQuery.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-CMStatusMessageQuery\" />\r\n<meta name=\"notes\" content=\"\" />\r\n<meta name=\"schema\" content=\"PowershellCmdlet\" />\r\n<meta name=\"summary\" content=\"<p>Erstellt eine Statusmeldungsabfrage.</p>\n\" />\r\n<meta name=\"syntaxes\" content=\"New-CMStatusMessageQuery [-Comment <String>] [-Expression <String>] -Name <String> [-DisableWildcardHandling]\n [-ForceWildcardHandling] [-WhatIf] [-Confirm] [<CommonParameters>]\" />\r\n<meta name=\"uid\" content=\"ConfigurationManager.New-CMStatusMessageQuery\" />\r\n","themesRelativePathToOutputRoot":"_themes/"}