The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,862 other subscribers

Archive for the ‘Windows XP’ Category

Changing the Windows Console Height/Width and screen buffer Height/Width

Posted by jpluimers on 2014/06/27

Console settings are kept in the registry.

The default settings are under HKEY_CURRENT_USER\Console in the DWORD values ScreenBufferSize and WindowSize.

Examples:

  • buffer height/width 9999/120 is hex value 0x270f0078 in ScreenBufferSize (default 300 x 80 "ScreenBufferSize"=dword:012c0050").
  • Window height/width 69/120 is hex value 0x00500078 in WindowSize (default 25 x 80 "WindowSize"=dword:00190050).

Depending on the window title, settings specific window title (console window name) are in additional keys under HKEY_CURRENT_USER\Console; each key has the name of the “console window name” with two twists:

  1. backslashes are replaced by underscores.
  2. your Windows directory is replaced with %SystemRoot%

So if your console window name is C:\Windows\system32\cmd.exe, the key name is HKEY_CURRENT_USER\Console\%SystemRoot%_system32_cmd.exe Read the rest of this entry »

Posted in Power User, Windows, Windows 7, Windows 8, Windows Server 2000, Windows Server 2003, Windows Server 2003 R2, Windows Server 2008, Windows Server 2008 R2, Windows Vista, Windows XP | Leave a Comment »

tools for iPad as second screen, or show iPad screen on your computer

Posted by jpluimers on 2014/06/24

While Watching the CodeRage Mobile conference last week, I noticed Bruno Fierens showing his iPad on a PC.

I also thought about the other way around: show your PC or Mac on your iPad or using your iPad as a second (third?) monitor to your regular machine.

So here are some links to tools I want to look into further:

I’ve not done comparisons yet. These sites have compared some of the products though:

–jeroen

Posted in Apple, Hardware, iOS, iPad, iPhone, iPod touch, Mac, Mac OS X / OS X / MacOS, Mac OS X 10.7 Lion, MacBook, MacBook Retina, MacBook-Air, MacBook-Pro, OS X 10.8 Mountain Lion, Power User, Windows, Windows 7, Windows 8, Windows Vista, Windows XP | Leave a Comment »

Using dsquery and dsget to get computer information from a domain

Posted by jpluimers on 2014/05/13

This article is a very brief example of how to use dsquery/dsget/find to get computer information from in the active direrctory of a domain.

The main aim for myself is to condense the information here, and have some links for background information.

If you have the right credentials then the below batch file works very well.

It uses these tools:

  • dsquery to query the active directory on your domain controller for the existence and Distinguished Name (or ID/path) of various objects (in this example dsquery computer to check if a computer exists in a domain)
  • dsget which can get you various detail information about an object (for instance dsget computer used in this example))
  • find to raise the correct errorlevel (and indicate if we indeed found a CN – or Common Name – from a distinguished name)

The ds* tools do not raise any errorlevel, so that’s what find is used for.

Further reading: Read the rest of this entry »

Posted in Batch-Files, Development, Power User, Scripting, Software Development, Windows, Windows 7, Windows 8, Windows Server 2000, Windows Server 2003, Windows Server 2003 R2, Windows Server 2008, Windows Server 2008 R2, Windows Vista, Windows XP | Leave a Comment »

Fix by Christian S. – Moers for “KB2686509 repeatedly fails with Error code 0x8007F0F4” (via: Microsoft Community)

Posted by jpluimers on 2014/05/07

Thanks Christian S. – Moers for the fix for KB2686509 repeatedly failing and the answer below.

I’ve used it as the Microsof FixIt offered at You may receive a “0x8007F0F4” error code when you try to install updates from the Windows Update Web site or from the Microsoft Update Web site did not work on several systems. The fix by Christian did work on all those systems.

Note: it is possible you get the same error for KB2676562: MS12-034: Description of the security update for Windows kernel-mode drivers: May 8, 2012, as it is related to KB2686509: MS12-034: Description of the security update for CVE-2012-0181 in Windows XP and Windows Server 2003: May 8, 2012.

One of the symptoms is that your system contains the file %windor%\faultykeyboard.log containing a list of  missing keyboard layout DLL files or KBD files (one of my machines had these missing: kbdjpn.dll and kbdkor.dll).

The cause is that KB2686509 can have problems with registry keys stored here:

  • HKLM\SYSTEM\CurrentControlSet\Control\Keyboard Layout
  • HKLM\SYSTEM\CurrentControlSet\Control\Keyboard Layouts

Christian wrote a batch file to fix it (named BatchFixKB2686509.cmd) which works splendid on the systems I had this error.

The batch file uses regedit /e to export parts of the registry, then writes a small .reg file to clear the keys and imports them with regedit /S, waits for you so you can install the update, then writes back the saved registry data.
So basically, it automatically performs the manual steps described at KB2686509 – Failure Due to Upgrade from Windows ME or 98 to Windows XP – TechNet Articles – United States (English) – TechNet Wiki.

His answer: Read the rest of this entry »

Posted in Batch-Files, Development, Keyboards and Keyboard Shortcuts, Power User, Scripting, Software Development, Windows, Windows XP | Leave a Comment »

; a semi-colon starts a comment line in a .reg file (via: Windows Server content from Windows IT Pro)

Posted by jpluimers on 2014/05/05

Thanks John Savill from Windows IT Pro:

To include comments in a registry file, place a semicolon (;) at the beginning of the line, as shown below:

; This will delete the key below because of the - sign
\[-HKEY_LOCAL_MACHINE\SOFTWARE\SavillTech\key\]

