/build/static/layout/Breadcrumb_cap_w.png

Need a script to add an Environmental Variable per System Context

Hi folks,

first of all sorry to ask this question, I searched online (Hey Scripting Guy blog n etc...) got some scripts but not sure whether to use them or not, thats why concerning the experts to get the script what they are using?? {I am not using any tool for this package thats y}

I want to add a System Environmental Variable (NOT USER) please provide any good script which do not effect my environment in a bad way... 

TYI


0 Comments   [ + ] Show comments

Answers (1)

Answer Summary:
start /wait reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /v LSFORCEHOST /d "MS-VDF.TMCCACAD.TMCC.EDU" /f start /wait reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /v MINITAB_LICENSE_FILE /d "@\\dr-vdf.TMCCACAD.TMCC.EDU" /f
Posted by: SMal.tmcc 12 years ago
Red Belt
1

poke the registry

start /wait reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /v LSFORCEHOST /d "MS-VDF.TMCCACAD.TMCC.EDU" /f
start /wait reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /v MINITAB_LICENSE_FILE /d "@\\dr-vdf.TMCCACAD.TMCC.EDU" /f


Comments:
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