Guest saveoncomputers@yahoo.com Posted August 2, 2008 Posted August 2, 2008 I use terminial servers with network printers. All users can use any printer but they set their own default printer. The default printer is lost when they log off. On 2003 server, I created the logon and logoff script below: Logon Script: REG IMPORT \\server\DefaultPrinters\%clientname%.reg Logoff Script: DEL \\server\DefaultPrinters\%clientname%.reg /q reg export "HKCU\Software\Microsoft\Windows NT\Currentversion\Windows" \\server\DefaultPrinters\%clientname%.reg This works great in 2003 but in 2008, the %clientname% variable is not created while the logon scripte is run. And, it dissappears before the logoff scrip is started. IN 2008 I put the logon script in the Startup so it runs and gets the %clientnamen% correctly but I don't know how to run a logoff script before the %clientname% dissappears... Qusetion: How do I retain the default printer set by the user from one terminal session to the next. Does anyone have a way to perform this function in 2008 or another way to achieve this goal? Thanks, Robert
Recommended Posts