{"id":10826,"date":"2017-12-13T04:30:35","date_gmt":"2017-12-13T12:30:35","guid":{"rendered":"http:\/\/www.palada.net\/index.php\/2017\/12\/13\/news-4598\/"},"modified":"2017-12-13T04:30:35","modified_gmt":"2017-12-13T12:30:35","slug":"news-4598","status":"publish","type":"post","link":"http:\/\/www.palada.net\/index.php\/2017\/12\/13\/news-4598\/","title":{"rendered":"5 more Windows admin tasks made easy with PowerShell"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/images.idgesg.net\/images\/article\/2017\/08\/14_check-your-device-manager-100734143-large.3x2.jpg\"\/><\/p>\n<p><strong>Credit to Author: Jonathan Hassell| Date: Wed, 13 Dec 2017 03:00:00 -0800<\/strong><\/p>\n<p>I\u2019ve written a lot about Microsoft PowerShell on this site, but my favorite thing to do is show how to apply the scripting language to various tasks you already have to do as part of your regular role and responsibilities. In a previous article, I demonstrated how to accomplish <a href=\"https:\/\/www.computerworld.com\/article\/2984549\/microsoft-windows\/scriptshow-performing-five-common-administrative-tasks-using-windows-powershell.html\">five common administrative tasks using PowerShell<\/a>.<\/p>\n<p>In this piece I\u2019ll take five more IT administrative tasks (this time mostly security-related) that with a GUI would be slow and boring and show you how to script them using PowerShell.\u00a0<\/p>\n<p><strong>[ New to PowerShell? Download <a href=\"http:\/\/www.computerworld.com\/resources\/83953\/introduction-to-windows-powershell#tk.ctw-infsb\">Introduction to Windows PowerShell<\/a> to get started ]<\/strong><\/p>\n<p>In June 2017, the <a href=\"https:\/\/www.csoonline.com\/article\/3233210\/ransomware\/petya-ransomware-and-notpetya-malware-what-you-need-to-know-now.html\" rel=\"noopener\" target=\"_blank\">Petya\/NotPetya malware<\/a> disabled most of the IT assets in the country of Ukraine and spread worldwide, locking out several global financial and logistics firms from much their own hardware and software. I had a first-hand view of the chaos that ensued: My email address was mistakenly included in an emergency email chain from employees in a very large company who were desperate to communicate with each other using their personal addresses and accounts to keep their business running. It was a very disruptive time.<\/p>\n<p>What\u2019s more problematic is that the vulnerability that this malware uses to enter systems \u2014 the very same vulnerability exploited by May\u2019s WannaCry ransomware attack \u2014 was patched in March 2017, two months before the WannaCry outbreak and three months before the Petya\/NotPetya outbreak. I hope your enterprise has a robust patch-management platform with all the resources you need to patch regularly, consistently, and early enough to avoid being a victim. But apparently that is not the case at many firms, as that email thread and hundreds of news reports confirm.<\/p>\n<p>So how can we leverage PowerShell to look for the patch that would mitigate this particular malware variant?<\/p>\n<p class=\"tease-title\">To continue reading this article register now<\/p>\n<p class=\"tease-links\"> <a href=\"\/learn-about-insider\/\">Learn More<\/a> &nbsp; Existing Users <a href=\"javascript:\/\/\" onclick=\"IDG.insiderReg.registerLinkEvent('insider-reg-signin')\" data-modal-id=\"insider-popup\">Sign In<\/a> <\/p>\n<p><a href=\"https:\/\/www.computerworld.com\/article\/3241944\/microsoft-windows\/5-windows-admin-tasks-made-easy-with-powershell.html#tk.rss_security\" target=\"bwo\" >http:\/\/www.computerworld.com\/category\/security\/index.rss<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/images.idgesg.net\/images\/article\/2017\/08\/14_check-your-device-manager-100734143-large.3x2.jpg\"\/><\/p>\n<p><strong>Credit to Author: Jonathan Hassell| Date: Wed, 13 Dec 2017 03:00:00 -0800<\/strong><\/p>\n<p>I\u2019ve written a lot about Microsoft PowerShell on this site, but my favorite thing to do is show how to apply the scripting language to various tasks you already have to do as part of your regular role and responsibilities. In a previous article, I demonstrated how to accomplish <a href=\"https:\/\/www.computerworld.com\/article\/2984549\/microsoft-windows\/scriptshow-performing-five-common-administrative-tasks-using-windows-powershell.html\">five common administrative tasks using PowerShell<\/a>.<\/p>\n<p class=\"jumpTag\"><a href=\"\/article\/3241944\/microsoft-windows\/5-windows-admin-tasks-made-easy-with-powershell.html#jump\">To read this article in full, please click here<\/a><\/p>\n<\/section>\n<\/article>\n<p>(Insider Story)<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"colormag_page_container_layout":"default_layout","colormag_page_sidebar_layout":"default_layout","footnotes":""},"categories":[11062,10643],"tags":[11068,714,11619,10761],"class_list":["post-10826","post","type-post","status-publish","format-standard","hentry","category-computerworld","category-independent","tag-idg-insider","tag-security","tag-software","tag-windows-10"],"_links":{"self":[{"href":"http:\/\/www.palada.net\/index.php\/wp-json\/wp\/v2\/posts\/10826","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.palada.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.palada.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.palada.net\/index.php\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"http:\/\/www.palada.net\/index.php\/wp-json\/wp\/v2\/comments?post=10826"}],"version-history":[{"count":0,"href":"http:\/\/www.palada.net\/index.php\/wp-json\/wp\/v2\/posts\/10826\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.palada.net\/index.php\/wp-json\/wp\/v2\/media?parent=10826"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.palada.net\/index.php\/wp-json\/wp\/v2\/categories?post=10826"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.palada.net\/index.php\/wp-json\/wp\/v2\/tags?post=10826"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}