KNSoft.CBS 1.0.0-beta

This is a prerelease version of KNSoft.CBS.
dotnet add package KNSoft.CBS --version 1.0.0-beta
                    
NuGet\Install-Package KNSoft.CBS -Version 1.0.0-beta
                    
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="KNSoft.CBS" Version="1.0.0-beta" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="KNSoft.CBS" Version="1.0.0-beta" />
                    
Directory.Packages.props
<PackageReference Include="KNSoft.CBS" />
                    
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 KNSoft.CBS --version 1.0.0-beta
                    
#r "nuget: KNSoft.CBS, 1.0.0-beta"
                    
#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 KNSoft.CBS@1.0.0-beta
                    
#: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=KNSoft.CBS&version=1.0.0-beta&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=KNSoft.CBS&version=1.0.0-beta&prerelease
                    
Install as a Cake Tool

KNSoft.CBS

KNSoft.CBS is a small C library for managing online Windows optional features through the native Component-Based Servicing (CBS) COM interfaces. It does not use DISM or WMI.

The library opens the system CBS local server, works with the @Foundation package, and exposes only the operations needed by KNSoft.ZPigeon:

  • enumerate root Windows features and their current, intended, and requested states;
  • enable a feature, optionally enabling its parent dependencies;
  • disable a feature;
  • commit changes and report whether a reboot is required.

CBS is an undocumented Windows interface. The ABI used here has been verified against current Windows 11 servicing binaries and the interface lineage present on Windows 10 and later.

Build

Use Visual Studio 2026/MSBuild 18 to build Source\KNSoft.CBS.slnx.

Usage

Include KNSoft/CBS/CBS.h and link KNSoft.CBS.lib. NuGet consumers get the include path and architecture-specific library through KNSoft.CBS.targets; the static library carries its system link dependency.

Feature strings remain valid only for the duration of the enumeration callback. Returning FALSE stops enumeration.

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

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.0-beta 97 8/28/2026