PSNativeCmdDevKit

0.2.0-preview0002

Helpers for building PowerShell wrappers around native commands.

Minimum PowerShell version

5.1

This is a prerelease version of PSNativeCmdDevKit.

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name PSNativeCmdDevKit -RequiredVersion 0.2.0-preview0002 -AllowPrerelease

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

Install-PSResource -Name PSNativeCmdDevKit -Version 0.2.0-preview0002 -Prerelease

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

(c) 2020 Gael Colas. All rights reserved.

Package Details

Author(s)

  • GaelColas

Tags

Native Linux Windows

Functions

Add-SudoPreferenceRule Get-PropertyHashFromListOutput Get-SudoPreference Get-SudoPreferenceRule Invoke-NativeCommand Remove-SudoPreferenceRule

Dependencies

This module has no dependencies.

Release Notes

## [0.2.0-preview0002] - 2026-09-20

### Added

- GitVersion yaml configuration.
- Copilot repository guidance, targeted WDAC language-mode review rules, and a
 validation skill.
- Sampler WikiSource generation, packaging, and GitHub wiki deployment.
- Unit coverage for native command invocation, output parsing, sudo rule
 lifecycle, and constrained-language behavior.

### Security

- Removed dynamic PowerShell source generation from `Invoke-NativeCommand`.
- Stopped recompiling sudo preference filter strings and require filters to be
 script blocks or the `*` wildcard.

### Fixed

- Updated the Sampler bootstrap and pinned `Sampler` to
 `0.121.0-preview0001`.
- Replaced retired Azure Pipelines images and artifact tasks with supported
 hosted images and pipeline artifacts.
- Corrected sudo preference output so `Invoke-NativeCommand` receives `Sudo`
 and `SudoAs`.
- Corrected replacement of the first sudo rule and removal of multiple matches.
- Prevented continuation lines for discarded properties from accessing a
 missing extra-properties collection.

### Changed

- Migrated the test configuration to Pester 5-style settings with an 80 percent
 coverage target and a Windows PowerShell/PowerShell 7 cross-platform matrix.
- Updated contributor and user documentation for the Sampler workflow and WDAC
 trust boundary.

FileList

Version History

Version Downloads Last updated
0.2.0 26 9/20/2026
0.2.0-previe... (current version) 5 9/20/2026
0.2.0-previe... 69 7/12/2020
0.1.0 2,252 7/12/2020