{"id":2236,"date":"2018-10-20T19:42:36","date_gmt":"2018-10-20T16:12:36","guid":{"rendered":"https:\/\/rasanegar.com\/blog\/?p=2236"},"modified":"2020-03-26T07:24:09","modified_gmt":"2020-03-26T02:54:09","slug":"how-to-clear-all-event-logs-in-windows-server","status":"publish","type":"post","link":"https:\/\/rasanegaar.com\/blog\/how-to-clear-all-event-logs-in-windows-server\/","title":{"rendered":"\u067e\u0627\u06a9 \u06a9\u0631\u062f\u0646 \u0647\u0645\u0647 \u0644\u0627\u06af\u0647\u0627\u06cc \u0648\u06cc\u0646\u062f\u0648\u0632 \u062f\u0631 Event Viewer"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_85 counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\"><p class=\"ez-toc-title\" style=\"cursor:inherit\">\u0633\u0631\u0641\u0635\u0644\u0647\u0627\u06cc \u0645\u0637\u0644\u0628<\/p>\n<\/div><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/rasanegaar.com\/blog\/how-to-clear-all-event-logs-in-windows-server\/#%d8%b1%d9%88%d8%b4_%d8%ac%d8%af%db%8c%d8%af_%d9%be%d8%a7%da%a9_%da%a9%d8%b1%d8%af%d9%86_log_%d9%88%db%8c%d9%86%d8%af%d9%88%d8%b2_%d8%af%d8%b1_powershell\" >\u0631\u0648\u0634 \u062c\u062f\u06cc\u062f \u067e\u0627\u06a9 \u06a9\u0631\u062f\u0646 Log \u0648\u06cc\u0646\u062f\u0648\u0632 \u062f\u0631 PowerShell<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/rasanegaar.com\/blog\/how-to-clear-all-event-logs-in-windows-server\/#%d8%b1%d9%88%d8%b4_%d8%af%db%8c%da%af%d8%b1_%d9%be%d8%a7%da%a9_%da%a9%d8%b1%d8%af%d9%86_%d9%84%d8%a7%da%af_events_%d8%af%d8%b1_powershell\" >\u0631\u0648\u0634 \u062f\u06cc\u06af\u0631 \u067e\u0627\u06a9 \u06a9\u0631\u062f\u0646 \u0644\u0627\u06af Events \u062f\u0631 PowerShell<\/a><\/li><\/ul><\/nav><\/div>\n<span class=\"span-reading-time rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\">\u0632\u0645\u0627\u0646 \u0644\u0627\u0632\u0645 \u0628\u0631\u0627\u06cc \u0645\u0637\u0627\u0644\u0639\u0647: <\/span> <span class=\"rt-time\"> &lt; 1<\/span> <span class=\"rt-label rt-postfix\">\u062f\u0642\u06cc\u0642\u0647<\/span><\/span><p>\u0686\u0646\u062f \u0631\u0648\u0632 \u067e\u06cc\u0634 \u0634\u0631\u0627\u06cc\u0637\u06cc \u067e\u06cc\u0634 \u0622\u0645\u062f \u06a9\u0647 \u0646\u06cc\u0627\u0632 \u0628\u0648\u062f \u0642\u0628\u0644 \u0627\u0632 \u062a\u062d\u0648\u06cc\u0644 \u06cc\u06a9 \u0633\u0631\u0648\u0631 \u0628\u0647 \u06cc\u06a9\u06cc \u0627\u0632 \u0645\u0634\u062a\u0631\u06cc\u0627\u0646\u0633\u0627\u0632\u0645\u0627\u0646\u06cc \u0631\u0633\u0627\u0646\u06af\u0627\u0631 \u060c \u0647\u0645\u0647 \u0644\u0627\u06af\u0647\u0627\u06cc \u0631\u062e\u062f\u0627\u062f \u062f\u0631 \u0628\u062e\u0634 Eventlog \u0648\u06cc\u0646\u062f\u0648\u0632 \u0631\u0627 \u062d\u0630\u0641 \u06a9\u0646\u0645 \u060c<br \/>\n\u062e\u0648\u0628 \u0642\u0627\u0639\u062f\u062a\u0627 \u0631\u0648\u0646\u062f \u0639\u0627\u062f\u06cc \u0627\u06cc\u0646 \u0627\u0633\u062a \u06a9\u0647 Event Viewer \u0631\u0627 \u0628\u0627\u0632 \u06a9\u0646\u06cc\u062f \u0648 \u0628\u0627 \u06a9\u0644\u06cc\u06a9 \u0631\u0627\u0633\u062a \u0631\u0648\u06cc \u0647\u0631 \u062f\u0633\u062a\u0647 \u0628\u0646\u062f\u06cc \u0644\u0627\u06af\u0647\u0627\u06cc \u0622\u0646 \u0631\u0627 \u067e\u0627\u06a9 \u06a9\u0646\u06cc\u062f \u060c<br \/>\n\u0628\u06cc\u0634 \u0627\u0632 1000 \u0631\u062e\u062f\u0627\u062f \u0645\u062e\u062a\u0644\u0641 \u0648\u062c\u0648\u062f \u062f\u0627\u0631\u062f \u060c \u06a9\u0647 \u067e\u0627\u06a9 \u06a9\u0631\u062f\u0646 \u062a\u06a9 \u062a\u06a9 \u0622\u0646\u0647\u0627 \u0645\u0646\u062a\u0642\u06cc \u0646\u0628\u0648\u062f \u060c \u062d\u062a\u06cc \u067e\u0627\u06a9 \u06a9\u0631\u062f\u0646 \u0627\u0632 \u0637\u0631\u06cc\u0642 \u06af\u0631\u0648\u0647 \u0628\u0646\u062f\u06cc \u0646\u06cc\u0632 \u0645\u0645\u06a9\u0646 \u0627\u0633\u062a \u0628\u0647 \u0632\u0645\u0627\u0646 \u0632\u06cc\u0627\u062f\u06cc \u0646\u06cc\u0627\u0632 \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u062f \u060c<br \/>\n\u0628\u0646\u0627\u0628\u0631\u0627\u06cc\u0646 \u0628\u0647 \u0641\u06a9\u0631 \u062f\u0633\u062a\u0648\u0631\u06cc \u06a9\u0647 \u0645\u062f\u062a\u0647\u0627 \u067e\u06cc\u0634 \u062f\u06cc\u062f\u0647 \u0628\u0648\u062f\u0645 \u0627\u0641\u062a\u0627\u062f\u0645 \u0648 \u0628\u0627 \u062c\u0633\u062a\u062c\u0648 \u0622\u0646 \u0631\u0627 \u067e\u06cc\u062f\u0627 \u06a9\u0631\u062f\u0645 \u0648 \u062a\u0635\u0645\u06cc\u0645 \u06af\u0631\u0641\u062a\u0645 \u0622\u0646 \u0631\u0627 \u0628\u0627 \u0634\u0645\u0627 \u0647\u0645 \u0628\u0647 \u0627\u0634\u062a\u0631\u0627\u06a9 \u0628\u06af\u0630\u0627\u0631\u0645<\/p>\n<p>\u0628\u0631\u0627\u06cc \u067e\u0627\u06a9 \u06a9\u0631\u062f\u0646 \u0647\u0645\u0647 eventlog \u0647\u0627 \u062f\u0631 \u0648\u06cc\u0646\u062f\u0648\u0632 Powershell\u00a0 \u0631\u0627 \u062f\u0631 \u0633\u0637\u062d \u062f\u0633\u062a\u0631\u0633\u06cc \u0628\u0627\u0644\u0627\u06cc Administarator \u0627\u062c\u0631\u0627 \u06a9\u0646\u06cc\u062f \u0648 \u062f\u0633\u062a\u0648\u0631\u0627\u062a \u0632\u06cc\u0631 \u0631\u0627 \u0627\u062c\u0631\u0627 \u06a9\u0646\u06cc\u062f\u00a0 ( \u062f\u0631 \u0648\u06cc\u0646\u062f\u0648\u0632 \u0633\u0631\u0648\u0631 \u0628\u0635\u0648\u0631\u062a \u067e\u06cc\u0634\u0641\u0631\u0636 \u0628\u0627 \u06a9\u0644\u06cc\u06a9 \u0631\u0648\u06cc \u0622\u06cc\u06a9\u0648\u0646 TaskBar \u0628\u0627 \u0627\u062f\u0645\u06cc\u0646 \u0627\u062c\u0631\u0627 \u0645\u06cc \u0634\u0648\u062f )<\/p>\n<h3 data-tadv-p=\"keep\"><span class=\"ez-toc-section\" id=\"%d8%b1%d9%88%d8%b4_%d8%ac%d8%af%db%8c%d8%af_%d9%be%d8%a7%da%a9_%da%a9%d8%b1%d8%af%d9%86_log_%d9%88%db%8c%d9%86%d8%af%d9%88%d8%b2_%d8%af%d8%b1_powershell\"><\/span>\u0631\u0648\u0634 \u062c\u062f\u06cc\u062f \u067e\u0627\u06a9 \u06a9\u0631\u062f\u0646 Log \u0648\u06cc\u0646\u062f\u0648\u0632 \u062f\u0631 PowerShell<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<blockquote>\n<p>Clear-EventLog -LogName (GEt-EventLog -List).log<\/p>\n<\/blockquote>\n<h3 data-tadv-p=\"keep\"><span class=\"ez-toc-section\" id=\"%d8%b1%d9%88%d8%b4_%d8%af%db%8c%da%af%d8%b1_%d9%be%d8%a7%da%a9_%da%a9%d8%b1%d8%af%d9%86_%d9%84%d8%a7%da%af_events_%d8%af%d8%b1_powershell\"><\/span>\u0631\u0648\u0634 \u062f\u06cc\u06af\u0631 \u067e\u0627\u06a9 \u06a9\u0631\u062f\u0646 \u0644\u0627\u06af Events \u062f\u0631 PowerShell<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<pre dir=\"ltr\" class=\"\">wevtutil el | Foreach-Object {wevtutil cl \"$_\"}<\/pre>\n<p>\u062a\u0648\u062c\u0647 \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u06cc\u062f \u0627\u06cc\u0646 \u062f\u0633\u062a\u0648\u0631 \u0647\u0645\u0647 \u0644\u0627\u06af\u0647\u0627 \u0631\u0627 \u067e\u0627\u06a9 \u0645\u06cc\u06a9\u0646\u06cc\u062f \u060c \u0627\u06af\u0631 \u0645\u06cc\u200e\u062e\u0648\u0627\u0647\u06cc\u062f \u0641\u0642\u0637 \u0644\u0627\u06af\u0647\u0627\u06cc \u062e\u0627\u0635\u06cc \u0631\u0627 \u067e\u0627\u06a9 \u06a9\u0646\u06cc\u062f \u0627\u0632 \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f<\/p>\n<div id=\"crayon-5bcb37053bd2b649859457\" data-settings=\" minimize scroll-mouseover\">\n<pre class=\"\">wevtutil cl application<\/pre>\n<\/div>\n<p>\u0627\u06af\u0631 \u0645\u06cc\u200e\u062e\u0648\u0627\u0647\u06cc\u062f \u0644\u06cc\u0633\u062a \u0647\u0645\u0647 event log \u0647\u0627\u06cc \u0631\u0648\u06cc \u0633\u0631\u0648\u0631 \u0631\u0627 \u0645\u0634\u0627\u0647\u062f\u0647 \u06a9\u0646\u06cc\u062f \u0627\u0632 \u0627\u06cc\u0646 \u062f\u0633\u062a\u0648\u0631 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f<\/p>\n<div id=\"crayon-5bcb37053bd2b268117517\" data-settings=\" minimize scroll-mouseover\">\n<pre class=\"\">wevtutil el<\/pre>\n<\/div>\n<p>\u062e\u0631\u0648\u062c\u06cc \u0645\u0634\u0627\u0628\u0647 \u062a\u0635\u0648\u06cc\u0631 \u0632\u06cc\u0631 \u0628\u0647 \u0634\u0645\u0627 \u062e\u0648\u0627\u0647\u062f \u062f\u0627\u062f<\/p>\n<p>\u0641\u0631\u0627\u0645\u0648\u0634 \u0646\u06a9\u0646\u06cc\u062f PowerShell \u0628\u0627\u06cc\u062f \u062a\u062d\u062a Administrator \u0627\u062c\u0631\u0627 \u0634\u0648\u062f<\/p>\n<blockquote>\n<p>\u0628\u0631\u0627\u06cc \u0627\u062c\u0631\u0627\u06cc Powershell \u062f\u0631 \u0648\u06cc\u0646\u062f\u0648\u0632 \u0647\u0627\u06cc \u062f\u0633\u06a9\u062a\u0627\u067e 8 \u0648 10 \u060c \u0631\u0648\u06cc \u0622\u06cc\u06a9\u0648\u0646 \u0645\u0646\u0648\u06cc \u0627\u0633\u062a\u0627\u0631\u062a \u0648\u06cc\u0646\u062f\u0648\u0632 \u06a9\u0644\u06cc\u06a9 \u0631\u0627\u0633\u062a \u06a9\u0646\u06cc\u062f \u060c \u0648 \u06af\u0632\u06cc\u0646\u0647 <a href=\"https:\/\/rasanegaar.com\/blog\/how-to-reclaim-freeup-thin-disk-in-esxi\/\">Windows<\/a> Powershell (admin ) \u0631\u0627 \u06a9\u0644\u06cc\u06a9 \u06a9\u0646\u06cc\u062f<\/p>\n<\/blockquote>\n\n\n<div class=\"kk-star-ratings kksr-auto kksr-align-center kksr-valign-bottom\"\n    data-payload='{&quot;align&quot;:&quot;center&quot;,&quot;id&quot;:&quot;2236&quot;,&quot;slug&quot;:&quot;default&quot;,&quot;valign&quot;:&quot;bottom&quot;,&quot;ignore&quot;:&quot;&quot;,&quot;reference&quot;:&quot;auto&quot;,&quot;class&quot;:&quot;&quot;,&quot;count&quot;:&quot;8&quot;,&quot;legendonly&quot;:&quot;&quot;,&quot;readonly&quot;:&quot;&quot;,&quot;score&quot;:&quot;4.7&quot;,&quot;starsonly&quot;:&quot;&quot;,&quot;best&quot;:&quot;5&quot;,&quot;gap&quot;:&quot;5&quot;,&quot;greet&quot;:&quot;\u0627\u0645\u062a\u06cc\u0627\u0632 \u0634\u0645\u0627 \u0628\u0647 \u0627\u06cc\u0646 \u0645\u0637\u0644\u0628&quot;,&quot;legend&quot;:&quot;4.7\\\/5 (8 \u0631\u0627\u06cc)&quot;,&quot;size&quot;:&quot;30&quot;,&quot;title&quot;:&quot;\u067e\u0627\u06a9 \u06a9\u0631\u062f\u0646 \u0647\u0645\u0647 \u0644\u0627\u06af\u0647\u0627\u06cc \u0648\u06cc\u0646\u062f\u0648\u0632 \u062f\u0631 Event Viewer&quot;,&quot;width&quot;:&quot;162&quot;,&quot;_legend&quot;:&quot;{score}\\\/{best} ({count} \u0631\u0627\u06cc)&quot;,&quot;font_factor&quot;:&quot;1.25&quot;}'>\n            \n<div class=\"kksr-stars\">\n    \n<div class=\"kksr-stars-inactive\">\n            <div class=\"kksr-star\" data-star=\"1\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"2\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"3\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"4\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"5\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n    <\/div>\n    \n<div class=\"kksr-stars-active\" style=\"width: 162px;\">\n            <div class=\"kksr-star\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n    <\/div>\n<\/div>\n                \n\n<div class=\"kksr-legend\" style=\"font-size: 24px;\">\n            4.7\/5 (8 \u0631\u0627\u06cc)    <\/div>\n    <\/div>\n","protected":false},"excerpt":{"rendered":"<p><span class=\"span-reading-time rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\">\u0632\u0645\u0627\u0646 \u0644\u0627\u0632\u0645 \u0628\u0631\u0627\u06cc \u0645\u0637\u0627\u0644\u0639\u0647: <\/span> <span class=\"rt-time\"> &lt; 1<\/span> <span class=\"rt-label rt-postfix\">\u062f\u0642\u06cc\u0642\u0647<\/span><\/span>\u0628\u0631\u0627\u06cc \u067e\u0627\u06a9 \u06a9\u0631\u062f\u0646 \u0647\u0645\u0647 eventlog \u0647\u0627 \u062f\u0631 \u0648\u06cc\u0646\u062f\u0648\u0632\u00a0Powershell\u00a0 \u0631\u0627 \u062f\u0631 \u0633\u0637\u062d \u062f\u0633\u062a\u0631\u0633\u06cc \u0628\u0627\u0644\u0627\u06cc Administarator \u0627\u062c\u0631\u0627 \u06a9\u0646\u06cc\u062f \u0648 \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0631\u0627 \u0627\u062c\u0631\u0627 \u06a9\u0646\u06cc\u062f\u00a0 ( \u062f\u0631 \u0648\u06cc\u0646\u062f\u0648\u0632 \u0633\u0631\u0648\u0631 \u0628\u0635\u0648\u0631\u062a \u067e\u06cc\u0634\u0641\u0631\u062b \u0628\u0627 \u06a9\u0644\u06cc\u06a9 \u0631\u0648\u06cc \u0622\u06cc\u06a9\u0648\u0646 \u062a\u0633\u06a9 \u0628\u0627\u0631 \u0628\u0627 \u0627\u062f\u0645\u06cc\u0646 \u0627\u062c\u0631\u0627 \u0645\u06cc \u0634\u0648\u062f )<\/p>\n","protected":false},"author":3,"featured_media":2240,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[202,104,207],"tags":[557,556,558,554,555],"class_list":["post-2236","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-os","category-server","category-infra","tag-event","tag-event-log","tag-558","tag-554","tag-555"],"acf":[],"_links":{"self":[{"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/posts\/2236","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/comments?post=2236"}],"version-history":[{"count":0,"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/posts\/2236\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/media\/2240"}],"wp:attachment":[{"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/media?parent=2236"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/categories?post=2236"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/tags?post=2236"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}