DEFSET is a standalone Windows GUI tool designed to manage default printer selections on a per user basis. This tool is suited to users accessing a Terminal Server/ Citrix session and is designed to retain a user's default printer choice. DEFSET allows the user to change their default printer during program execution, and writes this information to an ini file located in the users individual windows directory. This information is then used to remember the selected the default printer for later sessions. The program should be run at startup, allowing a user to set their default printer. The program can then be minimised to the system tray, and opened at any time to change the default printer. If a new printer has been added during the last access of DEFSET, the program will refresh the set of available printers, allowing a user to select it from the list. This utility was written for environments where the printer list may change due to system policies or location settings, and the retention of printer choice is regularly lost. Ideally the program should be placed in the startup folder of a user's profile to ensure it is run at the beginning of a session. DEFSET uses a file, DEFSET.ini which gets stored in %windir%\windows, or %userprofile%\windows if the user hasn't got a home directory defined. If DEFSET is run on login or start up, it will read DEFSET.ini to make sure you get the same default printer each time. Usage: ====== DEFSET.EXE [/MIN] [/PA] [/INI:] [/?] /MIN -- Minimize the window to the system tray on start. /PA -- Disable the minimize button - for use in a published application. /INI: -- specifies the name and location of ini file to use. The use of system variables is permitted.' /? -- generates this usage message. Examples: ========= DEFSET /MIN /INI:"H:\MY DOCUMENTS\MYINI.INI” DEFSET /INI:U\MYINI.INI DEFSET /MIN DEFSET /PA /INI:%SYSTEMDRIVE%\MYINI.INI DEFSET /INI:C:\%USERNAME%.INI NB: If the INI file does not exist, the default location of %windir%\windows, or %userprofile%\windows is used. ********************************************************************* Recently added features for Administration assistance: ====================================================== 1. Registry settings for DEFSET: For additional administration purposes, a registry key is created on first-run of the DEFSET utility. This registry key contains the path of the DEFSET.ini file and allows an administrator to change the location of the DEFSET.ini file through the registry editor. The registry key is contained in HK Local Machine and applies to all users who execute the DEFSET utility. This is ideal for a terminal server/ Citrix environment. The registry key is located in: HKLM\Software\Ctrl-Alt-Del\DEFSET\inifilelocation The value of the key is the location of the DEFSET.ini file. Leaving the value blank will ensure the default location of %windir%\windows, or %userprofile%\windows is used. Other example values could be: H: \\servername\sharename U:\settings %computername%\username NB.If the path does not exist, no DEFSET.ini file will be created. 2. Command line parameters: Instead of using registry settings, an administrator can launch DEFSET with command line options. The command line options will override any registry settings made by earlier versions of DEFSET. The use of system variables is supported. The command line options and examples are detailed earlier in this document. ********************************************************************* Although written for Terminal Server and Citrix environments, this application will function on non-TS/Citrix workstations and servers. This application has been tested on the following platforms: Windows 2003 Server SP1 Windows 2003 Server SP1 w/ Citrix PS 4.0 Windows 2003 Server SP1 (Terminal Server Application Mode) Windows 2000 Server SP4 Windows 2000 Server SP4 w/ Citrix MF XP Windows 2000 Server SP4 (Terminal Server Application Mode) Windows 2000 Server SP4 w/ Citrix MF 1.8 Windows XP Professional (domain member) This utility is FREEWARE and was written by Warren Simondson of Ctrl-Alt-Del IT Consultancy, Australia. www.ctrl-alt-del.com.au The freeware version is offered AS IS. Ctrl-Alt-Del IT Consultancy has made every effort possible to ensure that DEFSET is free of any bugs or errors, however in no way is DEFSET to be considered error or bug free. You assume all responsibility for any damages or lost data that may result from any errors or bugs in DEFSET. IN NO EVENT WILL Ctrl-Alt-Del IT Consultancy BE LIABLE TO YOU FOR ANY GENERAL, SPECIAL, INDIRECT, CONSEQUENTIAL, INCIDENTAL OR OTHER DAMAGES ARISING OUT OF THIS PRODUCT.