–jeroen

via: How do I place comments in a .reg file? | Windows Server content from Windows IT Pro.

Posted in Microsoft Surface on Windows 7, Power User, Windows, Windows 7, Windows 8, Windows Server 2000, Windows Server 2003, Windows Server 2003 R2, Windows Server 2008, Windows Server 2008 R2, Windows Vista, Windows XP | Leave a Comment »

Windows/NTFS – this works from one file system to another: `junction -D`

Posted by jpluimers on 2014/04/20

I’m glad that junction did work to create a directory junction to link a directory from one NTFS file system to another with this small batch file (that falls back from mklink to junction):

  @echo off
:start
  if !%1!==!! goto :help
  goto :main
:help
  echo %0 TargetFolder
  echo   Creates directory symbolic link using MKLINK or JUNCTION so that TargetFolder points to %~dp0
  goto :eof
:main
  :: http://www.howtogeek.com/howto/windows-vista/using-symlinks-in-windows-vista/
  call :do mklink /D %1 %~dp0
  call :do junction %1 %~dp0
  goto :eof
:do
  echo %*
  %*
  goto :eof

Some more reading on juncions, hard links, symbolic links, etc:

Read the rest of this entry »

Posted in Power User, Windows, Windows 7, Windows 8, Windows 8.1, Windows Server 2000, Windows Server 2003, Windows Server 2003 R2, Windows Server 2008, Windows Server 2008 R2, Windows Vista, Windows XP | Tagged: , , | Leave a Comment »

Fiddler2 to the max: inserting proxy authentication to use DropBox (or other app) behind a corporate firewall

Posted by jpluimers on 2014/04/16


A while ago, I was working with a not so cooperative corporate firewall. All web browsers would work fine, but most other applications would not go through the proxy in a nice way.

For instance, DropBox would show the dreadfull “Connection Error” dialog shown on the right.

That dialog basically means “Dropbox has no clue what happens, try fiddling with your proxy or account settings, then press Reconnect Now” to retry.

Many other applications had issues (for instance Visual Studio connecting to Team Foundation System was very unreliable and the workarounds clumsy).

CNTLM: not the solution

I got inspired by the [WayBack] I code and code: Tutorial: How to use Dropbox behind a corporate proxy server using CNTLM, even though I was pretty sure the corporate firewall was not NTLM based.

And indeed, CNTLM -v -M http://google.com -c CNTLM.INI would give errors like this:

cntlm: Proxy returning invalid challenge!
headers_send: fd 4 warning -999 (connection closed)
Connection closed

HTTP Fiddler: looks promising

So I fired up my old buddy [WayBack] Fiddler 2 HTTP debugging proxy.

Further on, you will learn that Fiddler2 is much more, but right now it is enough to know that it basically sits as a local proxy between your applications and the outside world. Read the rest of this entry »

Posted in .NET, .NET 2.0, .NET 3.0, .NET 3.5, .NET 4.0, .NET 4.5, base64, Cntlm, Development, DropBox, Encoding, Fiddler, JavaScript/ECMAScript, NTLM, Power User, Scripting, SocialMedia, Software Development, Web Development, Windows, Windows 7, Windows 8, Windows Server 2000, Windows Server 2003, Windows Server 2003 R2, Windows Server 2008, Windows Server 2008 R2, Windows Vista, Windows XP, Windows-Http-Proxy | Leave a Comment »

Windows Explorer – copying path/name of files and folders (full/short; regular/UNC; unix/cygwin): Path Copy Copy – Home

Posted by jpluimers on 2014/04/11

This Explorer extension is brilliant: Path Copy Copy – Home.

It works in Windows XP and up (including 7, 8 .x, 20xx Server, etc).

The Open Source is done in Visual Studio with C++.

–jeroen

Read the rest of this entry »

Posted in C++, Development, Power User, Software Development, Visual Studio 2010, Visual Studio and tools, Windows, Windows 7, Windows 8, Windows 8.1, Windows Server 2003, Windows Server 2003 R2, Windows Server 2008, Windows Server 2008 R2, Windows Vista, Windows XP | Leave a Comment »

Updating Windows Defender signatures (only) on Windows 8, 7 and XP (via: twm’s blog)

Posted by jpluimers on 2014/04/08

Based on Updating Windows Defender signatures (only) » twm’s blog (thanks Thomas!), I found it would not work on all my Windows systems.

So I wrote a small batch file that works on my Windows 8.x, 7 and XP systems: Read the rest of this entry »

Posted in Power User, Windows, Windows 7, Windows 8, Windows 8.1, Windows XP | Leave a Comment »

Installing VMware vSphere Client 4.1-5.5 on Windows 8 or 8.1 (via: tech :: stuff)

Posted by jpluimers on 2014/03/29

Until recently, I had all my VMware vSphere Client installations inside a Windows XP VM because Windows XP: relatively light weight, but (as of writing almost) End-of-Life.

I am upgrading that install now, and actually making two installs:

  1. on Windows Server 2003 R2 (the main VM management VM)
  2. on Windows 8.1 (my main Windows work laptop)

Of course I needed the installers for vSphere Client 4.1, 5.0, 5.1 and 5.5. The easiest os to get them through the direct download links at VMware: Vsphere Client Direct Download Links | tech :: stuff  Read the rest of this entry »

Posted in ESXi4, ESXi5, ESXi5.1, ESXi5.5, Power User, VMware, VMware ESXi, Windows, Windows 8.1, Windows Server 2003 R2, Windows XP | Tagged: , , , | Leave a Comment »