mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-03-25 05:26:47 +01:00
Improved list-automatic-variables.ps1
This commit is contained in:
parent
60eb59b52a
commit
7e1b9fe79f
@ -63,7 +63,9 @@ function ListAutomaticVariables {
|
||||
}
|
||||
|
||||
try {
|
||||
ListAutomaticVariables | format-table -property Variable,Content
|
||||
$Vars = ListAutomaticVariables
|
||||
$Vars | format-table -property Variable,Content
|
||||
write-output "($($Vars.Count) automatic variables total)"
|
||||
exit 0
|
||||
} catch {
|
||||
write-error "ERROR in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
|
Loading…
Reference in New Issue
Block a user