diff --git a/Modules/Get-EnvVars.psm1 b/Modules/Get-EnvVars.psm1 index 2fb96dd..8aa663f 100644 --- a/Modules/Get-EnvVars.psm1 +++ b/Modules/Get-EnvVars.psm1 @@ -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 | @@ -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")) } -} \ No newline at end of file +}