Chocolatey Fast Answers Extension 0.0.2

#Chocolatey Fast Answers Extension is a Chocolatey extension for use as a dependency by package maintainers.

#PURPOSE: To provide (fairly) easy to remember micro functions for (new?) package creators/maintainers to get short fast answers to common decision tree questions that come up during package creation. The majority of functions return True/False. None of the functions are complex and most rely on WMI. By using this Chocolatey extension you can easily script situations such as aborting an install for a package/program that doesn't work on servers by checking first using Get-IsWinServer or conversely Get-IsWinWorkstation. Maybe you have a package that needs to make sure there is not a pending reboot and you can check using Get-PendingReboot and error out with a message explaining to reboot and try again. Maybe you have a package that only runs on Windows 10 and Windows Server 2016, you can easy check at the beginning of your script using Get-IsWin10 or Get-IsWinServer2016.

...and yes, nobody will probably use Get-IsSSD except me for some non-Chocolatey scripts! :) (Though IMHO defrag packages should abort if a SSD is found and warn that it's not recommended to defrag a SSD.)

The use cases go on...

#FUNCTIONS: List of functions

Screenshot testing all functions with simple test-package install script that does: $test=function and Write-Out function result for each function. Results from the functions show that the test package was run on a computer with Microsoft Windows 10 Pro build 16299 64bit, joined to a domain, (onboard) Intel video, (discreet) Nvidia video, has a SSD, is a workstation not a server, and is pending a reboot.

PACKAGE NOTES

Download count: 4 187
Size: 24.65 kB
Added: 28.01.2019
License: free software
Operating systems: Windows 7 x64, Windows 8 x64,
Windows 8.1 x64, Windows 10 x64, Windows 11 x64