Quantcast
Channel: Ivanti User Community : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 15294

Powershell script fails to return some environment variables

$
0
0

We have a simple support Powershell script that pulls several environment variables and displays them to the user.  When we run the script directly, it works.  When its launched as a RES application (10.1.100.0), some of the variables do not get displayed.


here is a snippit of the script.

     Physical  Computer Name: $ENV:ViewClient_Machine_Name

     Virtual Computer Name: $ENV:ComputerName

     Logged on as: $ENV:Username

     Virtual Computer IP:  $IP

     VMware Pool: $ENV:ViewClient_Launch_ID

 

The virtual computer name, logged on as,  and virtual computer IP show up.

The physical computer name, VMware pool do not show up.

 

Why does RES selectively decide which environment variables its going to return?  How do I correct this?

 

Thanks all.

 

-JCK


Viewing all articles
Browse latest Browse all 15294

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>