Recursive Directory Traversal to a Specific Depth in PowerShell

The Get-ChildItemToDepth function acts as a wrapper around Get-ChildItem facilitating recursive traversal of a path to a specific depth. Whilst what’s covered should be provider agnostic, I’ll be focusing specifically on file system directories.

Scheduled Task Trigger - Synchronize Across Time Zones

When creating a scheduled task trigger using the Task Scheduler UI, the setting Synchronize Across Time Zones is disabled by default. However, the PowerShell cmdlet New-ScheduledTaskTrigger exhibits the opposite behaviour. I wanted to understand the purpose of this setting in order to determine whether I should enable or disable it,...

Get the Nth Working Day of the Month

I recently needed to schedule a task with Windows Task Scheduler to run at midday on the 5th weekday (Mon-Fri) of every month in 2020. Windows Task Scheduler lacks the functionality to configure such a schedule, so I needed to create a separate trigger for each month. Rather than do...

Region Independent Date/Time Formatting in VBScript

I recently had cause to work on some existing automation tasks written in VBScript. These scripts may well be replaced with PowerShell in the future but for now I just need to maintain the status quo. I wanted to add functionality to write to a log file, prefixing each entry...

Avaya Communication Manager Version Number

Avaya Communication Manager is a communication product which provides user and system management, call routing, application integration/extensibility, etc. It is normally accompanied by other Avaya products/components to form a complete communication platform. The purpose of this post is to demonstrate how to obtain the Communication Manager version number from the...

Copyright © 2018 - 2022 thecliguy.co.uk
For details, see Licences and Copyright