How to Create an Environment Variable in Windows.
1. For Windows 10, right click on the Start Menu and select System.
1.b Click System Info
1.c click advanced system settings.
2. Select Advanced system settings.
3. In the Advanced tab, select Environment Variables.
4. Select New.
5. You will now be able to enter the environmental variable. Most environmental variables are given to you in the form "Variable_name=Variable_value". So if you were given the environmental variable "UGS_LICENSE_SERVERfirstname.lastname@example.org', you would enter "UGS_LICENSE_SERVER" in the Variable name field and "email@example.com" in the Variable value field as shown below.
6. Select OK. You should now see the new Environmental Variable that you created.