Windows Live Alerts
Start access
Support Forum
Remote Desktop Services
Terminal Services
Web Interface
Tips & Tools
Lassen Sie sich von einem Experten Beraten

Working with the Registry Print E-mail

When you are working with Terminal Server you should really now how to use the Registry. Most times Policies (NT) or Group Policy Object (GPO, AD) can be used and that's the more elegant way. Nevertheless you get to a point where you have to modifiy the registry for every user.  So here I'm explaining some technics to do that but not for every aspect.

Using Windows Regedit
(Change or set the default Internet Explorer proxy)

  1. Go to the registry hive for the IE proxy and export the part of the hive as ieproxy.reg
  2. Open ieproxy.reg with notepad and change the values
  3. In the logon script add a line with
    regedit /s Path\ieproxy.reg
    Note that the /s flag is the silent mode that also works for "normal" user.

Image TIP

  1. If you are using a bunch of registry files, move them all in one folder for, instance "USER_REG".
    In the logon script add the line

    FOR %%I IN (PATH\USER_REG\*.reg) DO REGEDIT /s %%I

    That way EVERY registry file within the USER_REG folder will be applied.  If you create new reg files, just save them in the USER_REG folder and that's it.
  2. To delete a complete subtree hive with regedit put a hyphen (-) in front of the the registry hive. For example:

    [-HKEY_CURRENT_USER\Control Panel\Sound]

    this will delete the complete Sound subtree.
  3. To delete a single value, again put a hyphen (-) after the value
    [HKEY_CURRENT_USER\Control Panel\Sound]
    "Theme"= -
  4. Sometimes you need to set a environment variable (%UserName%) in a value, that is possible only with REG_EXPAND_SZ values. So if you have a REG_SZ value you can delete it and recreate the same value as REG_EXPAND_SZ with regedt32 or regini..

    The most popular example of that kind of registry change is the renaming of "My Computer" icon to "%ComputerName% @ %UserName%".

Using Regini, Regdmp
(Change or set the default Internet Explorer proxy)

More powerful are regini and regdmp from the Windows 2000 Resource Kit and only regini is already part of the Terminal Server tools.

  1. On the command line run regdmp "RegistryHive" > ieproxy.ini
  2. With notepad open the ieproxy.ini and make your changes
  3. In the logon script add a line with:
    regini Path\ieproxy.ini
    regini works also for "normal" user.

Image TIP

  1. As before, to apply a bunch of regini files add the following line to the logon script:
  2. With regini you can change remote systems, therefor use
    REGINI -m \\RemoteSystem Path\ieproxy.ini
  3. You can delete a single registry value, therefor edit the ieproxy.ini and set the DELETE flag:
    ProxyServer = DELETE
  4. . ...or a complete registry subtree hive:
    HKEY_CURRENT_USER\Control Panel\Sound [DELETE]
    this will delete the complete Sound subtree.
  5. You can even change the permissions of a subtree
    HKEY_CURRENT_USER\Control Panel\Sound [1 8 17]

    1 = Administrator Full Access,
    8 = World Read Access
    17 = System Full Access
You find a detailed description in the regini.doc that comes with the program. 

There are many more programs like reg, regsrv32, regview, regshot etc. and ways to modify the Windows registry but when working in the SBC you have to know how to manipulate the registry.

Image WebLinks

find or follow me @