24 February, 2014

Unable to browse to \\tsclient\c path

Hi,

I tried to browse the \\tsclient\c path when connected via RDP with drive mapping in the client

I could not find the mapping, after a lot of searched it seems that the client had NoDrives restriction and if your drives are hidden you would not get mapped via RDP.
All settings can be on user based (Registry - HKCU, GPO - User Configuration)


Hope it helps...

12 January, 2014

Finally a media player to inherit kmplayer

Hi all,

for years I used kmplayer as my media player, in the last year after panda TV bought it it started to brake down. started to be heavy and uses web advertisement - just hell.
I looked and looked but could not find any player with all the features.
A second prob'em I had was windows 8 tablet I started using 2 months ago, it seems that no one thought about a very good player for windows tablet.
And then came PotPlayer, this is a full featured player much like kmplayer but with more benefits like "touch" section for tablets.
Here are some options and configuration screenshots:

Main Screen:

Touch features:


Right-Click on main screen:







 Preferences window:






You can download it from Download.com (don't use the auto-update feature)

Update (13/4/14): 
  • more current version is available at http://www.dvbsupport.net/ (event more updated than the "check for update feature)
  • In the latest update they added more touch features...




15 February, 2013

Get machine IP via script (and check if it's up)

Hi,

I encountered a problem, I have a list of servers from AD and wanted to get the IP on each server.
It seems that this is not easy, I could not find a clean way to do it on the web.

As a batch fan I wrote a small script that get's, as an input, a list of names, ping them and echo out to a file the name and the IP (so you can import it to excel easily).

You need to prepare a file named list.txt with all the names to convert to IP.

Next, create 2 files:

STEP1.CMD
========================================

del pinged_list.txt /q
for /f %%A in (list.txt) do (step2.cmd %%A)
========================================

STEP2.CMD
========================================

ping %1 -n 1 -w 1| find "TTL=" > 1.txt
if %errorlevel% NEQ 0 goto end

for /f "tokens=1-3 delims= " %%A in (1.txt) do (echo %%C > 2.txt)
for /f "tokens=1-3 delims=:" %%A in (2.txt) do (echo %1, %%A >>pinged_list.txt)
del 2.txt /q

:end
del 1.txt /q
=========================================

run step1.cmd and wait to the pinged_list.txt file to be prepared.

Enjoy...

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.


01 August, 2012

Using Syncovery and Amazon to backup your data to the cloud


How to get the cheapest on-line backup solution

Well, using Amazon S3 and Syncovery…

Just to say at first, I do not sell or get payed from either amazon nor syncovery for writing this blog.

The first time fee will be 60$ for the Syncovery software and depends on how much data you need to upload to Amazon, from my experience 30Gb is around 4$.

The monthly fee will be about 1.5$ if you do not have a lot of changes.
The pricing can be found at http://aws.amazon.com/s3/pricing/

Now, follow this steps:
1.       Browse to http://aws.amazon.com and get an account for the S3 service (you will have to give your credit card number for the monthly payment…)
2.       Make sure you are in the S3 section
3.       Create a bucket, name it whatever you like but it needs to be unique. As a proposal use the same start and different ending, for example: abcdefg.pictures for the pictures backup bucket and abcdefg.documents for the documents bucket.
Very important – the bucket name is case sensitive so make sure you know what you wrote.
4.       Then click on your name on the upper right corner, on the drop down menu select "Security Credentials"
 

You may be asked to re-login to AWS.
5.       On the section named "Access Credentials" copy the following and save for later:
a.       Access Key ID
b.      Secret Access Key

6.       Browse to http://www.syncovery.com
a.       Download the latest edition
b.      Buy the professional edition for 60$
7.       Create a new profile (we will back up the pictures folder in this example)
a.       Profile Name is "S3 Pictures"
b.      On the "Left-Hand Side", choose your source folder you want to backup (you can also click on "Browse" and do a customized selection)
c.       Next click on "Exact Mirror"

d.      Just to be on the safe side I keep all deleted files for extra 14 days before I delete them from Amazon, click on "Configure"  and fill the following:


You can leave them as long as you like it will not cost you more…
e.      Now on the "Right-Hand Side" click on "Internet" and configure the following:
                                                               i.      Protocol: Amazon S3
                                                             ii.      Bucket:  the bucket name from section 3
                                                            iii.      Make sure that "Reduced redundancy" is checked, it will be cheaper that way.
                                                           iv.      "Access ID" and "Secret Key " should correspond to the details you saved in section 5.

                                                             v.      Now you should see on the Right-Hand Side something like S3://abcdefg.pictures
8.       Now for the fine tuning:
a.       Schedule – schedule the job to run every x time. You need to know that Amazon is charging by the requests and not so much for the size (very smart…) so if you will schedule the job to run every 2 minutes the monthly payment will be higher.
I scheduled it to run every 3 hours…


You have the option to use real-time monitoring, I didn't use it but it seems like a killer option.
b.      Access & Retries – just choose "Do not use" under Volume Shadowing, had a bit of a problem with that feature, not because of the program but due to windows bugs…
c.       Mask & Filters – here you can exclude in general (by mask)
d.      Safety – check the following:

You do not need to worry if your files are deleted because we have 14 days of backup left on Amazon…
9.       Make sure you do not have files larger than 512Mb, if so change the program setting to allow them in the "Rsync, S3" Tab in the Program Settings.
10.   If you want you can configure an email to be sent to you when the backup has problems:
a.       Open Program Settings
b.      Go to Notify Tab
c.       Configure the following checkboxes to get only errors

d.      Click on "Email settings" on the bottom
e.      With your mail address
f.        Assuming that you have a Gmail account hit the "Use Gmail" button and enter your credentials in the "User ID" and "Password" fields.

 That’s it you are ready to start the initial sync…

20 May, 2012

change outlook cache mode in batch script

Hi,

Just a small thing I wrote to change the user outlook mode to cached.
======================================================

rem *** get the profile name ***
FOR /F "tokens=1,2,3 delims= " %%A IN ('reg query "HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles" /v DefaultProfile') DO set profile=%%C

rem *** query if Outlook is in cache mode ***
reg query "HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\%profile%\13dbb0c8aa05101a9bb000aa002fc45a" /v 00036601 |find "84010000"
if errorlevel 0 goto end

rem *** change outlook to cache mode ***
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\%profile%\13dbb0c8aa05101a9bb000aa002fc45a" /v 00036601 /t REG_BINARY /d 84010000 /f

:end

======================================================



for XP machines the first step did work fine so I wrote a small VB to replace it:

The VB (save it as read.vbs):
======================================================

Option Explicit
Dim Temp

Temp = ReadReg("HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\DefaultProfile")
WScript.Echo Temp

Function ReadReg(RegPath)
     Dim objRegistry, Key
     Set objRegistry = CreateObject("Wscript.shell")
     Key = objRegistry.RegRead(RegPath)
     ReadReg = Key
End Function
=======================================================
The corrected CMD:
=======================================================

set profile=
rem *** get the profile name ***
FOR /F "Delims=" %%A IN ('cscript /nologo read.vbs') DO set profile=%%A
echo "Profile: " %profile%

rem *** query if Outlook is in cache mode ***
reg query "HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\%profile%\13dbb0c8aa05101a9bb000aa002fc45a" /v 00036601 |find "84010000"
if %errorlevel%==0 goto end

rem *** change outlook to cache mode ***
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\%profile%\13dbb0c8aa05101a9bb000aa002fc45a" /v 00036601 /t REG_BINARY /d 84010000 /f

:end

=======================================================




Enjoy

04 November, 2010

convert excel tesxt to numbers

Hi,

Just wanted to let you know that I found a way to convert numbers that apear as text back to numbers.
If you have a formula that retrieve a number with a text function, when I try to do a vlookup on this it would not work.
Just multiply it by 1 and you will be OK.