{"id":96,"date":"2015-07-25T20:00:22","date_gmt":"2015-07-25T18:00:22","guid":{"rendered":"https:\/\/www.mosi.at\/ikt\/?p=96"},"modified":"2020-05-11T23:45:46","modified_gmt":"2020-05-11T21:45:46","slug":"powershell-vergleichs-operatoren","status":"publish","type":"post","link":"https:\/\/www.mosi.at\/ikt\/2015\/07\/25\/powershell-vergleichs-operatoren\/","title":{"rendered":"Powershell Vergleichs-Operatoren"},"content":{"rendered":"<p style=\"text-align: justify;\">Zum Eingrenzen von Ergebnissen oder zur Steuerung von Scripts sind Vergleichoperatoren notwendig. Powershell kennt folgende:<\/p>\n<ul>\n<li>Operator ohne  Ber\u00fccksichtigung der Gro\u00df-\/Kleinscheibung haben ein <span style=\"color: #000080;\"><strong>&#8222;i&#8220;<\/strong><\/span> vorangestellt bzw. es kann entfallen.<\/li>\n<li>Operatoren mit Ber\u00fccksichtigung der Gro\u00df-\/Kleinscheibung haben ein <strong><span style=\"color: #000080;\">&#8222;c&#8220;<\/span><\/strong> vorangestellt.<\/li>\n<\/ul>\n<p><!--more--><\/p>\n<table style=\"background-color: #03636;\">\n<tbody>\n<tr>\n<th style=\"background-color: #454545; text-align: center; vertical-align: middle;\"><span style=\"color: #ffffff;\"><strong>Funktion<\/strong><\/span><\/th>\n<th style=\"background-color: #454545; text-align: center; vertical-align: middle;\"><span style=\"color: #ffffff;\"><strong>Operator<\/strong><\/span><br \/>\n<span style=\"color: #ffffff;\"> <strong>Vergleich ohne Gro\u00df-\/Kleinscheibung<\/strong><\/span><\/th>\n<th style=\"background-color: #454545; text-align: center; vertical-align: middle;\"><span style=\"color: #ffffff;\"><strong>Operator<\/strong><\/span><br \/>\n<span style=\"color: #ffffff;\"> <strong>Vergleich Mit Gro\u00df-\/Kleinscheibung<\/strong><\/span><\/th>\n<\/tr>\n<tr>\n<td style=\"background-color: #abfff5; text-align: center;\">kleiner<\/td>\n<td style=\"background-color: #abfff5; text-align: center;\">-lt \/ -ilt<\/td>\n<td style=\"background-color: #abfff5; text-align: center;\">-clt<\/td>\n<\/tr>\n<tr>\n<td style=\"background-color: #abfff5; text-align: center;\">kleiner oder gleich<\/td>\n<td style=\"background-color: #abfff5; text-align: center;\">-le \/ -ile<\/td>\n<td style=\"background-color: #abfff5; text-align: center;\">-cle<\/td>\n<\/tr>\n<tr>\n<td style=\"background-color: #abfff5; text-align: center;\">gleich<\/td>\n<td style=\"background-color: #abfff5; text-align: center;\">-eq \/ -ieq<\/td>\n<td style=\"background-color: #abfff5; text-align: center;\">-ceq<\/td>\n<\/tr>\n<tr>\n<td style=\"background-color: #abfff5; text-align: center;\">ungleich<\/td>\n<td style=\"background-color: #abfff5; text-align: center;\">-ne \/ -ine<\/td>\n<td style=\"background-color: #abfff5; text-align: center;\">-cne<\/td>\n<\/tr>\n<tr>\n<td style=\"background-color: #abfff5; text-align: center;\">gr\u00f6\u00dfer oder gleich<\/td>\n<td style=\"background-color: #abfff5; text-align: center;\">-ge \/ -ige<\/td>\n<td style=\"background-color: #abfff5; text-align: center;\">-cge<\/td>\n<\/tr>\n<tr>\n<td style=\"background-color: #abfff5; text-align: center;\">gr\u00f6\u00dfer<\/td>\n<td style=\"background-color: #abfff5; text-align: center;\">-gr \/ -igr<\/td>\n<td style=\"background-color: #abfff5; text-align: center;\">-cgr<\/td>\n<\/tr>\n<tr style=\"background-color: #fcdb03;\">\n<td style=\"background-color: #ace9fa; text-align: center;\">\u00c4hnliche Zeitenketten<br \/>\nPlatzhalter (* ?) sind erlaubt<\/td>\n<td style=\"background-color: #ace9fa; text-align: center;\"> -like \/ -ilike<\/td>\n<td style=\"background-color: #ace9fa; text-align: center;\">-clike<\/td>\n<\/tr>\n<tr style=\"background-color: #fcdb03;\">\n<td style=\"background-color: #ace9fa; text-align: center;\"> Keine \u00e4hnliche Zeitenketten<br \/>\nPlatzhalter (* ?) sind erlaubt<\/td>\n<td style=\"background-color: #ace9fa; text-align: center;\">-notlike \/ -inotlike<\/td>\n<td style=\"background-color: #ace9fa; text-align: center;\">-cnotlike<\/td>\n<\/tr>\n<tr>\n<td style=\"background-color: #8eb8fa; text-align: center;\">Kommt in Regular Expression vor<\/td>\n<td style=\"background-color: #8eb8fa; text-align: center;\">-match \/ -imatch<\/td>\n<td style=\"background-color: #8eb8fa; text-align: center;\">-cmatch<\/td>\n<\/tr>\n<tr>\n<td style=\"background-color: #8eb8fa; text-align: center;\"> Kommt nicht in Regular Expression vor<\/td>\n<td style=\"background-color: #8eb8fa; text-align: center;\">-notmatch\/ -inotmatch<\/td>\n<td style=\"background-color: #8eb8fa; text-align: center;\"> -cnotmatch<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Mehr zu Regular Expressions bei:<br \/>\n<a href=\"https:\/\/msdn.microsoft.com\/en-us\/library\/az24scfc%28v=vs.110%29.aspx\" target=\"_blank\" rel=\"noopener noreferrer\">Regular Expression Language &#8211; Quick Reference<br \/>\n<\/a><a href=\"https:\/\/msdn.microsoft.com\/en-us\/library\/hs600312%28v=vs.110%29.aspx\" target=\"_blank\" rel=\"noopener noreferrer\">.NET Framework Regular Expressions<\/a><\/p>\n<table>\n<tbody>\n<tr>\n<td style=\"background-color: #454545; text-align: center;\"><span style=\"color: #ffffff;\"><strong>FUNKTION<\/strong><\/span><\/td>\n<td style=\"background-color: #454545; text-align: center;\"><span style=\"color: #ffffff;\"><strong>VERGLEICHS-<br \/>\nOPERATOR <\/strong><\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"background-color: #fae8c5; text-align: center;\">Datentypen vergleichen<\/td>\n<td style=\"background-color: #fae8c5; text-align: center;\">-is<\/td>\n<\/tr>\n<tr>\n<td style=\"background-color: #ffc6bd; text-align: center;\">Ist in Menge enthalten<\/td>\n<td style=\"background-color: #ffc6bd; text-align: center;\">-in<\/td>\n<\/tr>\n<tr>\n<td style=\"background-color: #ffc6bd; text-align: center;\">Ist in Menge nicht enthalten<\/td>\n<td style=\"background-color: #ffc6bd; text-align: center;\">-notin<\/td>\n<\/tr>\n<tr>\n<td style=\"background-color: #ffc6bd; text-align: center;\">Ist in Menge enthalten<\/td>\n<td style=\"background-color: #ffc6bd; text-align: center;\">-contains<\/td>\n<\/tr>\n<tr>\n<td style=\"background-color: #ffc6bd; text-align: center;\">Ist in Menge nicht enthalten<\/td>\n<td style=\"background-color: #ffc6bd; text-align: center;\">-notcontains<\/td>\n<\/tr>\n<tr>\n<td style=\"background-color: #ffc7ed; text-align: center;\">und<\/td>\n<td style=\"background-color: #ffc7ed; text-align: center;\">-and<\/td>\n<\/tr>\n<tr>\n<td style=\"background-color: #ffc7ed; text-align: center;\">oder<\/td>\n<td style=\"background-color: #ffc7ed; text-align: center;\">-or<\/td>\n<\/tr>\n<tr>\n<td style=\"background-color: #ffc7ed; text-align: center;\">nicht bzw. Verneinung<\/td>\n<td style=\"background-color: #ffc7ed; text-align: center;\">-not oder -!<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4><a href=\"https:\/\/mosi.at\/ikt\/2015\/07\/27\/powershell-vergleichs-operatoren-beispiele\/\" target=\"_blank\" rel=\"noopener noreferrer\">Powershell Vergleichsoperatoren Beispiele<\/a><\/h4>\n","protected":false},"excerpt":{"rendered":"<p>Zum Eingrenzen von Ergebnissen oder zur Steuerung von Scripts sind Vergleichoperatoren notwendig. Powershell kennt folgende: Operator ohne Ber\u00fccksichtigung der Gro\u00df-\/Kleinscheibung haben ein &#8222;i&#8220; vorangestellt bzw. es kann entfallen. Operatoren mit Ber\u00fccksichtigung der Gro\u00df-\/Kleinscheibung haben ein &#8222;c&#8220; vorangestellt.<\/p>\n","protected":false},"author":2,"featured_media":1899,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ocean_front_end_style_editor":"no","ocean_post_layout":"","ocean_both_sidebars_style":"","ocean_both_sidebars_content_width":0,"ocean_both_sidebars_sidebars_width":0,"ocean_sidebar":"0","ocean_second_sidebar":"0","ocean_disable_margins":"enable","ocean_add_body_class":"","ocean_shortcode_before_top_bar":"","ocean_shortcode_after_top_bar":"","ocean_shortcode_before_header":"","ocean_shortcode_after_header":"","ocean_has_shortcode":"","ocean_shortcode_after_title":"","ocean_shortcode_before_footer_widgets":"","ocean_shortcode_after_footer_widgets":"","ocean_shortcode_before_footer_bottom":"","ocean_shortcode_after_footer_bottom":"","ocean_display_top_bar":"default","ocean_display_header":"default","ocean_header_style":"","ocean_center_header_left_menu":"0","ocean_custom_header_template":"0","ocean_custom_logo":0,"ocean_custom_retina_logo":0,"ocean_custom_logo_max_width":0,"ocean_custom_logo_tablet_max_width":0,"ocean_custom_logo_mobile_max_width":0,"ocean_custom_logo_max_height":0,"ocean_custom_logo_tablet_max_height":0,"ocean_custom_logo_mobile_max_height":0,"ocean_header_custom_menu":"0","ocean_menu_typo_font_family":"0","ocean_menu_typo_font_subset":"","ocean_menu_typo_font_size":0,"ocean_menu_typo_font_size_tablet":0,"ocean_menu_typo_font_size_mobile":0,"ocean_menu_typo_font_size_unit":"px","ocean_menu_typo_font_weight":"","ocean_menu_typo_font_weight_tablet":"","ocean_menu_typo_font_weight_mobile":"","ocean_menu_typo_transform":"","ocean_menu_typo_transform_tablet":"","ocean_menu_typo_transform_mobile":"","ocean_menu_typo_line_height":0,"ocean_menu_typo_line_height_tablet":0,"ocean_menu_typo_line_height_mobile":0,"ocean_menu_typo_line_height_unit":"","ocean_menu_typo_spacing":0,"ocean_menu_typo_spacing_tablet":0,"ocean_menu_typo_spacing_mobile":0,"ocean_menu_typo_spacing_unit":"","ocean_menu_link_color":"","ocean_menu_link_color_hover":"","ocean_menu_link_color_active":"","ocean_menu_link_background":"","ocean_menu_link_hover_background":"","ocean_menu_link_active_background":"","ocean_menu_social_links_bg":"","ocean_menu_social_hover_links_bg":"","ocean_menu_social_links_color":"","ocean_menu_social_hover_links_color":"","ocean_disable_title":"default","ocean_disable_heading":"default","ocean_post_title":"","ocean_post_subheading":"","ocean_post_title_style":"","ocean_post_title_background_color":"","ocean_post_title_background":0,"ocean_post_title_bg_image_position":"","ocean_post_title_bg_image_attachment":"","ocean_post_title_bg_image_repeat":"","ocean_post_title_bg_image_size":"","ocean_post_title_height":0,"ocean_post_title_bg_overlay":0.5,"ocean_post_title_bg_overlay_color":"","ocean_disable_breadcrumbs":"default","ocean_breadcrumbs_color":"","ocean_breadcrumbs_separator_color":"","ocean_breadcrumbs_links_color":"","ocean_breadcrumbs_links_hover_color":"","ocean_display_footer_widgets":"default","ocean_display_footer_bottom":"default","ocean_custom_footer_template":"0","osp_disable_panel":"default","osh_disable_topbar_sticky":"default","osh_disable_header_sticky":"default","osh_sticky_header_style":"default","osh_sticky_header_effect":"","osh_custom_sticky_logo":0,"osh_custom_retina_sticky_logo":0,"osh_custom_sticky_logo_height":0,"osh_background_color":"","osh_links_color":"","osh_links_hover_color":"","osh_links_active_color":"","osh_links_bg_color":"","osh_links_hover_bg_color":"","osh_links_active_bg_color":"","osh_menu_social_links_color":"","osh_menu_social_hover_links_color":"","ocean_post_oembed":"","ocean_post_self_hosted_media":"","ocean_post_video_embed":"","ocean_link_format":"","ocean_link_format_target":"self","ocean_quote_format":"","ocean_quote_format_link":"post","ocean_gallery_link_images":"off","ocean_gallery_id":[],"footnotes":""},"categories":[9,20,18,16],"tags":[],"class_list":["post-96","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-__news","category-power-shell","category-scripts","category-windows","entry","has-media"],"_links":{"self":[{"href":"https:\/\/www.mosi.at\/ikt\/wp-json\/wp\/v2\/posts\/96","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mosi.at\/ikt\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mosi.at\/ikt\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mosi.at\/ikt\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mosi.at\/ikt\/wp-json\/wp\/v2\/comments?post=96"}],"version-history":[{"count":1,"href":"https:\/\/www.mosi.at\/ikt\/wp-json\/wp\/v2\/posts\/96\/revisions"}],"predecessor-version":[{"id":1902,"href":"https:\/\/www.mosi.at\/ikt\/wp-json\/wp\/v2\/posts\/96\/revisions\/1902"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.mosi.at\/ikt\/wp-json\/wp\/v2\/media\/1899"}],"wp:attachment":[{"href":"https:\/\/www.mosi.at\/ikt\/wp-json\/wp\/v2\/media?parent=96"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mosi.at\/ikt\/wp-json\/wp\/v2\/categories?post=96"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mosi.at\/ikt\/wp-json\/wp\/v2\/tags?post=96"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}