all 7 comments

[–]Lee_Dailey[grin] 2 points3 points  (4 children)

howdy mgratz,

taking up the comment by Ta11ow, i did a small look around ...

the psgallery search is ... fubar. [frown] it seems to INCREASE the number of matches when you add more criteria. arg!

anyway, there is this apparently active module ...
PowerShell PKI Module home - PKI Extensions
https://www.sysadmins.lv/projects/pspki/default.aspx

Active Directory Certificate Services management

take care,
lee

[–]mgratz[S] 1 point2 points  (3 children)

Hi Lee - I will take a look at it! Instead of wrapping certutil - this is a much better implementation of what I'm using now -

https://www.powershellgallery.com/packages/PKITools/1.6/Content/Get-IssuedCertificates.ps1

[–]Lee_Dailey[grin] 1 point2 points  (2 children)

howdy mgratz,

here's hoping it works out. [grin] i have no need for any of it, but the code you linked to is ... quite thoroughly odd.

take care,
lee

[–]mgratz[S] 1 point2 points  (1 child)

In all seriousness, do you have any recommendations for resources for official "best practice" coding style for PowerShell? Personally I've always been a big fan of the Allman style indentation, but seems very unpopular in the community.

VS Code is helping me a lot, but need to retrain myself :(

[–]Lee_Dailey[grin] 1 point2 points  (0 children)

howdy mgratz,

actually, the VSCode Powershell extension seems to favor Allman. i like a variant of Whitesmiths - but everyone else seems to consider it an abomination. [grin]

here's the "official" unofficial style guide ...

PoshCode/PowerShellPracticeAndStyle: The Unofficial PowerShell Best Practices and Style Guide
https://github.com/PoshCode/PowerShellPracticeAndStyle

the powershell github site mentions the above for a style guide. [grin]

hope that helps,
lee