/build/static/layout/Breadcrumb_cap_w.png

Scripting Question


Need a script to add an Environmental Variable per System Context

08/17/2012 3857 views

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

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
0 Comments   [ + ] Show comments

Comments


All Answers

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

Answered 08/17/2012 by: SMal.tmcc
Red Belt

 
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