PSScriptTools
v2.36.0
- Update
Get-MyVariable
to make it more compatible with PowerShell 7 (Issue #103). This also makes the command now compatible with the PowerShell ISE. - Added table view called
Simple
to format file for Aliases. - Modified
Options
table view inalias.format.ps1xml
to highlight read-only aliases in Red using ANSI if running in a PowerShell console host. - Updated
Get-PSLocation
to include$PSHome
. - Modified module to only dot source
Get-MyCounter.ps1
if running Windows. The file contains a class definition that uses a Windows-only reference and PowerShell "scans" the file before it dot sources it, which throws an exception on non-Windows platforms. - Added command
Get-PSSessionInfo
and an alias ofgsin
. The command uses a new format file,pssessioninfo.format.ps1xml
. - Added command
Test-IsElevated
. - Updated
Get-PSWho
to included elevated information for non-Windows platforms. - Added format file
pswho.format.ps1xml
. - Help updates
- Updated
README.md
.