May 4, 200917 yr how do i add user variables such as %temp% or %tmp%, which already exist in all windows systems.I wish to add SEE_MASK_NOZONECHECKS=1 into my unattended windows, but i have no idea how. does anybody know?
May 4, 200917 yr That all depends!What OS and version?At which stage of the installation you feel it necessary to implement the change.What method(s) you are currently using to deploy the OS.The best method for me would to be to use WMIC, (which requires at least XP Professional), but you could choose to add the data to the appropriate registry key at the appropriate time or alternatively run a vbscript or third party utility.The more useful the information provided by you in your question the greater the likelihood of more useful responses!
May 4, 200917 yr Author XP SP3, and I need the user variable only after windows is installed, that means, past-installation, where the start button is clickable. I'll take a look at WMIC. I'll do whatever method's most convenient. Just so you know, SEE_MASK_NOZONECHECKS=1 disables security warning message when opening .vbs scripts. I personally find it annoying and unnecessary. Nothing more to it.
May 4, 200917 yr Just remember what I said:WMIC, (which requires at least XP Professional)Home Edition doesn't have WMIC.Here is the single line code you'll need to achieve your goal.WMIC ENVIRONMENT CREATE Name="SEE_MASK_NOZONECHECKS",UserName="<SYSTEM>",VariableValue="1"Bear in mind that if you've never used WMIC before on that system a short delay will occur whilst it is 'installed' in order to run the code.
May 13, 200917 yr Set this registry key[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment]"SEE_MASK_NOZONECHECKS"="1"See http://support.microsoft.com/kb/889815 and http://vlaurie.com/computers2/Articles/environment.htm for more info.
Create an account or sign in to comment