CodeFoxtrot.WindowsHelpers 1.0.7

dotnet add package CodeFoxtrot.WindowsHelpers --version 1.0.7
                    
NuGet\Install-Package CodeFoxtrot.WindowsHelpers -Version 1.0.7
                    
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="CodeFoxtrot.WindowsHelpers" Version="1.0.7" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CodeFoxtrot.WindowsHelpers" Version="1.0.7" />
                    
Directory.Packages.props
<PackageReference Include="CodeFoxtrot.WindowsHelpers" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add CodeFoxtrot.WindowsHelpers --version 1.0.7
                    
#r "nuget: CodeFoxtrot.WindowsHelpers, 1.0.7"
                    
#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.
#:package CodeFoxtrot.WindowsHelpers@1.0.7
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=CodeFoxtrot.WindowsHelpers&version=1.0.7
                    
Install as a Cake Addin
#tool nuget:?package=CodeFoxtrot.WindowsHelpers&version=1.0.7
                    
Install as a Cake Tool

WindowsHelpers

Useful set of helper methods for C# in the Microsoft Windows environment.

NuGet License: MIT

Installation

dotnet add package CodeFoxtrot.WindowsHelpers

Features

  • Registry, Services, Processes, and Privileges
  • File System, Hosts file, and Page file management
  • Network adapters and WMI queries
  • Native P/Invoke wrappers and unsafe helpers
  • Group Policy support (LocalPolicyLibrary)

Quick Example

using WindowsLibrary;

var winHelper = new WindowsHelper(logger, registryHelper);
winHelper.RebootSystem(delaySeconds: 30, comment: "Scheduled maintenance");

Target Frameworks

  • .NET 8.0 / 9.0 / 10.0 (Windows)

License

MIT © CodeFoxtrot

Repository: https://github.com/CodeFontana/WindowsHelpers-Net-Core

Product Compatible and additional computed target framework versions.
.NET net8.0-windows7.0 is compatible.  net9.0-windows was computed.  net9.0-windows7.0 is compatible.  net10.0-windows was computed.  net10.0-windows7.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
1.0.7 81 5/3/2026
1.0.6 345 5/11/2025
1.0.5 229 11/18/2024
1.0.4 662 7/30/2022
1.0.3 590 6/29/2022
1.0.2 591 6/27/2022
1.0.1 579 6/27/2022
1.0.0 616 4/7/2022