{"id":20729,"date":"2022-08-25T13:01:10","date_gmt":"2022-08-25T13:01:10","guid":{"rendered":"https:\/\/nazing.co.uk\/?p=20729"},"modified":"2022-08-25T13:01:10","modified_gmt":"2022-08-25T13:01:10","slug":"powershell-vs-wmi-for-windows-management-and-automation-anakage-technologies","status":"publish","type":"post","link":"https:\/\/nazing.co.uk\/powershell-vs-wmi-for-windows-management-and-automation-anakage-technologies\/","title":{"rendered":"Powershell Vs Wmi For Windows Management And Automation \u2013 Anakage Technologies"},"content":{"rendered":"\n
WMI (Windows Management Instrumentation) is the technique for querying and changing<\/strong> basic information about any windows server, including SQL Server or Exchange Server. It provides a logical representation and structure of systems and services hosted on the server. Some of the examples of tasks you can do with WMI \u2013<\/p>\n\n\n\n WMI is complicated<\/strong><\/p>\n\n\n\n However with time and features WMI has become slightly difficult to use. Powershell tries to solve few of the problems. Powershell 2.0 supports registry, processes, services, event logs etc. Powershell 3.0 with windows 8 and server 2012, introduced hardware inventory access as storage and network adapters.<\/p>\n\n\n\n Powershell is easy<\/strong><\/p>\n\n\n\n Windows powershell used Get-WmiObject which simplified WMI. It saves minimum of 7 lines\/vbscripts\/perl script as compared to WMI. The single-line commands in powershell are also called cmdlets. The underlying technology of Powershell is still WMI, but the classes are basically wrapped and exposed as functions that behave like Windows PowerShell cmdlets<\/p>\n\n\n\n Powershell can access the below modules \u2013<\/strong><\/p>\n\n\n\n