Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions Add-Named-Instances/Add-Named-Instances.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,17 @@
Writes log files to D:\Logs instead of the default C:\Temp.
.NOTES
Author : Marcel Stam
Date : 2026-05-21
Version : 1.9.0
Date : 2026-07-13
Version : 2.0.0
Requires local administrator privileges.
Intended for use as part of CIS SQL Server hardening.

Version history:
2.0.0 - 2026-07-13 - Migrated logging to shared module Shared\PublicScripts.psm1.
Removed local Write-Log and Remove-OldLogs function definitions;
script now uses shared Write-ScriptLog and Remove-OldLog. Log
filename format changed from Add-Named-Instances_yyyyMMdd_HHmmss.log
to yyyyMMdd_HHmmss_Add-Named-Instances.log.
1.0.0 - 2026-05-13 - Initial release.
1.1.0 - 2026-05-13 - Added explicit param() block; moved group name constants to
dedicated Configuration region; added early exit when no instances
Expand Down
7 changes: 5 additions & 2 deletions CleanupPolicies/Cleanup-Policies.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
Runs against contoso.com and writes the report to C:\Reports.
.NOTES
Author : M. Stam
Date : 2026-06-25
Version : 1.2.0
Date : 2026-07-13
Version : 1.3.0

Requires : GroupPolicy module (RSAT-GPMC)
ActiveDirectory module (RSAT-AD-PowerShell)
Expand All @@ -55,6 +55,9 @@
Group Policy' (Dutch: 'Groepsbeleid toepassen'), which caused false positives.

Version history:
1.3.0 2026-07-13 M. Stam Migrated logging to shared module Shared\PublicScripts.psm1.
Replaced Tee-Object log writer (produced UTF-8 BOM) with
Write-ScriptLog (UTF-8 without BOM).
1.2.0 2026-06-25 M. Stam Removed dead '-not $_.Denied' filter (GPPermission has
no Denied property; GpoApply already implies Allow).
1.1.0 2026-06-25 M. Stam Fixed Apply ACE detection to use Get-GPPermission
Expand Down
6 changes: 5 additions & 1 deletion Compare-GPOsByOU/Compare-GPOsByOU.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
.NOTES
Author : M. Stam
Date : 2026-07-13
Version : 1.4.0
Version : 1.5.0

Requires : GroupPolicy module (RSAT-GPMC)
ActiveDirectory module (RSAT-AD-PowerShell)
Expand All @@ -110,6 +110,10 @@
root\CIMv2;SELECT * FROM Win32_OperatingSystem WHERE Version LIKE "10.%"

Version history:
1.5.0 2026-07-13 M. Stam Migrated logging to shared module Shared\PublicScripts.psm1.
Removed local Write-ScriptLog implementation and
$script:LogEncoding variable; these are now provided by
the module.
1.4.0 2026-07-13 M. Stam Optimised: parallel Get-GPInheritance on PS7+;
elapsed-time logging per phase; UTF-8 NoBOM log
writer; Dictionary<string,object> + TryGetValue;
Expand Down
6 changes: 5 additions & 1 deletion Generate-RDCManConfigs/Generate-RDCManConfigs.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,14 @@
.NOTES
Author: Joey Eckelbarger
Editor: Marcel Stam
Version: 2.0.0
Version: 2.1.0

Version History:
1.0.0 - Joey Eckelbarger - Initial release
2.1.0 - Marcel Stam - 2026-07-13
Migrated logging to shared module Shared\PublicScripts.psm1.
Log filename now includes the script name:
yyyyMMdd_HHmmss_Generate-RDCManConfigs.log.
2.0.0 - Marcel Stam - 2026-06-17
Added param block with ValidateScript
Fixed: -Credential now passed to Get-ADComputer
Expand Down
3 changes: 2 additions & 1 deletion Get-ServiceAccounts/Get-ServiceAccounts.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@

.NOTES
Author : M. Stam
Date : 2026-06-10
Date : 2026-07-13
Version : 1.8
Requires: ActiveDirectory RSAT module, ImportExcel module, WMI/CIM access to target servers.
PSRemoting (WinRM) is required for scheduled task enumeration; it is skipped
gracefully when only DCOM is available.
Expand Down
2 changes: 1 addition & 1 deletion Shared/PublicScripts.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
ModuleVersion = '1.0.0'
GUID = '03d050ae-a770-4d27-95a0-dbbb27602759'
Author = 'M. Stam'
Description = 'Shared logging utilities (Initialize-ScriptLog, Write-ScriptLog, Remove-OldLogs) for PublicScripts repository scripts.'
Description = 'Shared logging utilities (Initialize-ScriptLog, Write-ScriptLog, Remove-OldLog) for PublicScripts repository scripts.'
PowerShellVersion = '5.1'
RootModule = 'PublicScripts.psm1'
FunctionsToExport = @('Initialize-ScriptLog', 'Write-ScriptLog', 'Remove-OldLog')
Expand Down
2 changes: 1 addition & 1 deletion Shared/PublicScripts.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
PowerShell stream (INFO -> Write-Information, WARN -> Write-Warning,
ERROR -> Write-Error). All file output uses UTF-8 without BOM,
compatible with PS 5.1 and PS 7+.
Remove-OldLogs Removes log files in a directory that are older than a configurable
Remove-OldLog Removes log files in a directory that are older than a configurable
retention window. Supports -WhatIf / -Confirm.
#>

Expand Down
Loading