VsExternalTools/EnvironmentVariables.ps1
# This script can be added as an external tool to VisualStudio. # Title: EnvironmentVariables # Command: powershell.exe # Arguments: -nologo -noexit -executionpolicy unrestricted -file "D:\UserData\z0012stm\Documents\WindowsPowerShell\Modules\CmxModule\VsExternalTools\EnvironmentVariables.ps1" # Use Ouput window: TRUE $variables = Get-ChildItem env: Write-Output "Found $($variables.Count) environment variables . . . " Write-Output "" $content = $variables | Foreach-Object { $_.Key + " = " + $_.Value } $content Read-Host "The script has finished. Press any key to exit" |