Results 1 to 2 of 2

Thread: environment variable

  1. #1
    Join Date
    Jul 2011
    Posts
    1

    environment variable

    Hi and asking for some help or information. I need a way to avoid or disable the possibility of changing "environment variable" in a Windows OS, for a non administrator user. Thanks.

  2. #2
    Join Date
    Dec 2007
    Posts
    1,736

    Re: environment variable

    Check the below script that will help you to remove system variable %XVar%:
    Set wshShell = CreateObject("WScript.Shell")
    Set wshSEnv = wshShell.Environment("System")
    sMyVar = "XVar"
    wshSEnv(sMyVar) = "Vilius"
    WScript.Echo "Variable " & sMyVar & " is now set to Vilius"
    wshSEnv.Remove sMyVar

Similar Threads

  1. what does temp environment variable mean
    By ampleandcuddly in forum MS Office Support
    Replies: 1
    Last Post: 05-10-2010, 02:08 AM
  2. Consider adjusting the pkg_config_path environment variable
    By UbuntU-ME in forum Operating Systems
    Replies: 3
    Last Post: 30-07-2009, 09:37 PM
  3. How to set Environment Variable Path in Linux
    By GunFighter in forum Software Development
    Replies: 3
    Last Post: 07-07-2009, 02:56 PM
  4. How do I check 'temp environment variable' in Word 07
    By Miltongomes in forum MS Office Support
    Replies: 1
    Last Post: 07-06-2009, 09:03 PM
  5. Check the temp environment variable
    By nehal_serpa in forum MS Office Support
    Replies: 1
    Last Post: 19-07-2008, 01:10 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,289,247.75300 seconds with 17 queries