PowershellFunctions005
1.8.1
PowerShell utilities for configuring Windows systems, managing environments, customizing time and date settings, and automating administrative tasks.
Minimum PowerShell version
5.1
Installation Options
Owners
Copyright
(c) Peter Burbery. Some rights reserved.
Package Details
Author(s)
- Peter Cullen Burbery
Tags
windows powershell timezone utilities environment automation
Functions
Get-IanaTimeZone Get-IsoWeekDate Get-IsoOrdinalDate Restart-FileExplorer Get-PowerShellVersionDetails Add-ToPath Remove-FromPath Get-FileSize Get-FileSizeHumanReadable Bring-BackTheRightClickMenu Use-Windows11RightClickMenu Add-DefenderExclusion Get-PowershellPath Enable-LongFilePaths
PSEditions
Dependencies
This module has no dependencies.
Release Notes
Version 1.8.1: Adds enforcement to block PowerShell 7+ from importing the module. A PSEdition and version check was added to the top of the .psm1 file to prevent accidental usage in PowerShell Core.
Version 1.8.0: This release locks the module to Windows PowerShell 5.1 only. Fixes an issue with 0 bytes files. Before, Get-FileSizeHumanReadable "C:\empty-folder" would return " bytes". Now Get-FileSizeHumanReadable "C:\empty-folder" returns "0 bytes".
Version 1.7.3: Removed C# components. StartProcessLongFilePath was not working so I removed it.
Version 1.7.2: Update release notes.
Version 1.7.1: Removed Start-ProcessLongFilePath from the module. The DLL-based cmdlet was deemed too complex.
Version 1.7.0: Added Start-ProcessLongFilePath, a wrapper for a C#-based cmdlet that launches processes using paths exceeding Windows MAX_PATH limitations. Useful for deeply nested folders or long file names. Includes support for optional arguments.
Version 1.6.0: Added Enable-LongFilePaths to programmatically enable support for file paths longer than 260 characters. The function checks the current registry value and only modifies it if necessary.
Version 1.5.0: Add-ToPath and Remove-FromPath now automatically call `refreshenv` if available, updating the current session immediately after modifying the system PATH.
Version 1.4.0: Added Get-PowershellPath to display the PATH environment variable in a zero-padded, indexed table. Uses Format-Table for clear formatting and supports inspection of system path entries.
Version 1.3.0: Added Add-DefenderExclusion to exclude folders from Microsoft Defender. Automatically excludes the parent folder if a file is specified. Requires administrator privileges.
Version 1.2.0: Fixed Add-ToPath and Remove-FromPath to correctly resolve relative paths (e.g., ".") using Resolve-Path. Improves reliability when modifying system PATH from any location.
Version 1.1.0: Added Bring-BackTheRightClickMenu and Use-Windows11RightClickMenu to toggle classic and default context menus in Windows 11. Improved tagging and documentation.
Initial release: includes time zone resolution, ISO week and ordinal date formatting, File Explorer restart, and PowerShell version capability detection.
FileList
- PowershellFunctions005.nuspec
- PowershellFunctions005.psd1
- PowershellFunctions005.psm1