Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to set the user variables and settings for every user in a domain when configuring the workstation for a client.

The setting preferences are:

  1. Advanced performance options - Visual effects for best performances
  2. Java Auto update - Option is to be disabled or unchecked
  3. Internet security settings - under Download - Miscellaneous - Display Mixed content should be enabled.
  4. User environment variable should be TEMP=E:\temp

How do I go about setting them all in a batch?

share|improve this question

In a domain environment you would generally use group policy for Windows settings and customised MSI installers (deployed via group policy) to alter settings for 3rd party software such as the Java runtime.

1. According to

you could run this via a logon script:

REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects" /V VisualFXSetting /T REG_DWORD /F /D 2

or set the same setting using a custom ADM in a GPO.

2. There is info about making a custom Java MSI with auto update disabled here:

3. According to the docs you can set that via group policy.

4. You can set user environment variables in a logon script. The command required will vary depending on the scripting language you use (cmd shell/vbs/kix)

In a DOS batch file it's just:


share|improve this answer

Windows Unattended mode allows to customize such settings. A tool such as nLite can help too.

Taken from here. Original answer by Pascal Thivent.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .