From aa70c36b1882d6509217b81f225f17507b864aa1 Mon Sep 17 00:00:00 2001
From: Tony Phipps <anthony.james.phipps@gmail.com>
Date: Wed, 2 Oct 2024 12:40:30 -0600
Subject: [PATCH] Update Get-EnvVars.psm1

---
 Modules/Get-EnvVars.psm1 | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

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
+}