Konnichiwa!
Wow, I started this issue in 2023-09-24, then updated it last sometime in 2023-10… – and then only again many months later, in March 2024!
Granted, I did forget about it a bit, but in reality, not much has happend, development-wise (or otherwise 😢
) in the meantime.
So, I updated it with the few changes I did actually do in the last couple of days and will then publish it, before it gets too old.
Code
Powershell module saoe
- Added
Get-saoeDFSPath
: Get the file server(s) behind DFS share(s)/directorie(s). (2023-09-21) - Added
Split-saoeModule
: Split the commands of a PowerShell module into separate files (see below). - Added
Test-saoeADGroupNesting
: Test, whether a certain AD group-nesting-combination is allowed. - Added
Compare-saoeADGroupsOfUsers
: Compare the group memberships of two AD user accounts. - Added
Get-saoeComputerBootTime
: Get the last boot time of the local computer. - Changed
Repair-saoeACL
: Reworked and added a few parameters. - Changed
Get-saoeLastLogon
: Added parameter -BadPassword to show logon attempts that failed due to bad/wrong passwords. Removed parameter -ShowDC; one can get the same info with the -Verbose parameter.
Details: Split-saoeModule
At my day job, I’ve inherited the maintenance work of a Powershell module, with 100+ functions in it, spread over ca. 10'000 lines in a single file.
The plan was to split this monolith into separate *.ps1-script files, for better maintainability: That way it should be easier to mull over the individual commands; to develop, experiment, test – or simply: maintain – them.
We use that process already for a newer module and therefore also have a helper function that will then combine these files again into a single *.psm1 module file (similar to what I do with my saoe module).
Based on https://stackoverflow.com/a/40267174
Interesting Videos
- Value Oriented Programming Part 1: You Say You Want to Write a Function - Tony Van Eerd, CppNow 2023
- Writing C++ to Be Read - Vincent Zalzal, CppNorth 2023
Film & Television (54)
How To (63)
Journal (17)
Miscellaneous (4)
News & Announcements (21)
On Software (12)
Projects (26)