diff --git a/src/tiPS/PowerShellTips.json b/src/tiPS/PowerShellTips.json index 8dff44e..fff0583 100644 --- a/src/tiPS/PowerShellTips.json +++ b/src/tiPS/PowerShellTips.json @@ -649,5 +649,17 @@ "Category": 0, "ExpiryDate": "9999-12-31T23:59:59.9999999", "Author": "Daniel Schroeder (deadlydog)" + }, + { + "CreatedDate": "2024-05-20T00:00:00", + "Title": "Use Get-ChildItem to easily see all environment variables", + "TipText": "Need to quickly see all of the environment variables on your system? Use the `Get-ChildItem` cmdlet with the `Env:` drive to easily list them all with their values.", + "Example": "# List all environment variables and their values.\r\nGet-ChildItem Env:\r\n\r\n# You can do the same thing using one of the aliases for Get-ChildItem.\r\ngci Env:\r\ndir Env:\r\n\r\n# List a specific environment variable. e.g. the PATH environment variable.\r\nGet-ChildItem Env:Path", + "Urls": [ + "https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.management/get-childitem" + ], + "Category": 3, + "ExpiryDate": "9999-12-31T23:59:59.9999999", + "Author": "Daniel Schroeder (deadlydog)" } ]