Skip to content

Instantly share code, notes, and snippets.

View AdmiringWorm's full-sized avatar

Kim J. Nordmo AdmiringWorm

View GitHub Profile
@AdmiringWorm
AdmiringWorm / Update-AUPackages.md
Created April 24, 2020 08:56
Update-AUPackages Report #powershell #chocolatey
@AdmiringWorm
AdmiringWorm / Update-AUPackages.md
Created April 24, 2020 08:57
Update-AUPackages Report #powershell #chocolatey
@AdmiringWorm
AdmiringWorm / Roadmap.md
Created June 30, 2020 15:00
Chocolatey Package Request Repository Validator

This document contains the current features that are planned/wanted to be implemented for the package validator (and upcoming status checker) on the chocolatey package request repository. There is guarantee that any/all of these features will be implemented, nor when this may happen.

0.2.0 (In Progress)

Planned

  • Implement versioning of module (not important, but can be useful in certain scenarios)
@AdmiringWorm
AdmiringWorm / Funcs.md
Last active March 20, 2021 14:19
PowerShell function not to use in Chocolatey community packages

There are some rules regarding which functions can be used in in Chocolatey packages hosted on the community repository. Basically, any function not available in PowerShell v2.0 can not be used (without a fallback helper). In this gist I want to keep a list of functions that were not available in PowerShell 2.0, or I have found that did not work as expected.

  • Convert-FromJson - while it is a common function nowadays, this was only added in PowerShell 3.0 and can not be used in a community package.
  • Get-ItemPropertyValue - added in PowerShell 5.0, and do not exist on the Chocolatey verifier.
  • Import-Certificate - Only available on some Server platforms (and Windows 10). As an alternative the linked fallback helper can be used instead