Showing posts with label powershell. Show all posts
Showing posts with label powershell. Show all posts

Sunday, September 13, 2015

How to Get Powershell Variables

Open Powershell window and type Get-Variables or gv
PS C:\Users\username> get-variable                                                                               
PS C:\Users\username> gv                                                                                               


Links
https://technet.microsoft.com/en-us/library/hh849899.aspx

How to View All Environment Variable and Their Values

Mac:

Open a terminal window and type printenv
~$ printenv

Windows (DOS):

Open a Command Prompt and type set
c:\Users\username? set


Windows (Powershell):


Open a Powershell window and type Get-Childitem env:
PS C:\Users\username> Get-Childitem env:               


Links
Mac/Unix Bash Shell
Dos
Powershell