Skip to content

Instantly share code, notes, and snippets.

@jdhitsolutions
jdhitsolutions / PSStyleFileInfoTools.ps1
Created January 21, 2022 18:47
A set of functions for exporting and importing FileInfo settings from $PSStyle in PowerShell 7.2.
#requires -version 7.2
<#
These commands can be used to export FileInfo settings from $PSStyle and
then import them in another session. You might use the import command in
your PowerShell profile script. The file must be a json file.
#>
Function Export-PSStyleFileInfo {
[cmdletbinding(SupportsShouldProcess)]
Param(