mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-13 22:38:46 +02:00
Update the manuals in Docs/
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
## list-environment-variables.ps1 - Lists all environment variables
|
||||
## The list-environment-variables.ps1 PowerShell Script
|
||||
|
||||
This PowerShell script lists all environment variables.
|
||||
|
||||
@ -31,4 +31,32 @@ Author: Markus Fleschutz | License: CC0
|
||||
## Related Links
|
||||
https://github.com/fleschutz/PowerShell
|
||||
|
||||
## Source Code
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Lists all environment variables
|
||||
.DESCRIPTION
|
||||
This PowerShell script lists all environment variables.
|
||||
.EXAMPLE
|
||||
PS> ./list-environment-variables
|
||||
|
||||
Name Value
|
||||
---- -----
|
||||
ALLUSERSPROFILE C:\ProgramData
|
||||
APPDATA C:\Users\Joe\AppData\Roaming
|
||||
...
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
Author: Markus Fleschutz | License: CC0
|
||||
#>
|
||||
|
||||
try {
|
||||
Get-ChildItem env:
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
exit 1
|
||||
}
|
||||
|
||||
*Generated by convert-ps2md.ps1 using the comment-based help of list-environment-variables.ps1*
|
||||
|
Reference in New Issue
Block a user