Environs 3.0.0

dotnet add package Environs --version 3.0.0                
NuGet\Install-Package Environs -Version 3.0.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Environs" Version="3.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Environs --version 3.0.0                
#r "nuget: Environs, 3.0.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Environs as a Cake Addin
#addin nuget:?package=Environs&version=3.0.0

// Install Environs as a Cake Tool
#tool nuget:?package=Environs&version=3.0.0                

Environs

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 and APIs.

Features

  • WMI: Simplifies querying and managing WMI classes, objects, and properties.
  • LDAP: Provides an intuitive interface for interacting with LDAP directories, searching for entries, and performing CRUD operations.
  • System Helper Classes Provides a simple to use class to manage printers, discovering IP addresses, and application discovery.

Installation

The library can be installed via NuGet Package Manager or by manually including the DLL in your project.

NuGet Package Manager

  1. Open the Console.
  2. Run the following command:
dotnet add package Environs

Usage

Below are some examples of how to use the Environs library in your C# code:

    // Example of using the Environment class to query WMI for printers on the local machine
    // using impersonation
    var ExampleObject = new Environment(options: new AuthenticationOptions { Impersonate = true });

    // Call the Execute method to get the results of the query
    IEnumerable<dynamic> Results = ExampleObject.Execute(CommonClasses.Printers, "root\\cimv2");

    // Iterate through the results and print them to the console
    foreach (dynamic Result in Results)
    {
        Console.WriteLine(Result.Name);
    }

Contributing

Contributions 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 file.

License

This library is licensed under the Apache 2 License.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
3.0.0 71 11/19/2024
2.0.29 83 11/11/2024
2.0.28 71 11/4/2024
2.0.27 85 10/29/2024
2.0.26 85 10/9/2024
2.0.25 138 8/14/2024
2.0.24 99 7/10/2024
2.0.23 105 6/17/2024
2.0.22 100 5/29/2024
2.0.21 94 5/14/2024
2.0.20 102 5/6/2024
2.0.19 92 5/1/2024
2.0.18 115 4/29/2024
2.0.17 118 4/10/2024
2.0.16 127 3/13/2024
2.0.15 128 3/4/2024
2.0.14 130 2/14/2024
2.0.13 153 1/10/2024
2.0.12 197 11/16/2023
2.0.11 125 11/6/2023
2.0.10 128 10/30/2023
2.0.9 138 9/18/2023
2.0.8 167 9/13/2023
2.0.7 145 9/4/2023
2.0.6 163 8/30/2023
2.0.5 159 8/28/2023
2.0.4 166 8/7/2023
2.0.3 188 7/9/2023
2.0.1 315 12/12/2022
1.0.24 441 6/6/2022
1.0.23 464 1/11/2022
1.0.22 435 1/6/2021
1.0.19 563 9/13/2020
1.0.18 536 12/23/2019
1.0.15 760 11/6/2018
1.0.14 959 5/22/2018
1.0.13 977 1/11/2018
1.0.11 960 8/18/2017