Windows Script Host  

Unable to remove environment variable <name>.

You are calling the method Environment.Remove() on an unrecognized environment variable.

This error generally occurs when using the Remove method. If the environment variable does not exist or is misspelled, the system is not able to remove it.

To correct this error

See Also

Remove Method | WshEnvironment Object