The WshEnvironment object is not exposed directly. For access to it, use the WshShell.Environment property.
| ProgID | N/A |
| File name | WSHom.Ocx |
| CLSID | |
| IID |
The following table describes the properties associated with the WshEnvironment object.
| Property | Description |
|---|---|
| Item | Gets or sets the value of a specified environment variable. |
| Count | The number of enumerated items. |
| length | The number of enumerated items (JScript). |
The following table describes the method associated with the WshEnvironment object.
| Method | Description |
|---|---|
| Remove | Deletes a specified environment variable. |