--
Hal Berenson, President
PredictableIT, LLC
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Terminal Server
Client\Default\AddIns\RDPDR]
"FilterQueueType"=dword:ffffffff
--
Hal Berenson, President
PredictableIT, LLC
"Hal Berenson" <hber...@predictableit.com> wrote in message
news:enQEaBtl...@TK2MSFTNGP14.phx.gbl...
I don't think you gave enough info. If this is TS environment, I have no
idea of the answer. If it's a romaing profiles environment, (not TS)
then I may have some ideas of where to start. If it's not roaming
profiles and it's not TS it's probably not worth wasting any time on.
What are the servers, what are the clients, what directory services
structure do you have, what o/s are you running etc.
Hal Berenson wrote:
> I forgot to include the .reg. It is:
>
> Windows Registry Editor Version 5.00
>
> [HKEY_CURRENT_USER\Software\Microsoft\Terminal Server
> Client\Default\AddIns\RDPDR]
> "FilterQueueType"=dword:ffffffff
>
>
--
Gerry Hickman (London UK)
Why not use HKEY_LOCAL_MACHINE? This affects all users on a machine.
[HKEY_LOCAL_MACHINE \Software\Microsoft\Terminal Server
Client\Default\AddIns\RDPDR]
"FilterQueueType"=dword:ffffffff
I am the only user on my machine, so I only have
HKEY_USERS\S-1-5-21-1708537768-1580436667-1202660629-1003
But anything changed in the HKEY_USERS\SID # key is also changed in the
HKEY_CURRENT_USER when that user is logged on and vice versa.
HKEY_USERS\SID # for each user\Software\Microsoft\Terminal Server
Client\Default\AddIns\RDPDR
"FilterQueueType"=dword:ffffffff
Are you referrencing one of these?
Printers That Use Ports That Do Not Begin With COM, LPT, or USB Are Not
Redirected in a Remote Desktop or Terminal Services Session
http://support.microsoft.com/default.aspx?scid=kb;en-us;q302361
Remote Desktop Connection software may cause an access violation if
FilterQueueType is set
http://support.microsoft.com/?kbid=329756
--
Hope this helps. Let us know.
Wes
MS-MVP Windows Shell/User
In news:uMwbDFtl...@TK2MSFTNGP15.phx.gbl,
Hal Berenson <hber...@predictableit.com> hunted and pecked:
Hi,
You will need to enumerate all the user profile folders, and load each
user's NTUSER.DAT in a temporary hive and adding the registry value
(using reg.exe that comes builtin with WinXP).
Here is a batch file that will set the registry value FilterQueueType
to hex ffffffff (REG_DWORD) on all user accounts on the computer. You
will of course need to run the batch file under an user account that
have local admin privileges.
--------------------8<----------------------
@echo off
setlocal
set regcmd=%SystemRoot%\system32\reg.exe
set keypath=Software\Microsoft\Terminal Server Client\Default\AddIns\RDPDR
set valuename=FilterQueueType
:: update current user
set hive=HKCU
set key=%hive%\%keypath%
%regcmd% add "%key%" /v %valuename% /d 0xffffffff /t REG_DWORD /f >nul
:: update all other users on the computer, using a temporary hive
set hive=HKLM\TempHive
set key=%hive%\%keypath%
:: set current directory to "Documents and Settings"
cd /d %USERPROFILE%\..
:: enumerate all folders
for /f "tokens=*" %%i in ('dir /b /ad') do (
if exist ".\%%i\NTUSER.DAT" call :AddRegValue "%%i" ".\%%i\NTUSER.DAT"
)
endlocal
echo.
echo Finished...
echo.
pause
goto :EOF
:AddRegValue
set upd=Y
if /I %1 equ "All Users" set upd=N
if /I %1 equ "LocalService" set upd=N
if /I %1 equ "NetworkService" set upd=N
if %upd% equ Y (
%regcmd% load %hive% %2 >nul 2>&1
%regcmd% add "%key%" /v %valuename% /d 0xffffffff /t REG_DWORD /f >nul 2>&1
%regcmd% unload %hive% >nul 2>&1
)
--------------------8<----------------------
--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/scriptcenter/default.mspx
--
Hal Berenson, President
PredictableIT, LLC
"Wesley Vogel" <123WVo...@comcast.net> wrote in message
news:eQqrkwv...@TK2MSFTNGP09.phx.gbl...
--
Hal Berenson, President
PredictableIT, LLC
"Torgeir Bakken (MVP)" <Torgeir.B...@hydro.com> wrote in message
news:u340lE3l...@tk2msftngp13.phx.gbl...
Printers That Use Ports That Do Not Begin With COM, LPT, or USB Are Not
Redirected in a Remote Desktop or Terminal Services Session
http://support.microsoft.com/default.aspx?scid=kb;en-us;q302361
Will using HKLM in this case really work? My experience to date says that
unless placing a particular key in either HKLM or HKCU is explicitly said to
work then it does not work. As for dealing with multiple users on a machine
via HKU\sid, that seems like a relatively difficult thing to automate.
Also, are each of these hives always loaded or are they only loaded when the
user logs in?
--
Hal Berenson, President
PredictableIT, LLC
"Wesley Vogel" <123WVo...@comcast.net> wrote in message
news:eQqrkwv...@TK2MSFTNGP09.phx.gbl...
the easiest solution to this is to create a simple batch that runs a
regfile. The regfile should contain the values to be changed for current
user.
The batchfile should be something like regedit /S regfile.
Place the batch i n all user startup and it will apply the regchange every
time a user logs on.
The more complex version would use a more advanced batch or vbscript to
read a key first to check if the update has been applied. if the check
fails it applies the uppdate and sets the check key to indicate that the
update is complete for this user
"Torgeir Bakken (MVP)" <Torgeir.B...@hydro.com> wrote in message
news:u340lE3l...@tk2msftngp13.phx.gbl...
Personally, I think the best way of doing it would depend on his setup,
but he never clarified it.
Mats wrote:
I am trying to alter your script so instead of having one registry entry, it
imports a completer .reg file, here is what I have come up with so far, but
guess what it doesn't work ! .... can you help please?
*********************************************************
::@echo off
setlocal
set regcmd=%SystemRoot%\system32\reg.exe
set hive=HKEY_LOCAL_MACHINE\TempHive
cd /d %USERPROFILE%\..
for /f "tokens=*" %%i in ('dir /b /ad') do (
if exist ".\%%i\NTUSER.DAT" call :AddRegValue "%%i" ".\%%i\NTUSER.DAT"
)
endlocal
goto :EOF
set upd=Y
if /I %1 equ "All Users" set upd=N
if /I %1 equ "LocalService" set upd=N
if /I %1 equ "NetworkService" set upd=N
if %upd% equ Y (
%regcmd% load %hive% %2 >nul 2>&1
%regcmd% import file.reg >nul 2>&1
%regcmd% unload %hive% >nul 2>&1
)
*****************************************************