{"id":122,"date":"2013-08-29T12:16:50","date_gmt":"2013-08-29T10:16:50","guid":{"rendered":"http:\/\/ps.stefanrehwald.de\/?p=122"},"modified":"2013-08-29T12:16:50","modified_gmt":"2013-08-29T10:16:50","slug":"powershell-scripte-kurz-anhalten-mit-sleep","status":"publish","type":"post","link":"https:\/\/ps.stefanrehwald.de\/?p=122","title":{"rendered":"PowerShell &#8211; Scripte kurz anhalten mit Sleep"},"content":{"rendered":"<p style=\"text-align: justify;\">Mit der Funktion Sleep lassen sich Scripte f\u00fcr eine bestimmte Zeitspanne unterbrechen. Die Zeit kann hierbei in Sekunden oder Millisekunden angeben werden.<\/p>\n<pre class=\"lang:sass decode:true\" title=\"Sleep Script\">sleep -Seconds 5\r\nWrite-Host \"5 Sekunden warten...\"\r\nsleep -Milliseconds 5000\r\nWrite-Host \"5000 Millisekunden gewartet\"\r\n\r\n# Ausgabe nach 5 Sekunden\r\n# 5 Sekunden warten...\r\n\r\n# Ausgabe nach weiteren 5 Sekunden\r\n# 5000 Millisekunden gewartet<\/pre>\n<p>rewe<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Mit der Funktion Sleep lassen sich Scripte f\u00fcr eine bestimmte Zeitspanne unterbrechen. Die Zeit kann hierbei in Sekunden oder Millisekunden angeben werden. sleep -Seconds 5 Write-Host &#8222;5 Sekunden warten&#8230;&#8220; sleep -Milliseconds 5000 Write-Host &#8222;5000 Millisekunden gewartet&#8220; # Ausgabe nach 5 &hellip; <a href=\"https:\/\/ps.stefanrehwald.de\/?p=122\">Weiterlesen <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":8,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[1],"tags":[180,183,184,179,182,178,181],"class_list":["post-122","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-allgemein","tag-anhalten","tag-pause","tag-pausieren","tag-script-anhalten","tag-skript-anhalten","tag-sleep","tag-unterbrechen"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"Mit Sleep wird ein Script f\u00fcr eine bestimmte Zeitdauer angehalten\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Stefan Rehwald\"\/>\n\t<meta name=\"keywords\" content=\"sleep,script anhalten,anhalten,unterbrechen,skript anhalten,pause,pausieren,skript anhalten,\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/ps.stefanrehwald.de\/?p=122\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.10\" \/>\n\t\t<meta property=\"og:locale\" content=\"de_DE\" \/>\n\t\t<meta property=\"og:site_name\" content=\"PowerShell Scripts | Eine Sammlung von PowerShell Snippets\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Ein Script f\u00fcr eine bestimmte Zeitspanne unterbrechen | PowerShell Scripts\" \/>\n\t\t<meta property=\"og:description\" content=\"Mit Sleep wird ein Script f\u00fcr eine bestimmte Zeitdauer angehalten\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/ps.stefanrehwald.de\/?p=122\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2013-08-29T10:16:50+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2013-08-29T10:16:50+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Ein Script f\u00fcr eine bestimmte Zeitspanne unterbrechen | PowerShell Scripts\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Mit Sleep wird ein Script f\u00fcr eine bestimmte Zeitdauer angehalten\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/ps.stefanrehwald.de\\\/?p=122#article\",\"name\":\"Ein Script f\\u00fcr eine bestimmte Zeitspanne unterbrechen | PowerShell Scripts\",\"headline\":\"PowerShell &#8211; Scripte kurz anhalten mit Sleep\",\"author\":{\"@id\":\"https:\\\/\\\/ps.stefanrehwald.de\\\/?author=2#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/ps.stefanrehwald.de\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/ps.stefanrehwald.de\\\/wp-content\\\/uploads\\\/2013\\\/08\\\/logo_powershell.jpg\",\"width\":244,\"height\":191,\"caption\":\"PowerShell 3.0\"},\"datePublished\":\"2013-08-29T12:16:50+02:00\",\"dateModified\":\"2013-08-29T12:16:50+02:00\",\"inLanguage\":\"de-DE\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/ps.stefanrehwald.de\\\/?p=122#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/ps.stefanrehwald.de\\\/?p=122#webpage\"},\"articleSection\":\"Allgemein, anhalten, pause, pausieren, Script anhalten, Skript anhalten, Sleep, unterbrechen\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/ps.stefanrehwald.de\\\/?p=122#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/ps.stefanrehwald.de#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/ps.stefanrehwald.de\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/ps.stefanrehwald.de\\\/?cat=1#listItem\",\"name\":\"Allgemein\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/ps.stefanrehwald.de\\\/?cat=1#listItem\",\"position\":2,\"name\":\"Allgemein\",\"item\":\"https:\\\/\\\/ps.stefanrehwald.de\\\/?cat=1\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/ps.stefanrehwald.de\\\/?p=122#listItem\",\"name\":\"PowerShell &#8211; Scripte kurz anhalten mit Sleep\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/ps.stefanrehwald.de#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/ps.stefanrehwald.de\\\/?p=122#listItem\",\"position\":3,\"name\":\"PowerShell &#8211; Scripte kurz anhalten mit Sleep\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/ps.stefanrehwald.de\\\/?cat=1#listItem\",\"name\":\"Allgemein\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/ps.stefanrehwald.de\\\/#organization\",\"name\":\"PowerShell Scripts\",\"description\":\"Eine Sammlung von PowerShell Snippets\",\"url\":\"https:\\\/\\\/ps.stefanrehwald.de\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/ps.stefanrehwald.de\\\/?author=2#author\",\"url\":\"https:\\\/\\\/ps.stefanrehwald.de\\\/?author=2\",\"name\":\"Stefan Rehwald\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/ps.stefanrehwald.de\\\/?p=122#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/00349957f89eb7edc5bfe4e8d19b2198e56cb63116c2a4ac8ba0e6b8b8b75451?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Stefan Rehwald\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/ps.stefanrehwald.de\\\/?p=122#webpage\",\"url\":\"https:\\\/\\\/ps.stefanrehwald.de\\\/?p=122\",\"name\":\"Ein Script f\\u00fcr eine bestimmte Zeitspanne unterbrechen | PowerShell Scripts\",\"description\":\"Mit Sleep wird ein Script f\\u00fcr eine bestimmte Zeitdauer angehalten\",\"inLanguage\":\"de-DE\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/ps.stefanrehwald.de\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/ps.stefanrehwald.de\\\/?p=122#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/ps.stefanrehwald.de\\\/?author=2#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/ps.stefanrehwald.de\\\/?author=2#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/ps.stefanrehwald.de\\\/wp-content\\\/uploads\\\/2013\\\/08\\\/logo_powershell.jpg\",\"@id\":\"https:\\\/\\\/ps.stefanrehwald.de\\\/?p=122\\\/#mainImage\",\"width\":244,\"height\":191,\"caption\":\"PowerShell 3.0\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/ps.stefanrehwald.de\\\/?p=122#mainImage\"},\"datePublished\":\"2013-08-29T12:16:50+02:00\",\"dateModified\":\"2013-08-29T12:16:50+02:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/ps.stefanrehwald.de\\\/#website\",\"url\":\"https:\\\/\\\/ps.stefanrehwald.de\\\/\",\"name\":\"PowerShell Scripts\",\"description\":\"Eine Sammlung von PowerShell Snippets\",\"inLanguage\":\"de-DE\",\"publisher\":{\"@id\":\"https:\\\/\\\/ps.stefanrehwald.de\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Ein Script f\u00fcr eine bestimmte Zeitspanne unterbrechen | PowerShell Scripts","description":"Mit Sleep wird ein Script f\u00fcr eine bestimmte Zeitdauer angehalten","canonical_url":"https:\/\/ps.stefanrehwald.de\/?p=122","robots":"max-image-preview:large","keywords":"sleep,script anhalten,anhalten,unterbrechen,skript anhalten,pause,pausieren,skript anhalten,","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/ps.stefanrehwald.de\/?p=122#article","name":"Ein Script f\u00fcr eine bestimmte Zeitspanne unterbrechen | PowerShell Scripts","headline":"PowerShell &#8211; Scripte kurz anhalten mit Sleep","author":{"@id":"https:\/\/ps.stefanrehwald.de\/?author=2#author"},"publisher":{"@id":"https:\/\/ps.stefanrehwald.de\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/ps.stefanrehwald.de\/wp-content\/uploads\/2013\/08\/logo_powershell.jpg","width":244,"height":191,"caption":"PowerShell 3.0"},"datePublished":"2013-08-29T12:16:50+02:00","dateModified":"2013-08-29T12:16:50+02:00","inLanguage":"de-DE","mainEntityOfPage":{"@id":"https:\/\/ps.stefanrehwald.de\/?p=122#webpage"},"isPartOf":{"@id":"https:\/\/ps.stefanrehwald.de\/?p=122#webpage"},"articleSection":"Allgemein, anhalten, pause, pausieren, Script anhalten, Skript anhalten, Sleep, unterbrechen"},{"@type":"BreadcrumbList","@id":"https:\/\/ps.stefanrehwald.de\/?p=122#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/ps.stefanrehwald.de#listItem","position":1,"name":"Home","item":"https:\/\/ps.stefanrehwald.de","nextItem":{"@type":"ListItem","@id":"https:\/\/ps.stefanrehwald.de\/?cat=1#listItem","name":"Allgemein"}},{"@type":"ListItem","@id":"https:\/\/ps.stefanrehwald.de\/?cat=1#listItem","position":2,"name":"Allgemein","item":"https:\/\/ps.stefanrehwald.de\/?cat=1","nextItem":{"@type":"ListItem","@id":"https:\/\/ps.stefanrehwald.de\/?p=122#listItem","name":"PowerShell &#8211; Scripte kurz anhalten mit Sleep"},"previousItem":{"@type":"ListItem","@id":"https:\/\/ps.stefanrehwald.de#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/ps.stefanrehwald.de\/?p=122#listItem","position":3,"name":"PowerShell &#8211; Scripte kurz anhalten mit Sleep","previousItem":{"@type":"ListItem","@id":"https:\/\/ps.stefanrehwald.de\/?cat=1#listItem","name":"Allgemein"}}]},{"@type":"Organization","@id":"https:\/\/ps.stefanrehwald.de\/#organization","name":"PowerShell Scripts","description":"Eine Sammlung von PowerShell Snippets","url":"https:\/\/ps.stefanrehwald.de\/"},{"@type":"Person","@id":"https:\/\/ps.stefanrehwald.de\/?author=2#author","url":"https:\/\/ps.stefanrehwald.de\/?author=2","name":"Stefan Rehwald","image":{"@type":"ImageObject","@id":"https:\/\/ps.stefanrehwald.de\/?p=122#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/00349957f89eb7edc5bfe4e8d19b2198e56cb63116c2a4ac8ba0e6b8b8b75451?s=96&d=mm&r=g","width":96,"height":96,"caption":"Stefan Rehwald"}},{"@type":"WebPage","@id":"https:\/\/ps.stefanrehwald.de\/?p=122#webpage","url":"https:\/\/ps.stefanrehwald.de\/?p=122","name":"Ein Script f\u00fcr eine bestimmte Zeitspanne unterbrechen | PowerShell Scripts","description":"Mit Sleep wird ein Script f\u00fcr eine bestimmte Zeitdauer angehalten","inLanguage":"de-DE","isPartOf":{"@id":"https:\/\/ps.stefanrehwald.de\/#website"},"breadcrumb":{"@id":"https:\/\/ps.stefanrehwald.de\/?p=122#breadcrumblist"},"author":{"@id":"https:\/\/ps.stefanrehwald.de\/?author=2#author"},"creator":{"@id":"https:\/\/ps.stefanrehwald.de\/?author=2#author"},"image":{"@type":"ImageObject","url":"https:\/\/ps.stefanrehwald.de\/wp-content\/uploads\/2013\/08\/logo_powershell.jpg","@id":"https:\/\/ps.stefanrehwald.de\/?p=122\/#mainImage","width":244,"height":191,"caption":"PowerShell 3.0"},"primaryImageOfPage":{"@id":"https:\/\/ps.stefanrehwald.de\/?p=122#mainImage"},"datePublished":"2013-08-29T12:16:50+02:00","dateModified":"2013-08-29T12:16:50+02:00"},{"@type":"WebSite","@id":"https:\/\/ps.stefanrehwald.de\/#website","url":"https:\/\/ps.stefanrehwald.de\/","name":"PowerShell Scripts","description":"Eine Sammlung von PowerShell Snippets","inLanguage":"de-DE","publisher":{"@id":"https:\/\/ps.stefanrehwald.de\/#organization"}}]},"og:locale":"de_DE","og:site_name":"PowerShell Scripts | Eine Sammlung von PowerShell Snippets","og:type":"article","og:title":"Ein Script f\u00fcr eine bestimmte Zeitspanne unterbrechen | PowerShell Scripts","og:description":"Mit Sleep wird ein Script f\u00fcr eine bestimmte Zeitdauer angehalten","og:url":"https:\/\/ps.stefanrehwald.de\/?p=122","article:published_time":"2013-08-29T10:16:50+00:00","article:modified_time":"2013-08-29T10:16:50+00:00","twitter:card":"summary","twitter:title":"Ein Script f\u00fcr eine bestimmte Zeitspanne unterbrechen | PowerShell Scripts","twitter:description":"Mit Sleep wird ein Script f\u00fcr eine bestimmte Zeitdauer angehalten"},"aioseo_meta_data":{"post_id":"122","title":"Ein Script f\u00fcr eine bestimmte Zeitspanne unterbrechen | #site_title","description":"Mit Sleep wird ein Script f\u00fcr eine bestimmte Zeitdauer angehalten","keywords":[{"label":"Sleep","value":"Sleep"},{"label":"Script anhalten","value":"Script anhalten"},{"label":"anhalten","value":"anhalten"},{"label":"unterbrechen","value":"unterbrechen"},{"label":"Skript anhalten","value":"Skript anhalten"},{"label":"pause","value":"pause"},{"label":"pausieren","value":"pausieren"},{"label":"Script anhalten","value":"Script anhalten"},{"label":"Skript anhalten,","value":"Skript anhalten,"}],"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2020-12-30 00:57:16","updated":"2025-10-06 09:18:03","seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/ps.stefanrehwald.de\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/ps.stefanrehwald.de\/?cat=1\" title=\"Allgemein\">Allgemein<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tPowerShell \u2013 Scripte kurz anhalten mit Sleep\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/ps.stefanrehwald.de"},{"label":"Allgemein","link":"https:\/\/ps.stefanrehwald.de\/?cat=1"},{"label":"PowerShell &#8211; Scripte kurz anhalten mit Sleep","link":"https:\/\/ps.stefanrehwald.de\/?p=122"}],"jetpack_featured_media_url":"https:\/\/ps.stefanrehwald.de\/wp-content\/uploads\/2013\/08\/logo_powershell.jpg","jetpack_shortlink":"https:\/\/wp.me\/p3N2Ht-1Y","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ps.stefanrehwald.de\/index.php?rest_route=\/wp\/v2\/posts\/122","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ps.stefanrehwald.de\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ps.stefanrehwald.de\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ps.stefanrehwald.de\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ps.stefanrehwald.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=122"}],"version-history":[{"count":1,"href":"https:\/\/ps.stefanrehwald.de\/index.php?rest_route=\/wp\/v2\/posts\/122\/revisions"}],"predecessor-version":[{"id":123,"href":"https:\/\/ps.stefanrehwald.de\/index.php?rest_route=\/wp\/v2\/posts\/122\/revisions\/123"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ps.stefanrehwald.de\/index.php?rest_route=\/wp\/v2\/media\/8"}],"wp:attachment":[{"href":"https:\/\/ps.stefanrehwald.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=122"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ps.stefanrehwald.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=122"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ps.stefanrehwald.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=122"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}