Showing posts with label windows 2003. Show all posts
Showing posts with label windows 2003. Show all posts

26 January, 2013

Add RDP ver 7 support on Windows 2003 server

RDP version 7 is not available for 2003 server.
and what is you really need it ?

Here is the way:

copy from a windows 2008/7 the following files to directory named "source":

aaclient.dll
aaclient.dll.mui
msrdpwebaccess.dll
mstsc.exe
mstsc.exe.mui
mstscax.dll
mstscax.dll.mui
tsgqec.dll
tsgqec.dll.mui
tswbprxy.exe
wksprt.exe
wksprt.exe.mui
wksprtps.dll

copy the content of the following batch file and save it in a directory above "source":
===========================================



Echo copy RDP 7.0 Files for Windows 2003

Rem Copy to Windows\system32\en-US

copy /y ..\Source\aaclient.dll.mui %windir%\system32\en-US\aaclient.dll.mui
copy /y ..\Source\mstsc.exe.mui %windir%\system32\en-US\mstsc.exe.mui
copy /y ..\Source\mstscax.dll.mui %windir%\system32\en-US\mstscax.dll.mui
copy /y ..\Source\wksprt.exe.mui %windir%\system32\en-US\wksprt.exe.mui
copy /y ..\Source\tsgqec.dll.mui %windir%\system32\en-US\tsgqec.dll.mui


Rem copy to Windows\system32

copy /y ..\Source\aaclient.dll %windir%\system32\aaclient.dll
copy /y ..\Source\MsRdpWebAccess.dll %windir%\system32\MsRdpWebAccess.dll
copy /y ..\Source\mstscax.dll %windir%\system32\mstscax.dll
copy /y ..\Source\tsgQec.dll %windir%\system32\tsgQec.dll
copy /y ..\Source\wksprtPS.dll %windir%\system32\wksprtPS.dll
copy /y ..\Source\mstsc.exe %windir%\system32\mstsc.exe
copy /y ..\Source\TSWbPrxy.exe %windir%\system32\TSWbPrxy.exe
copy /y ..\Source\wksprt.exe %windir%\system32\wksprt.exe
 

Rem copy to Windows\system32\cache

copy /y ..\Source\aaclient.dll %windir%\system32\dllcache\aaclient.dll
copy /y ..\Source\MsRdpWebAccess.dll %windir%\system32\dllcache\MsRdpWebAccess.dll
copy /y ..\Source\mstscax.dll %windir%\system32\dllcache\mstscax.dll
copy /y ..\Source\tsgQec.dll %windir%\system32\dllcache\tsgQec.dll


Rem Register Dll after copy

call %systemroot%\system32\regsvr32.exe /s %systemroot%\system32\mstscax.dll
call %systemroot%\system32\wksprt.exe /RegServer
call %systemroot%\system32\regsvr32.exe /s %systemroot%\system32\wksprtPS.dll
call %systemroot%\system32\regsvr32.exe /s %systemroot%\system32\MsRdpWebAccess.dll
call %systemroot%\system32\mstsc.exe /RegServer
call %systemroot%\system32\TsWbPrxy.exe /RegServer


Rem Registry Add (if you have a problem just make sure every line begins with "reg add")

REG ADD "HKLM\SOFTWARE\Microsoft\Internet Explorer\Low Rights\ElevationPolicy\{B43A0C1E-B63F-4691-B68F-CD807A45DA01}","AppName",,"TSWbPrxy.exe"
REG ADD HKLM\SOFTWARE\Microsoft\Internet Explorer\Low Rights\ElevationPolicy\{B43A0C1E-B63F-4691-B68F-CD807A45DA01}","AppPath",0x00020000,"%systemroot%\system32"
REG ADD HKLM\SOFTWARE\Microsoft\Internet Explorer\Low Rights\ElevationPolicy\{B43A0C1E-B63F-4691-B68F-CD807A45DA01}","Policy",0x00010001,3
REG ADD HKLM\Software\Microsoft\Internet Explorer\ActiveX Compatibility\{9059f30f-4eb1-4bd2-9fdc-36f43a218f4a}","Compatibility Flags",0x00010001,0x400
REG ADD HKLM\Software\Microsoft\Internet Explorer\ActiveX Compatibility\{9059f30f-4eb1-4bd2-9fdc-36f43a218f4a}","AlternateCLSID",,"{971127BB-259F-48c2-BD75-5F97A3331551}"
REG ADD HKLM\Software\Microsoft\Internet Explorer\ActiveX Compatibility\{7584c670-2274-4efb-b00b-d6aaba6d3850}","Compatibility Flags",0x00010001,0x400
REG ADD HKLM\Software\Microsoft\Internet Explorer\ActiveX Compatibility\{7584c670-2274-4efb-b00b-d6aaba6d3850}","AlternateCLSID",,"{6A6F4B83-45C5-4ca9-BDD9-0D81C12295E4}"
REG ADD HKLM\Software\Microsoft\Internet Explorer\ActiveX Compatibility\{4EDCB26C-D24C-4e72-AF07-B576699AC0DE}","Compatibility Flags",0x00010001,0x400
REG ADD HKLM\Software\Microsoft\Internet Explorer\ActiveX Compatibility\{4EDCB26C-D24C-4e72-AF07-B576699AC0DE}","AlternateCLSID",,"{54CE37E0-9834-41ae-9896-4DAB69DC022B}"
=====================================================

run the batch file and now you have RDP ver 7 on Windows 2003 server.

It is redundant to write that this is not supported by either Microsoft or me...

Thanks for Elad on this hack.

Enjoy.


07 September, 2010

Utilizing systeminfo to get info on a list of servers or workstation

Hi,

If you have a list of computers (servers or workstations) and need to get some info on them, for example Total Physical Memory you could use my script to get this info.

First put all the computer names in a file and name it servers.txt.
Then decide what property you want to get, the following properties are availble:
Host Name
OS Name:
OS Version
OS Manufacturer
OS Configuration
OS Build Type
Registered Owner
Registered Organization
Product ID
Original Install Date
System Boot Time
System Manufacturer
System Model
System Type
BIOS Version
Windows Directory
System Directory
Boot Device
System Locale
Input Locale
Time Zone
Total Physical Memory
Available Physical Memory
Virtual Memory: Max Size
Virtual Memory: Available
Virtual Memory: In Use
Page File Location(s)
Domain
Logon Server

(will work with only property that the output is 1 line)

The script:
===================================
@echo off
echo.
echo Type the SystemInfo attribute
echo you want to check:

set /P C=
del "%C%.txt"
for /f %%A in (servers.txt) do (
echo Server: %%A >> "%C%.txt"
systeminfo /s \\%%A | find "%C%:" >> "%C%.txt"
echo ------------------------------------------------------------------ >> "%C%.txt"
)
==================================

enjoy

05 April, 2009

Install Software (mostly MS patches) by OS type

You want to install MS patch but there are 2 kind of patches, one for XP and one for Win2k3.
Here is a small script to let you do just this.
It basically query the registry for the OS type search for a string and run a program by the output.

=================================
reg query HKLM\SYSTEM\CurrentControlSet\Control\ProductOptions find "WinNT"
if %errorlevel% == 0 (goto xp) else (goto server)
:xp

\\nt_dn\netlogon\timezonepatch\WindowsXP-KB955839.exe /quiet /norestart
goto end
:server

\\nt_dn\netlogon\timezonepatch\WindowsServer2003-KB955839.exe /quiet /norestart
:end
=================================

Enjoy...