Re: Client Printer Redirection



Vera,

Should the .reg file look something like this?

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Terminal Server
Client\Default\AddIns\RDPDR]
"RedirectDefaultPrinterOnly"=dword:00000001

The logon script entry should look like this?

regedit.exe /s C:\Registry Scripts\RedirectDefaultPrinterOnly.reg

Does it matter where the .reg file is stored or where the .bat file is
located?

Thanks for all your help, Vera.

Sincerely,
farleynx

"Vera Noest [MVP]" wrote:

What about the users, then? Can you enforce a login script for
them?
If so, you could simply add the registry value to their HKCU part
of the registry. Export the key to a regfile and import it with
regedit /s <your regfile>, or use regini.

310516 - HOW TO: Add, Modify, or Delete Registry Subkeys and Values
by Using a Registration Entries (.reg) File
http://support.microsoft.com/?kbid=310516

264584 - How to change registry values or permissions from a
command line or a script
http://support.microsoft.com/?kbid=264584

_________________________________________________________
Vera Noest
MCSE, CCEA, Microsoft MVP - Terminal Server
TS troubleshooting: http://ts.veranoest.net
___ please respond in newsgroup, NOT by private email ___

=?Utf-8?B?ZmFybGV5bng=?= <farleynx@xxxxxxxxxxxxxxxxxxxxxxxxx>
wrote on 28 feb 2008 in
microsoft.public.windows.terminal_services:

Vera,

The client computers are not members of the local domain. That
in is where my problems lie. Is there anyway to restrict what
printers are being redirected from the clients? There is no need
to redirect 5 printers when they only use one, their default
printer. This is causing unwanted taxation on the Printer
Spooler as well as the server itself.

As far as the VALUEOFF DELETE statement, that will not add or
delete the registry entry if the GPO policy is not configured or
disabled. This was referenced in a document published by Florian
Frommherz. (Can't remember where I got it from otherwise I would
provide the link.)

Thanks,
farleynx

"Vera Noest [MVP]" wrote:

Are the clients members of your AD domain?
If not, the GPO will not affect them at all.
If they are domain members, to which OU did you link the GPO?
You can use Resultant set of Policies to see which GPOs are
applied to a particular user on a particular client.

I'm also a bit puzzled by your use of the value DELETE for
VALUEOFF. I've never seen it used, and it isn't mention
anywhere here:

Using Administrative Template Files with Registry-Based Group
Policy White Paper
http://www.microsoft.com/downloads/details.aspx?FamilyID=e7d72fa
1- 62fe-4358-8360-8774ea8db847&displaylang=en
_________________________________________________________
Vera Noest
MCSE, CCEA, Microsoft MVP - Terminal Server
TS troubleshooting: http://ts.veranoest.net
___ please respond in newsgroup, NOT by private email ___

=?Utf-8?B?ZmFybGV5bng=?= <farleynx@xxxxxxxxxxxxxxxxxxxxxxxxx>
wrote on 27 feb 2008 in
microsoft.public.windows.terminal_services:

Hello,

I have several users connecting to a Win2K3 Terminal Server
that need their local printers mapped. However, I would like
to restrict them to only being able to map their local
default printer. The following registry setting controls that
on the client side, but I don't have access to the local
computers in order to make that change.

HKCU\Software\Microsoft\Terminal Server
Client\Default\AddIns\RDPDR\RedirectDefaultPrinterOnly

I thought I might be able to control this through the group
policy so I created a custom .adm file (see below).

;Redirection of A Terminal Server Client's default printer
only

CLASS USER

CATEGORY !!WindowsComponents

CATEGORY !!TS_GP_NODE

CATEGORY !!TS_CLIENT

KEYNAME "Software\Microsoft\Terminal Server
Client\Default\Addins\RDPDR\RedirectDefaultPrinterOnly"

POLICY !!RedirectDefaultPrinterOnly

EXPLAIN !!RedirectDefaultPrinterOnly_Explain

VALUENAME RedirectDefaultPrinterOnly
VALUEON NUMERIC 1
VALUEOFF DELETE

END POLICY

END CATEGORY ; TS_CLIENT

END CATEGORY ; TS_GP_NODE

END CATEGORY ; WindowsComponents

[STRINGS]
WindowsComponents="Windows Components"
TS_GP_NODE="Terminal Services"
TS_CLIENT="Client"
RedirectDefaultPrinterOnly="Redirect Client Default Printer
Only" RedirectDefaultPrinterOnly_Explain="Will redirect the
client's default printer only. All other printers will not be
available during the Terminal Services session."

The .adm file imported without errors and the setting is
available in the group policy editor. However when I enable
the setting and test it, all the printers are still mapped
and the registry setting is not created or modified on the
client.

Is this even possible via the method I am using, am I missing
something or is there a better way to achieve the intended
result?

Thanks,
farleynx

.



Relevant Pages

  • RE: Syncing fax server with company web
    ... please backup the whole registry list first in case any unexpected. ... Files\Microsoft Integration\Windows Small Business Server 2003\Logs''. ... And then we should push the shared fax client application from server to ... Microsoft CSS Online Newsgroup Support ...
    (microsoft.public.windows.server.sbs)
  • Re: ConnectComputer error log
    ... is the final variable was changing the client computer name. ... the registry entry returned to the original incorrect ... The server commands ran successfully and returned expected values. ... > SBS Newsgroups: ...
    (microsoft.public.windows.server.sbs)
  • Re: Registering DLL
    ... Windows-based program can add information to the registry and read ... component into the pathname of the server DLL or EXE that contains it. ... creates an instance of the component and returns to the client a reference ... you provide a .REG file that contains the registry ...
    (microsoft.public.vb.general.discussion)
  • RE: DSL & Dialup Not Working Under W2K
    ... After a remote client establishes a connection by using Dial-Up Networking, ... A "cannot find server or DNS" error occurs. ... Windows 2000 LAN clients cannot map a network drive to the server. ... If you use Registry Editor incorrectly, ...
    (microsoft.public.win2000.networking)
  • RE: Mapped Drive Connection to Network Share is being disconnected
    ... I did apply the changes to the registry to both client and servers. ... > steps which mentioned in the KB297684 on the server side. ... > before it disconnects a mapped network drive. ...
    (microsoft.public.windowsxp.help_and_support)

Loading