{"id":2600,"date":"2024-06-19T12:15:22","date_gmt":"2024-06-19T12:15:22","guid":{"rendered":"https:\/\/howtogeek.blog\/zh\/?p=2600"},"modified":"2024-06-19T12:15:22","modified_gmt":"2024-06-19T12:15:22","slug":"how-to-use-powershell-to-scan-windows-for-virus-malware-zh-tw","status":"publish","type":"post","link":"https:\/\/howtogeek.blog\/zh\/how-to-use-powershell-to-scan-windows-for-virus-malware-zh-tw\/","title":{"rendered":"\u5982\u4f55\u4f7f\u7528 PowerShell \u6383\u63cf Windows \u75c5\u6bd2\u548c\u60e1\u610f\u8edf\u9ad4"},"content":{"rendered":"<p>Windows Security \u662f\u4e00\u6b3e\u9632\u6bd2\u7a0b\u5e8f\uff0c\u53ef\u4fdd\u8b77\u60a8\u7684\u96fb\u8166\u514d\u53d7\u75c5\u6bd2\u3001\u52d2\u7d22\u8edf\u9ad4\u3001\u9593\u8adc\u8edf\u9ad4\u3001rootkit \u7b49\u7684\u4fb5\u5bb3\u3002\u5b83\u662f\u514d\u8cbb\u7684\uff0c\u7121\u9700\u5c08\u696d\u7684\u9632\u6bd2\u5de5\u5177\u3002<\/p>\n<p>\u4f46\u662f\uff0c\u5982\u679c\u60a8\u4f7f\u7528\u7684\u662f\u672a\u555f\u52d5\u7684 Windows 10 \u7248\u672c\uff0c\u5247\u5728\u4f7f\u7528 Windows \u5b89\u5168\u6027\u6642\u53ef\u80fd\u6703\u9047\u5230\u554f\u984c\u3002\u5373\u4f7f\u60a8\u53ef\u4ee5\u5b58\u53d6\u5b89\u5168\u61c9\u7528\u7a0b\u5e8f\uff0c\u4e5f\u7121\u6cd5\u66f4\u65b0\u5176\u75c5\u6bd2\u5eab\u3002<\/p>\n<p>\u56e0\u6b64\uff0c\u5982\u679c\u60a8\u56e0\u4efb\u4f55\u539f\u56e0\u7121\u6cd5\u5b58\u53d6 Windows \u5b89\u5168\u61c9\u7528\u7a0b\u5e8f\uff0c\u60a8\u53ef\u4ee5\u4f9d\u9760 Powershell \u5be6\u7528\u7a0b\u5f0f\u4f86\u6383\u63cf\u60a8\u7684 Windows \u662f\u5426\u6709\u75c5\u6bd2\u548c\u60e1\u610f\u8edf\u9ad4\u3002<\/p>\n<h2><span id=\"How_to_Launch_Powershell_in_Windows\"><strong>\u5982\u4f55\u5728 Windows \u4e2d\u555f\u52d5 Powershell\uff1f<\/strong><\/span><\/h2>\n<p>\u5728 Windows 10 \u96fb\u8166\u4e0a\u555f\u52d5 Powershell \u76f8\u5c0d\u5bb9\u6613\u3002\u8acb\u4f9d\u7167\u4ee5\u4e0b\u5169\u500b\u6b65\u9a5f\u5728 Windows \u4e0a\u555f\u52d5 Powershell\u3002<\/p>\n<figure class=\"wp-block-image\"><img alt=\"\u96fb\u6e90\u5916\u6bbc\" class=\"wp-image\" decoding=\"async\" height=\"413\" loading=\"lazy\" src=\"https:\/\/cdn.howtogeek.blog\/wp-content\/uploads\/2024\/06\/PowerShell-1.webp\" title=\"\u96fb\u6e90\u5916\u6bbc\" width=\"500\"\/><\/figure>\n<ul>\n<li>\u5728 Windows \u641c\u5c0b\u4e2d\u641c\u5c0b<strong>Powershell \u3002<\/strong><\/li>\n<li>\u53f3\u9375\u55ae\u64ca Powershell \u4e26\u9078\u64c7<strong>\u4ee5\u7ba1\u7406\u54e1\u8eab\u4efd\u57f7\u884c\u3002<\/strong><\/li>\n<\/ul>\n<h2><span id=\"1_Check_Windows_Security_Status\"><strong>1.\u6aa2\u67e5Windows\u5b89\u5168\u72c0\u614b<\/strong><\/span><\/h2>\n<p>\u5728\u57f7\u884c\u4ee5\u4e0b\u65b9\u6cd5\u4e4b\u524d\uff0c\u60a8\u9700\u8981\u78ba\u4fdd\u5b89\u5168\u61c9\u7528\u7a0b\u5f0f\u6b63\u5728\u60a8\u7684\u88dd\u7f6e\u4e0a\u57f7\u884c\u3002\u5982\u679c\u60a8\u4f7f\u7528\u4efb\u4f55\u5176\u4ed6\u5b89\u5168\u7a0b\u5e8f\uff0c\u6b64\u65b9\u6cd5\u5c07\u7121\u6cd5\u904b\u4f5c\u3002<\/p>\n<p>\u5728Powershell\u8996\u7a97\u4e2d\uff0c\u60a8\u9700\u8981\u57f7\u884c\u4e0b\u9762\u7d66\u51fa\u7684\u547d\u4ee4\u3002<\/p>\n<p> <code> <code><strong>Get-MpComputerStatus<\/strong><\/code><\/code><\/p>\n<figure class=\"wp-block-image\"><img alt=\"\u6aa2\u67e5\u5f8c\u885b\u72c0\u614b\" class=\"wp-image\" decoding=\"async\" height=\"378\" loading=\"lazy\" src=\"https:\/\/cdn.howtogeek.blog\/wp-content\/uploads\/2024\/06\/PowerShell-2.webp\" title=\"\u6aa2\u67e5\u5f8c\u885b\u72c0\u614b\" width=\"700\"\/><\/figure>\n<p>\u4e0a\u9762\u7684\u547d\u4ee4\u5c07\u5217\u51fa Windows \u5b89\u5168\u6027\u7684\u6bcf\u500b\u7d30\u7bc0\u3002\u5982\u679c\u60a8\u7684\u7cfb\u7d71\u4e0a\u6b63\u5728\u57f7\u884c\u5b89\u5168\u5de5\u5177\uff0c\u5247<strong>AntivirusEnable<\/strong>\u6b04\u4f4d\u4e0a\u5c07\u986f\u793a<strong>True<\/strong>\u3002<strong><\/strong><\/p>\n<h2><span id=\"2_Update_Windows_Security\"><strong>2.\u66f4\u65b0Windows\u5b89\u5168<\/strong><\/span><\/h2>\n<p>\u5982\u679c\u60a8\u53ca\u6642\u5b89\u88dd\u4e86\u6240\u6709Windows\u66f4\u65b0\uff0c\u5247\u7121\u9700\u9075\u5faa\u6b64\u65b9\u6cd5\u3002\u4f46\u662f\uff0c\u5982\u679c\u60a8\u4e0d\u66f4\u65b0\uff0c\u5247\u5fc5\u9808\u624b\u52d5\u66f4\u65b0 Windows \u5b89\u5168\u61c9\u7528\u7a0b\u5f0f\u3002<\/p>\n<p> <code> <code><strong>Update-MpSignature<\/strong><\/code><\/code><\/p>\n<figure class=\"wp-block-image\"><img alt=\"\u66f4\u65b0 Microsoft Defender\" class=\"wp-image\" decoding=\"async\" height=\"391\" loading=\"lazy\" src=\"https:\/\/cdn.howtogeek.blog\/wp-content\/uploads\/2024\/06\/PowerShell-3.webp\" title=\"\u66f4\u65b0 Microsoft Defender\" width=\"700\"\/><\/figure>\n<h2><span id=\"3_Running_a_Full_Virus_Scan\"><strong>3. \u57f7\u884c\u5168\u9762\u75c5\u6bd2\u6383\u63cf<\/strong><\/span><\/h2>\n<p>\u5982\u679c\u60a8\u6709\u4e00\u6bb5\u6642\u9593\u6c92\u6709\u6383\u63cf\u8a08\u7b97\u6a5f\uff0c\u6700\u597d\u57f7\u884c\u5168\u9762\u7684\u9632\u6bd2\u6383\u63cf\u3002\u60a8\u53ef\u4ee5\u4f9d\u9760 Powershell \u5728\u60a8\u7684 PC \u4e0a\u57f7\u884c\u5b8c\u6574\u7684\u9632\u6bd2\u6383\u63cf\u3002\u5168\u9762\u6383\u63cf\u6703\u6aa2\u67e5 Windows PC \u4e0a\u7684\u6bcf\u500b\u6a94\u6848\uff1b\u56e0\u6b64\uff0c\u5b8c\u6210\u5b8c\u6574\u6383\u63cf\u9700\u8981\u6642\u9593\u3002\u82e5\u8981\u57f7\u884c\u5b8c\u6574\u7684\u9632\u6bd2\u6383\u63cf\uff0c\u8acb\u57f7\u884c\u547d\u4ee4-<\/p>\n<p> <code><strong> <code>Start-MpScan -ScanType FullScan<\/code><\/strong><\/code><\/p>\n<figure class=\"wp-block-image\"><img alt=\"\u57f7\u884c\u5168\u9762\u75c5\u6bd2\u6383\u63cf\" class=\"wp-image\" decoding=\"async\" height=\"389\" loading=\"lazy\" src=\"https:\/\/cdn.howtogeek.blog\/wp-content\/uploads\/2024\/06\/PowerShell-4.webp\" title=\"\u57f7\u884c\u5168\u9762\u75c5\u6bd2\u6383\u63cf\" width=\"700\"\/><\/figure>\n<p>\u7531\u65bc\u5b8c\u6574\u6383\u63cf\u9700\u8981\u4e00\u4e9b\u6642\u9593\u624d\u80fd\u5b8c\u6210\uff0c\u56e0\u6b64\u60a8\u53ef\u4ee5\u5f37\u5236 Windows \u5b89\u5168\u6027\u5728\u80cc\u666f\u57f7\u884c\u6383\u63cf\u3002\u70ba\u6b64\uff0c\u8acb\u57f7\u884c\u547d\u4ee4\u3002<\/p>\n<p> <code> <code><strong>Start-MpScan -ScanType FullScan -AsJob<\/strong><\/code><\/code><\/p>\n<figure class=\"wp-block-image\"><img alt=\"Microsoft Defender \u57f7\u884c\u6383\u63cf\" class=\"wp-image\" decoding=\"async\" height=\"390\" loading=\"lazy\" src=\"https:\/\/cdn.howtogeek.blog\/wp-content\/uploads\/2024\/06\/PowerShell-5.webp\" title=\"Microsoft Defender \u57f7\u884c\u6383\u63cf\" width=\"700\"\/><\/figure>\n<h2><span id=\"4_Run_a_Quick_Scan_using_PowerShell\"><strong>4. \u4f7f\u7528 PowerShell \u57f7\u884c\u5feb\u901f\u6383\u63cf<\/strong><\/span><\/h2>\n<p>\u5168\u9762\u6383\u63cf\u9700\u8981\u4e00\u4e9b\u6642\u9593\u624d\u80fd\u5b8c\u6210\uff0c\u4e26\u4e14\u6703\u964d\u4f4e\u60a8\u7684\u8a2d\u5099\u901f\u5ea6\u3002\u5728\u9019\u7a2e\u60c5\u6cc1\u4e0b\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528 Windows \u5b89\u5168\u6027\u7684\u5feb\u901f\u6383\u63cf\u529f\u80fd\u3002\u82e5\u8981\u4f7f\u7528 Powershell \u57f7\u884c\u5feb\u901f\u9632\u6bd2\u6383\u63cf\uff0c\u8acb\u57f7\u884c\u4e0b\u9762\u7d66\u51fa\u7684\u547d\u4ee4\u4e26\u6309 Enter \u6309\u9215\u3002<\/p>\n<p> <code> <code><strong>Start-MpScan -ScanType QuickScan<\/strong><\/code><\/code><\/p>\n<figure class=\"wp-block-image\"><img alt=\"\u4f7f\u7528 PowerShell \u57f7\u884c\u5feb\u901f\u6383\u63cf\" class=\"wp-image\" decoding=\"async\" height=\"391\" loading=\"lazy\" src=\"https:\/\/cdn.howtogeek.blog\/wp-content\/uploads\/2024\/06\/PowerShell-6.webp\" title=\"\u4f7f\u7528 PowerShell \u57f7\u884c\u5feb\u901f\u6383\u63cf\" width=\"700\"\/><\/figure>\n<h2><span id=\"5_Run_Windows_Security_Offline_Scan\"><strong>5.\u904b\u884cWindows\u5b89\u5168\u96e2\u7dda\u6383\u63cf<\/strong><\/span><\/h2>\n<p>\u5c0d\u65bc\u90a3\u4e9b\u4e0d\u77e5\u9053\u7684\u4eba\u4f86\u8aaa\uff0c\u96e2\u7dda\u6383\u63cf\u529f\u80fd\u53ef\u4ee5\u522a\u9664\u96e3\u4ee5\u6aa2\u6e2c\u7684\u60e1\u610f\u8edf\u9ad4\u3002\u4f46\u662f\uff0c\u96e2\u7dda\u6383\u63cf\u662f\u5728\u53d7\u4fe1\u4efb\u7684\u74b0\u5883\u4e2d\u57f7\u884c\u7684\u3002\u9019\u610f\u5473\u8457\u60a8\u53ef\u80fd\u6703\u5931\u53bb\u7576\u524d\u7684\u5de5\u4f5c\u3002<\/p>\n<p>\u56e0\u6b64\uff0c\u5728\u57f7\u884c\u96e2\u7dda\u6383\u63cf\u4e4b\u524d\uff0c\u8acb\u78ba\u4fdd\u5132\u5b58\u6240\u6709\u958b\u555f\u7684\u6a94\u6848\u3002\u82e5\u8981\u900f\u904e Powershell \u57f7\u884c\u96e2\u7dda\u6383\u63cf\uff0c\u8acb\u57f7\u884c\u547d\u4ee4 \u2013<\/p>\n<p> <code> <code><strong>Start-MpWDOScan<\/strong><\/code><\/code><\/p>\n<figure class=\"wp-block-image\"><img alt=\"\u57f7\u884c Defender \u96e2\u7dda\u6383\u63cf\" class=\"wp-image\" decoding=\"async\" height=\"392\" loading=\"lazy\" src=\"https:\/\/cdn.howtogeek.blog\/wp-content\/uploads\/2024\/06\/PowerShell-7.webp\" title=\"\u57f7\u884c Defender \u96e2\u7dda\u6383\u63cf\" width=\"700\"\/><\/figure>\n<p>\u672c\u6307\u5357\u8aaa\u660e\u5982\u4f55\u4f7f\u7528 PowerShell \u6383\u63cf Windows \u662f\u5426\u6709\u60e1\u610f\u8edf\u9ad4\u3002\u6211\u5e0c\u671b\u9019\u7bc7\u6587\u7ae0\u5c0d\u60a8\u6709\u5e6b\u52a9\u3002\u8acb\u8207\u60a8\u7684\u670b\u53cb\u5206\u4eab\u3002\u5982\u679c\u60a8\u5c0d\u6b64\u6709\u4efb\u4f55\u7591\u554f\uff0c\u8acb\u5728\u4e0b\u9762\u7684\u8a55\u8ad6\u6846\u4e2d\u544a\u8a34\u6211\u5011\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Windows Security \u662f\u4e00\u6b3e\u9632\u6bd2\u7a0b\u5e8f\uff0c\u53ef\u4fdd\u8b77\u60a8\u7684\u96fb\u8166\u514d\u53d7\u75c5\u6bd2\u3001\u52d2\u7d22\u8edf\u9ad4\u3001\u9593\u8adc\u8edf\u9ad4\u3001rootkit \u7b49\u7684\u4fb5\u5bb3\u3002\u5b83\u662f\u514d\u8cbb\u7684\uff0c\u7121\u9700\u5c08\u696d\u7684\u9632\u6bd2\u5de5\u5177\u3002 \u4f46\u662f\uff0c\u5982\u679c\u60a8\u4f7f\u7528\u7684\u662f\u672a\u555f\u52d5\u7684 Windows 10 \u7248\u672c\uff0c\u5247\u5728\u4f7f\u7528 Windows \u5b89\u5168\u6027\u6642\u53ef\u80fd\u6703\u9047\u5230\u554f\u984c\u3002\u5373\u4f7f\u60a8\u53ef\u4ee5\u5b58\u53d6\u5b89\u5168\u61c9\u7528\u7a0b\u5e8f\uff0c\u4e5f\u7121\u6cd5\u66f4\u65b0\u5176\u75c5\u6bd2\u5eab\u3002 \u56e0\u6b64\uff0c\u5982\u679c\u60a8\u56e0\u4efb\u4f55\u539f\u56e0\u7121\u6cd5\u5b58\u53d6 Windows \u5b89\u5168\u61c9\u7528\u7a0b\u5e8f\uff0c\u60a8\u53ef\u4ee5\u4f9d\u9760 Powershell \u5be6\u7528\u7a0b\u5f0f\u4f86\u6383\u63cf\u60a8\u7684 Windows \u662f\u5426\u6709\u75c5\u6bd2\u548c\u60e1\u610f\u8edf\u9ad4\u3002 \u5982\u4f55\u5728 Windows \u4e2d\u555f\u52d5 Powershell\uff1f \u5728 Windows 10 \u96fb\u8166\u4e0a\u555f\u52d5 Powershell \u76f8\u5c0d\u5bb9\u6613\u3002\u8acb\u4f9d\u7167\u4ee5\u4e0b\u5169\u500b\u6b65\u9a5f\u5728 Windows \u4e0a\u555f\u52d5 Powershell\u3002 \u5728 Windows \u641c\u5c0b\u4e2d\u641c\u5c0bPowershell \u3002 \u53f3\u9375\u55ae\u64ca Powershell \u4e26\u9078\u64c7\u4ee5\u7ba1\u7406\u54e1\u8eab\u4efd\u57f7\u884c\u3002 1.\u6aa2\u67e5Windows\u5b89\u5168\u72c0\u614b \u5728\u57f7\u884c\u4ee5\u4e0b\u65b9\u6cd5\u4e4b\u524d\uff0c\u60a8\u9700\u8981\u78ba\u4fdd\u5b89\u5168\u61c9\u7528\u7a0b\u5f0f\u6b63\u5728\u60a8\u7684\u88dd\u7f6e\u4e0a\u57f7\u884c\u3002\u5982\u679c\u60a8\u4f7f\u7528\u4efb\u4f55\u5176\u4ed6\u5b89\u5168\u7a0b\u5e8f\uff0c\u6b64\u65b9\u6cd5\u5c07\u7121\u6cd5\u904b\u4f5c\u3002 \u5728Powershell\u8996\u7a97\u4e2d\uff0c\u60a8\u9700\u8981\u57f7\u884c\u4e0b\u9762\u7d66\u51fa\u7684\u547d\u4ee4\u3002 Get-MpComputerStatus \u4e0a\u9762\u7684\u547d\u4ee4\u5c07\u5217\u51fa Windows \u5b89\u5168\u6027\u7684\u6bcf\u500b\u7d30\u7bc0\u3002\u5982\u679c\u60a8\u7684\u7cfb\u7d71\u4e0a\u6b63\u5728\u57f7\u884c\u5b89\u5168\u5de5\u5177\uff0c\u5247AntivirusEnable\u6b04\u4f4d\u4e0a\u5c07\u986f\u793aTrue\u3002 2.\u66f4\u65b0Windows\u5b89\u5168 \u5982\u679c\u60a8\u53ca\u6642\u5b89\u88dd\u4e86\u6240\u6709Windows\u66f4\u65b0\uff0c\u5247\u7121\u9700\u9075\u5faa\u6b64\u65b9\u6cd5\u3002\u4f46\u662f\uff0c\u5982\u679c\u60a8\u4e0d\u66f4\u65b0\uff0c\u5247\u5fc5\u9808\u624b\u52d5\u66f4\u65b0 Windows \u5b89\u5168\u61c9\u7528\u7a0b\u5f0f\u3002 Update-MpSignature 3. \u57f7\u884c\u5168\u9762\u75c5\u6bd2\u6383\u63cf \u5982\u679c\u60a8\u6709\u4e00\u6bb5\u6642\u9593\u6c92\u6709\u6383\u63cf\u8a08\u7b97\u6a5f\uff0c\u6700\u597d\u57f7\u884c\u5168\u9762\u7684\u9632\u6bd2\u6383\u63cf\u3002\u60a8\u53ef\u4ee5\u4f9d\u9760 Powershell \u5728\u60a8\u7684 PC [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[53],"class_list":["post-2600","post","type-post","status-publish","format-standard","hentry","category-how-to","tag-tips"],"acf":[],"_links":{"self":[{"href":"https:\/\/howtogeek.blog\/zh\/wp-json\/wp\/v2\/posts\/2600","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/howtogeek.blog\/zh\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/howtogeek.blog\/zh\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/howtogeek.blog\/zh\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/howtogeek.blog\/zh\/wp-json\/wp\/v2\/comments?post=2600"}],"version-history":[{"count":1,"href":"https:\/\/howtogeek.blog\/zh\/wp-json\/wp\/v2\/posts\/2600\/revisions"}],"predecessor-version":[{"id":2601,"href":"https:\/\/howtogeek.blog\/zh\/wp-json\/wp\/v2\/posts\/2600\/revisions\/2601"}],"wp:attachment":[{"href":"https:\/\/howtogeek.blog\/zh\/wp-json\/wp\/v2\/media?parent=2600"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/howtogeek.blog\/zh\/wp-json\/wp\/v2\/categories?post=2600"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/howtogeek.blog\/zh\/wp-json\/wp\/v2\/tags?post=2600"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}