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 Vista’ Category

Windows command-line: Finding default routes and setting their metric

Posted by jpluimers on 2014/03/23

When you have multiple network connections, sometimes you want to prefer one to be used as “default” (i.e. because it has higher speed or lower latency).

Windows already tries to accommodate for that by assigning “metrics” to your network connections. They depend on the kind of network (wired over wireless) and speed of the connection.

To see the current default network routes and their metrics, you use the route print command and filter it with findstr like this:

route print | findstr /C:"Metric" /C:" 0.0.0.0"

The “0.0.0.0” string is to filter out the default routes, and “Metric” includes the header line.

For one of my XP machines, the result is this:


Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 192.168.71.1 192.168.71.28 10
0.0.0.0 0.0.0.0 192.168.171.1 192.168.171.140 10

Now, even though both metric are 10, my 192.168.71.1 gateway is much slower than my 192.168.171.1 gateway, so I want to prefer the last one. Read the rest of this entry »

Posted in Power User, Windows, Windows 7, Windows 8, Windows Vista, Windows XP | Tagged: , , , , , | Leave a Comment »

Steps for adjusting a whiteboard photo in Paint.NET

Posted by jpluimers on 2014/03/21

Based on a few links, these are the steps I used to enhance the photo of a whiteboard using Paint.NET:

  1. Auto-Level
  2. Reduce-Noise=Max
  3. Duplicate-Layer
  4. Gaussian-Blur=20
  5. Invert Colors
  6. Layer-Blend-Mode=Color Dodge
  7. Reduce-Noise=Max

These are the links I used to come to this list:

Below are the steps on an image I got from The collective awareness | Idea By Window. Read the rest of this entry »

Posted in Image Editing, Power User, Windows, Windows 7, Windows Vista, Windows XP | 1 Comment »

Interesting: HotspotShield (VPN for iPhone/Mac/Windows to Access Blocked Sites; Surf Anonymously)

Posted by jpluimers on 2014/03/14

Interesting: HotspotShield VPN to surf from a USA IP address.

There is a free version with ads, and a payed version without ads.

Probably more services like this exist, but this has been working for me.

Yup there are:

–jeroen

via: Download Free VPN for iPhone, Mac and Windows to Access Blocked Sites & Surf Anonymously.

Posted in Apple, iOS, iPad, iPhone, Mac, Mac OS X / OS X / MacOS, Mac OS X 10.4 Tiger, Mac OS X 10.5 Leopard, Mac OS X 10.6 Snow Leopard, Mac OS X 10.7 Lion, OS X 10.8 Mountain Lion, Power User, Windows, Windows 7, Windows 8, Windows Vista, Windows XP | Leave a Comment »

NTUSER.INI – sets what parts of your Windows profile are roaming

Posted by jpluimers on 2014/02/14

Never noticed this file before until I got some trouble with several systems sharing parts of a roaming profile.

The content of my %USERPROFILE%\ntuser.ini file is this:
[General]
ExclusionList=AppData\Local;AppData\LocalLow;$Recycle.Bin;Tracing;PrivacIE
[ProfileLoadType]
LastUploadState=Complete

[[The ntuser.ini file is used to set up the user roaming profile components that are not copied to the server.]]

http://www.comptechdoc.org/os/windows/win2k/win2kusers.html

The ExclusionList is for excluding directories in roaming profiles.

The same info is also found here…

HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Winlogon
ExcludeProfileDirs

System tool may not correctly display the user profile size in Windows

Server 2003

http://support.microsoft.com/default.aspx?scid=kb;en-us;842212

–jeroen

via: NTUSER.INI.

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

To force-quit Mac Applications: the Mac equivalent of “Ctrl Alt Delete” (via: eHow.com): Option-Command-Esc

Posted by jpluimers on 2014/02/03

Once every while, a full screen app on your Mac hangs, and there is no way to Command-Tab to another application.

PC addicts then press Ctrl+Alt+Del, to either get to the Task Manager, or to logoff/reboot.

For a Mac, there are two:

  1. Force Quit Read the rest of this entry »

Posted in Apple, Keyboards and Keyboard Shortcuts, Mac, Mac OS X / OS X / MacOS, Mac OS X 10.4 Tiger, Mac OS X 10.5 Leopard, Mac OS X 10.6 Snow Leopard, Mac OS X 10.7 Lion, MacBook, MacBook-Air, MacBook-Pro, OS X 10.8 Mountain Lion, 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 security Token Bloat

Posted by jpluimers on 2014/01/13

This can happen when your Windows Security Token bloat has struck:

… the problem could be minor, or relatively major. You may get weird access denied messages, applications crashing, or strange entries in your event logs. Or worse yet a SID for a group that has a ‘deny permission’ on an object could be dropped into the virtual bit bucket, allowing a user to access a resource they are not supposed to access.

Summary of fixes for token bloat:

  1. Use global or universal groups instead of domain local.
  2. Increase the MaxTokenSize on all computers
  3. Convert security groups to distribution groups if they are only used for email lists.

There is a hard-coded limit of 1,024 SIDs for the Kerberos PAC (privilege attribute certificate)

Kerberos token size still remain to 64k in windows7 / win2008r2.

