{"id":22938420,"url":"https://github.com/jacraig/environs","last_synced_at":"2025-08-12T18:33:21.700Z","repository":{"id":141486516,"uuid":"100528523","full_name":"JaCraig/Environs","owner":"JaCraig","description":"Environs is a small C# library that provides a simplified interface for working with Windows Management Instrumentation (WMI), Lightweight Directory Access Protocol (LDAP), and related functionality. It aims to make it easier to perform common operations and tasks in these areas without the need for extensive knowledge of the underlying protocols.","archived":false,"fork":false,"pushed_at":"2024-10-21T10:14:15.000Z","size":21113,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-21T14:50:43.594Z","etag":null,"topics":["ldap","wmi"],"latest_commit_sha":null,"homepage":"https://jacraig.github.io/Environs/","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JaCraig.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-08-16T20:10:04.000Z","updated_at":"2024-10-21T10:14:17.000Z","dependencies_parsed_at":"2023-12-12T12:26:23.836Z","dependency_job_id":"5d671257-7460-4b79-b959-e2863566f32c","html_url":"https://github.com/JaCraig/Environs","commit_stats":null,"previous_names":[],"tags_count":24,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JaCraig%2FEnvirons","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JaCraig%2FEnvirons/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JaCraig%2FEnvirons/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JaCraig%2FEnvirons/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JaCraig","download_url":"https://codeload.github.com/JaCraig/Environs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229700222,"owners_count":18109939,"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":["ldap","wmi"],"created_at":"2024-12-14T12:17:53.896Z","updated_at":"2024-12-14T12:17:54.500Z","avatar_url":"https://github.com/JaCraig.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Environs\n\nEnvirons is a small C# library that provides a simplified interface for working with Windows Management Instrumentation (WMI), Lightweight Directory Access Protocol (LDAP), and related functionality. It aims to make it easier to perform common operations and tasks in these areas without the need for extensive knowledge of the underlying protocols and APIs.\n\n## Features\n\n- **WMI:** Simplifies querying and managing WMI classes, objects, and properties.\n- **LDAP:** Provides an intuitive interface for interacting with LDAP directories, searching for entries, and performing CRUD operations.\n- **System Helper Classes** Provides a simple to use class to manage printers, discovering IP addresses, and application discovery.\n\n## Installation\n\nThe library can be installed via NuGet Package Manager or by manually including the DLL in your project.\n\n### NuGet Package Manager\n\n1. Open the Console.\n2. Run the following command:\n\n```shell\ndotnet add package Environs\n```\n\n## Usage\n\nBelow are some examples of how to use the Environs library in your C# code:\n\n```csharp\n    // Example of using the Environment class to query WMI for printers on the local machine\n    // using impersonation\n    var ExampleObject = new Environment(options: new AuthenticationOptions { Impersonate = true });\n\n    // Call the Execute method to get the results of the query\n    IEnumerable\u003cdynamic\u003e Results = ExampleObject.Execute(CommonClasses.Printers, \"root\\\\cimv2\");\n\n    // Iterate through the results and print them to the console\n    foreach (dynamic Result in Results)\n    {\n        Console.WriteLine(Result.Name);\n    }\n```\n\n\n## Contributing\n\nContributions are welcome! If you find a bug, have a feature request, or want to contribute code, please open an issue or submit a pull request. Make sure to follow the guidelines outlined in the [CONTRIBUTING](https://github.com/JaCraig/Environs/blob/master/CONTRIBUTING.md) file.\n\n## License\n\nThis library is licensed under the [Apache 2 License](https://github.com/JaCraig/Environs/blob/master/LICENSE.md).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacraig%2Fenvirons","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjacraig%2Fenvirons","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacraig%2Fenvirons/lists"}