{"id":20408523,"url":"https://github.com/jcapellman/cwmii","last_synced_at":"2026-03-12T08:39:40.606Z","repository":{"id":92566012,"uuid":"331137062","full_name":"jcapellman/CWMII","owner":"jcapellman","description":"Clean WMI Interface (CWMII) written in C# providing a strongly typed interface to access WMI Properties and Classes","archived":false,"fork":false,"pushed_at":"2024-05-19T13:33:39.000Z","size":151,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-10T21:40:28.123Z","etag":null,"topics":["csharp-library","net5","security-tools","wmi"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jcapellman.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-01-19T23:26:53.000Z","updated_at":"2024-05-19T13:33:43.000Z","dependencies_parsed_at":"2024-03-06T03:35:58.178Z","dependency_job_id":null,"html_url":"https://github.com/jcapellman/CWMII","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcapellman%2FCWMII","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcapellman%2FCWMII/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcapellman%2FCWMII/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcapellman%2FCWMII/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jcapellman","download_url":"https://codeload.github.com/jcapellman/CWMII/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248589880,"owners_count":21129697,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["csharp-library","net5","security-tools","wmi"],"created_at":"2024-11-15T05:33:22.455Z","updated_at":"2026-03-12T08:39:40.565Z","avatar_url":"https://github.com/jcapellman.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CWMII\n\nClean WMI Interface (CWMII) written in C# providing a strongly typed interface to access WMI Properties and Classes\n\nNuGet: https://www.nuget.org/packages/CWMII/\n\nA common method of accessing WMI objects is to utilize System.Management, however this creates block of code like so:\n```\nManagementObjectSearcher searcher = \n    new ManagementObjectSearcher(\"root\\\\CIMV2\", \"SELECT * FROM Win32_BIOS\"); \n\nforeach (ManagementObject queryObj in searcher.Get())\n{\n    Console.WriteLine(\"Manufacturer: {0}\", queryObj[\"Manufacturer\"]);\n}\n```\n\nAnd you've probably created wrapper methods to take a WMI Query as an argument, however this leads to typos and spelling errors in the query itself.\n\nThe CWMII interface allows this same query to be simply:\n```\nCWMII.lib.Enums.Win32_BIOS.Manufacturer.GetWMIValue();\n```\n\nIf you'd liked mulitple properties of let's say Win32_BIOS:\n```\nlib.CWMII.GetProperties\u003cWin32_BIOS\u003e();\n```\n\nThis returns a Dictionary\u003cstring,string\u003e where the Key is the property name.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjcapellman%2Fcwmii","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjcapellman%2Fcwmii","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjcapellman%2Fcwmii/lists"}