WisherTools.Helpers

0.2.0-preview0001

The WisherTools.Helpers module is a collection of essential utility functions designed to assist with common tasks in PowerShell scripting. This module provides reusable components for managing directories, working with PowerShell functions dynamically, verifying system availability through network pings, and generating backup file paths. It streamlines various proces
The WisherTools.Helpers module is a collection of essential utility functions designed to assist with common tasks in PowerShell scripting. This module provides reusable components for managing directories, working with PowerShell functions dynamically, verifying system availability through network pings, and generating backup file paths. It streamlines various processes that are frequently used across different scripts and modules, offering a robust set of helper tools to enhance efficiency and maintainability.

**Function Overview**

1. **Get-DirectoryPath**  
  Converts a base path to a local or UNC format based on whether the target is local or remote.

2. **Get-FunctionScriptBlock**  
  Retrieves the script block of a specified PowerShell function.

3. **Get-BackupFilePath**  
  Generates a unique backup file path with a timestamp.

4. **Test-DirectoryExists**  
  Ensures that a directory exists; creates it if necessary.

5. **Test-ComputerPing**  
  Pings a computer to check if it is online with a configurable timeout.
Show more

Minimum PowerShell version

5.0

This is a prerelease version of WisherTools.Helpers.
There is a newer prerelease version of this module available.
See the version list below for details.

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name WisherTools.Helpers -RequiredVersion 0.2.0-preview0001 -AllowPrerelease

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

Install-PSResource -Name WisherTools.Helpers -Version 0.2.0-preview0001 -Prerelease

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

(c) 2024 LarryWisherMan. All rights reserved.

Package Details

Author(s)

  • LarryWisherMan

Functions

Get-BackupFilePath Get-DirectoryPath Get-FunctionScriptBlock Test-ComputerPing Test-DirectoryExists

Dependencies

This module has no dependencies.

Release Notes

## [0.2.0-preview0001] - 2024-09-07

### Added
- Added detailed comment-based help to all public functions in the `WisherTools.Helpers` module. This provides better guidance and documentation for the following functions:
 - `Get-BackupFilePath`
 - `Get-DirectoryPath`
 - `Get-FunctionScriptBlock`
 - `Test-ComputerPing`
 - `Test-DirectoryExists`

FileList

Version History

Version Downloads Last updated
0.2.0 380 9/10/2024
0.2.0-previe... 2 9/10/2024
0.2.0-previe... 2 9/10/2024
0.2.0-previe... (current version) 8 9/7/2024
0.1.0 44 9/7/2024
0.1.0-previe... 2 9/7/2024
Show more