Skip to content

Commit

Permalink
Update Get-EnvVars.psm1
Browse files Browse the repository at this point in the history
  • Loading branch information
TonyPhipps authored Oct 2, 2024
1 parent 7333005 commit aa70c36
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Modules/Get-EnvVars.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,17 @@ Function Get-EnvVars {
Retreives the values of all environment variables from the system.
.DESCRIPTION
Retreives the values of all environment variables from the system.
Collects all environment variables from the system.
Variable values will be split into their own entries for reporting.
.EXAMPLE
Get-EnvVars
.EXAMPLE
Get-EnvVars |
Select-Object -Property * -ExcludeProperty PSComputerName,RunspaceID |
Export-Csv -NoTypeInformation ("c:\temp\EnvVars.csv")
.EXAMPLE
Invoke-Command -ComputerName remoteHost -ScriptBlock ${Function:Get-EnvVars} |
Select-Object -Property * -ExcludeProperty PSComputerName,RunspaceID |
Expand Down Expand Up @@ -101,4 +107,4 @@ Function Get-EnvVars {
Write-Verbose ("Total time elapsed: {0}" -f $elapsed)
Write-Verbose ("Ended at {0}" -f ((Get-Date).ToUniversalTime()).ToString("yyyy-MM-dd HH:mm:ssZ"))
}
}
}

0 comments on commit aa70c36

Please sign in to comment.