PS: Working with Environment Variables in PowerShell
Command to list all Environment Variables: PS C:> Get-ChildItem Env: (You can also use get-item) Name Value —- —– ALLUSERSPROFILE C:ProgramData APPDATA C:UsersgovardhanAppDataRoaming CommonProgramFiles C:Program FilesCommon Files COMPUTERNAME TEST-PC1 ComSpec C:Windowssystem32cmd.exe FP_NO_HOST_CHECK NO HOMEDRIVE C: HOMEPATH Usersgovardhan LOCALAPPDATA C:UsersgovardhanAppDataLocal LOGONSERVER \TESTDOM-DC01 NUMBER_OF_PROCESSORS 2 OS Windows_NT Path %SystemRoot%system32WindowsPowerShellv1.0… PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;…. PGInstallDir C:Program FilesPowerGUI PGSnippetPath C:Windowssystem32WindowsPowerShellv1.0Mo… PROCESSOR_ARCHITECTURE x86 PROCESSOR_IDENTIFIER x86 Family 6 Model 15 Stepping 13, GenuineIntel PROCESSOR_LEVEL 6 PROCESSOR_REVISION 0f0d ProgramData C:ProgramData ProgramFiles C:Program Files PSModulePath C:UsersgovardhanDocumentsWindowsPowerShel… PUBLIC C:UsersPublic QTJAVA C:Program FilesJavajre6libextQTJava.zip SESSIONNAME Console SIKULI_HOME C:Sikuli SystemDrive C: SystemRoot C:Windows TEMP C:UsersGOVARD~1AppDataLocalTemp TMP C:UsersGOVARD~1AppDataLocalTemp USERDNSDOMAIN TESTDOM.COM USERDOMAIN TESTDOM USERNAME Govardhan USERPROFILE […]
Read more