This is what UWWI did to avoid token bloat: UWWI Token Bloat – IAM – UW Information Technology Wiki.

–jeroen

via:

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 »

Outlook + Outlook express: email received from Outlook sender does not have any attachment in Outlook Express

Posted by jpluimers on 2014/01/03

A friend of mine uses Outlook Express because that has been with Windows since very early on, and before that with Internet Explorer from version 4 till version 6.

He is the kind of person that does use a computer, but doesn’t like change. No wonder, as he is well into the retirement age and the systems he has used in the past all lasted for a very long time.

So it is going to be a big change for him when he needs to upgrade from Windows XP – that he used for over 10 years – to something else. Probably more on that in a later stage (if Windows Live Mail exists by then).

Back to the problem at hand: he couldn’t see attachments from certain Outlook users, though those users insisted .

I hadn’t used Outlook nor Outlook Express for a long while but it was fairly easy to track down the cause by viewing the message source in either of these two ways:

As soon as you see the full message source, there is a ms-tnef encoded Winmail.dat attachment in the affected messages. You find it by searching for a line that starts with “begin” followed by 2 spaces, “666” or “664” (it is one of the means to fake UUencoded attachments and hide text from Outlook Express).

Winmail.dat is known to cause all sorts of problems, even the NY Times devoted an article about it. It basically encapsulates the content of a message including any attachments into RTF: a Microsoft proprietary – but documented – standard of encoding formatted text.

Outlook Express does not cope with Winmail.dat well: it is a typical example of the one hand doesn’t know what the other is doing.

The “trick” is to configure Outlook for using HTML to format text (or use plain text without formatting) instead of RTF. You can do this either globally, or per recipient in the address book:

So when you use Outlook Express, ask the sender not to use RTF.

–jeroen

Posted in Power User, Windows, Windows 7, Windows 8, Windows Vista, Windows XP | 2 Comments »

rdesktop: A Remote Desktop Protocol client (open source, runs on X, hosted on sf.net)

Posted by jpluimers on 2014/01/02

Very interesting, especially since rdesktop.org works with Windows Server 2008 R2 and Windows 7 as well, and is stable on x64.

It provides three tools: rdesktop, rdpproxy and seamlessrdp.

Researching this, I also found about TSWindowClipper which allows you to seamlessly integrates remote apps on your client by integrating a DLL inside the MSTSC software using the official virtual channels.

Back to rdesktop: I really wish the documentation was better, but it contains some very interesting source code.

rdesktop is an open source client for Windows Remote Desktop Services, capable of natively speaking Remote Desktop Protocol (RDP) in order to present the user’s Windows desktop. rdesktop is known to work with Windows versions such as NT 4 Terminal Server, 2000, XP, 2003, 2003 R2, Vista, 2008, 7, and 2008 R2.

rdesktop currently runs on most UNIX based platforms with the X Window System, and other ports should be fairly straightforward.

rdesktop is released under the GNU Public Licence (GPL), version 3. Please send feedback, bug reports and patches to the appropriate mailing list. Patches can also be submitted to the SF patch tracker.

rdesktop is a project. See the Sourceforge rdesktop project info and the Wiki for more information.

Status

The latest stable version of rdesktop is 1.7.1 (edit: this was at the time of writing, for the current latest, check here). This versions solves major issues with 64bit version and smartcard support among a few minor fixes.

–jeroen

via rdesktop: A Remote Desktop Protocol client.

Posted in *nix, Development, Linux, Power User, Remote Desktop Protocol/MSTSC/Terminal Services, Software Development, SuSE Linux, Windows, Windows 7, Windows Server 2000, Windows Server 2003, Windows Server 2003 R2, Windows Server 2008, Windows Server 2008 R2, Windows Vista, Windows XP | Leave a Comment »

Link Shell Extension: for hardlinks, junctions, volume mount points, etc.

Posted by jpluimers on 2013/12/20

Interesting as a complement to fsutil and mklink and FindLinks and JunctionLink Shell Extension and ln.exe.

It allows you to create and maintain “Hardlinks, Junctions , Volume Mountpoints , and Windows7/8’s Symbolic Links, (herein referred to collectively as Links) a folder cloning process” and more.

Note that Link Shell Extensions require NTFS5 or higher (NTFS.sys version 5, which corresponds with NTFS v3.1)

–jeroen

via: Link Shell Extension.

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 »

Windows Vista/7/8 and up: setting the user environment variables as regular user (non-administrator)

Posted by jpluimers on 2013/10/14

As a non-administrator, as of Windows Vista, you are not allowed to change the environment variables the regular way.

Various people have quoted the official Microsoft way of changing the environment variables as a regular user on Windows Vista and up (including Windows 7, Windows 8 and Windows Server 2008 and up).

It means going through the account settings doing half a dozen steps or so.

Quickest way however is to put this in a batch file to set/edit those environment variables like PATH:

"C:\Windows\System32\rundll32.exe" sysdm.cpl,EditEnvironmentVariables

Whereas for the full sysdm.cpl you need Administrator privileges, you don’t for this specific rundll32 call.

The cool thing is that Windows will automatically merge the user and system environment PATH in this format:

system-PATH;user-PATH

–jeroen

via: How can I set user environmental variables such as PATH from a non-administrator account on Windows 7 – Super User.

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