Windows 10 bug – Can’t change IPv4 properties on VPN connection

For some reason currently when you click the properties button on the IPv4 protocol on a VPN connection in Windows 10, it doesn’t do anything.
I usually go in there and uncheck the “Use default gateway on remote network” setting.
That way my internet bound traffic goes out on my connection and only the traffic meant for the network I’m connected to goes through the VPN connection.
The first computer I tried to make that change on made me think it was just something buggy with that machine. After trying to setup a VPN connection on another computer and getting the same results I figured there was something else going on.

Thankfully you can still change the setting through PowerShell

You can run get-vpnconnection to list your VPN connections and get the name then to set the Gateway setting:

set-vpnconnection -name “Your VPN tunnel name” -SplitTunneling $True

Source: Mike McGruire’s blog If then Else with a list of strings


In SQL server you can do an easy exclude or include list by using an in statement.
So you can do:

Select * from someTable where somecolumn in (‘somestring1’, ‘somestring2’, ‘somestring3’, ‘somestring4’)

So you only get records where the contents of somecolumn are in the specified list of strings.
I wanted to do something similiar in
You can use an if then or statement but it can get messy.

If someStringToCheck = “somestring1” or someStringToCheck = “somestring2” or someStringToCheck = “somestring3” or someStringToCheck = “somestring4” then
…Do something blah blah…
end if

This works but what if you have a list of 20 strings you want to check for?
Through some internet searching I found this post on and came up with the following:

Dim someList = New List(Of String) From {“somestring1”, “somestring2”, “somestring3”, “somestring4”}
If someList.Contains(someStringToCheck) Then
…Do something blah blah…
…Do something else blah blah…
end if

It seems kind of backwards but it takes your list of strings and determines if the string you fed it is in that list.  If so do something or if not then do something else.

  • Camera: Venue 8 7840
  • Taken: 7 April, 2015
  • Aperture: ƒ/2.4
  • Focal length: 2.94mm
  • ISO: 37
  • Shutter speed: 1/85s
  • Title: Jpeg

How to sort DirectoryInfo.Getfiles array

I have an Intranet page that looks at a folder of files and lists them out.  It uses io.directoryinfo.getfiles to get the list of files but there wasn’t anyway to control the sorting.  By default it was sorting ascending but i wanted it reversed.  Here’s what I had at first:

Dim di As New IO.DirectoryInfo(Server.MapPath(“FolderofFiles”))
Dim aryFi As IO.FileInfo() = di.GetFiles(“*.pdf”)
Dim fi As IO.FileInfo
For Each fi In aryFi
..blah blah loop

I tried to add Array.Sort(aryFi) but that resulted in an error:
“At least one object must implement IComparable.”

So after some internet searching I came up with the following based on a post on

First you have to create an IComparer class:

Private Class FileNameComparer
Implements System.Collections.IComparer
Public Function Compare(ByVal info1 As Object, ByVal info2 As Object) As Integer Implements System.Collections.IComparer.Compare
Dim FileInfo1 As System.IO.FileInfo = DirectCast(info1, System.IO.FileInfo)
Dim FileInfo2 As System.IO.FileInfo = DirectCast(info2, System.IO.FileInfo)
Dim Filename1 As String = FileInfo1.FullName
Dim Filename2 As String = FileInfo2.FullName
If Filename1 > Filename2 Then Return -1
If Filename1 < Filename2 Then Return 1
Return 0
End Function
End Class

Then use the comparer to sort:

Dim di As New IO.DirectoryInfo(Server.MapPath(“Folderoffiles”))
Dim aryFi As IO.FileInfo() = di.GetFiles(“*.pdf”)
Dim comparer As IComparer = New FileNameComparer()
Array.Sort(aryFi, comparer)
Dim fi As IO.FileInfo
For Each fi In aryFi
..blah blah loop

The comparer I tweaked sorts the files by their filename in a descending order.  You can reverse the Return -1 and Return 1 to get them into ascending order.
Also, if you would like to sort the files by creation date you could use this comparer:

Private Class DateComparer
Implements System.Collections.IComparer
Public Function Compare(ByVal info1 As Object, ByVal info2 As Object) As Integer Implements System.Collections.IComparer.Compare
Dim FileInfo1 As System.IO.FileInfo = DirectCast(info1, System.IO.FileInfo)
Dim FileInfo2 As System.IO.FileInfo = DirectCast(info2, System.IO.FileInfo)
Dim Date1 As DateTime = FileInfo1.CreationTime
Dim Date2 As DateTime = FileInfo2.CreationTime
If Date1 > Date2 Then Return 1
If Date1 < Date2 Then Return -1
Return 0
End Function
End Class

Then you’d change:

Dim comparer As IComparer = New FileNameComparer()
Dim comparer As IComparer = New DateComparer()

Exchange 2013 auto mapped mailboxes don’t close when removed

I have an Exchange mailbox with several other mailboxes that it has full permissions on.
Exhange 2010 or 2013, I don’t remember which, added a feature that adds the mailboxes to Outlook automatically.
So, instead of having to go to account settings and navigating to advanced settings and manually adding additional mailboxes to open it does it for you.

That’s great except when you don’t want them to or when you remove the full access permissions and it decides to stay in Outlook.

To remove a mailbox that keeps showing up even though you’ve removed the Full access permissions.  Open Active Directory Users and Computers find the users account.  Click on Attribute Editor.  Scroll down the list until you find msExchDelegateListLink and remove the user account you don’t want the mailbox showing up in.

You can also turn off Exchange auto mapping on individual accounts.
This will give Administrator full access on the TheUser account without automatically adding it to Outlook:
(so you will have to manually add the account in account settings, open these additional mailboxes)

Add-MailboxPermission -Identity TheUser -User ‘Administrator’ -AccessRight FullAccess -InheritanceType All -Automapping $false


The best remote for a HTPC

I’ve mentioned in the past that I use a HTPC (Home Theater PC) for streaming movies from my local network (a network share on a Windows server) to my TV.  There has been a huge amount of streaming boxes hit the market lately and I’ve tried many of them.  I use a Roku 3 for most Netflix, Hulu, Amazon and Pandora activitiy.  When it comes to streaming local content XBMC is hands down the best (see my previous post about using it with Windows 8).  I do have Plex on my Roku and the server piece on a server where I store my videos.  Plex works well and is on all platforms.  I just like playing the native video file as it is and not have to transcode to a client.   I also just really like the interface of XBMC.  I had hoped the port of XBMC to the Ouya would possibly replace my HTPC but I don’t think it’s been released yet and I’m not super optimistic that it will be as nice and fluid.  So my Ouya sits mostly untouched for now.

To this end I’ve been on a never ending quest to find the right remote control for my HTPC.  I’ve tried many different remotes.  The one that came the closest but still wasn’t quite there was the Logitech diNovo (goofy name) mini PC entertainment keyboard.


It’s actually a very nice keyboard and remote but it’s a bit awkward, somewhat overpriced and I never got really comfortable using it.  Before this I used a remote from nMediaPC.


It worked well most of the time but didn’t have an integrated keyboard.  It came with a normal sized wireless keyboard that was too big and bulky.  It didn’t take long for the trackball mouse to start acting up.
Before this I had also tried the Rii Mini Keyboard with touch pad.


This one was not bad.  The keyboard worked well though the touch pad could be a bit sensative.  It was backlit and is a good price on Amazon.  My problem with this one was battery life and it was a bit awkward in the hand.  It seemed like the battery was dead every time I picked it up, especially after sitting for a week or so unused.  It’s also not really a one handed remote which I prefer.  I also tended to have some sticking keys sometimes.

Before that one there were many more.  I like experimenting and the old devices tucked away in my closets show this.  I could probably dig up and photograph 5 or 6 more remotes but I won’t bore you with that.

So, my current and so far favorite HTPC remote?
It’s the MCE Remote Control by Feilan.
I purchased it from Amazon for about $26.


The remote has a keyboard integrated into it.  A trackball (kind of small) for mouse activities.  This also is a learning universal remote so I’ve programmed some of the buttons to turn on my TV and home theater systems.
The remote is nice to hold in the hand and isn’t cheap feeling like some I’ve used.  The keys all work well, though there’s a few that are too close to other keys like the left and right cursor.  The battery life is great.  It has zoom in and out buttons which are nice for browsing the web.  The ctrl-alt-del function is a nice touch for those times Windows or an application isn’t acting right.  The play, volume and other buttons work well with XBMC.  The instructions that came with it are pretty sparse (poorly translated from Chinese) and there’s no real online help.    I’ve tested and used the remote with both Windows 7 and 8.  Overall it’s a great remote and I don’t plan on looking for a replacement just yet.  I’ve had the remote for about 6 months and it’s performance has been reliable and consistent.  I did notice on the Feilan website there’s another version (actually several versions that all look very similar) of the remote that has back lighting that would be nice but I haven’t found anywhere to buy it just yet.  That would be the only reason right now to replace it.


  • Camera: Lumia 1020
  • Taken: 16 August, 2013
  • Aperture: ƒ/2.2
  • ISO: 800
  • Shutter speed: 1/15s

Alienware M14x with Windows 8 – USB 3.0 ports and Corsair thumb drives issue


I have an Alienware M14x laptop and a few Corsair USB 3.0 thumb drives.  The thumb drives most of the time would not get recognized by Windows.  They throw an “unrecognized device” error when they are plugged in.  I can plug the same thumb drives into a USB 2.0 port on the same laptop and they work fine just not at USB 3.0 speeds which is not cool.  I can plug other USB 3.0 devices, like a Western Digital external hard drive, and they work just fine at USB 3.0 speeds.

After some searching I found some rather lengthy instructions here that fixed the problem perfectly for me and a co-worker with the same laptop.  Essentially the instructions walk you through getting Windows 7 drivers installed for the USB 3.0 hub and ports.

I imagine this applies to more than just the Alienware M14x and would work for other laptops as well.

Windows 7 domain user keeps logging on with temporary profile


I recently had a computer replaced on our domain.  For some reason the domain account I was working with kept logging into Windows with a temporary profile.  I tried numerous fixes found on the Internet to no avail.  Then I thought maybe it had something to do with the fresh load of Windows and I nuked the machine and started over.  Still not working right.  I figured it must be something to do with the domain account but couldn’t figure it out.

On a whim I compared domain accounts with another account and found the affected account was a member of the guests security group and the domain guests security group.
I removed the account from both groups and the problem went away.  Not sure how or when the account got added to those groups but the problem was solved by removing membership to them.

Easy way to block ads in Internet Explorer


One of the first things I do after installing Firefox is install ADBlock+ and then subscribe to a list.  Internet Explorer has had some addons that did the same sort of functionality for awhile but I found with IE9 and IE10 it’s even easier to block ads.  Open Internet Options and click the Programs tab.  Click the Manage Addons button.  Click “Tracking Protection” and then below that click “Get a Tracking Protection List online…”

That will take you to the Internet Explorer Gallery and there will be several different types of lists you can add.  I don’t recommend adding to many lists as this is likely to slow down your browser.  I added the Fanboy Adblock list.  I’ve read that the EasyPrivacy list put out by Easy List but I haven’t tried it yet.

I’ve used this on Windows 7 with IE9 and Windows 9 with IE10.  I haven’t looked to see if it’s in IE8 or below.

One thing to consider when adding ad blocking is that it can be taking revenue money from bloggers who rely on ads to provide free information.  That’s a decision I’ll leave up to you.

HP P1102W prints a blank page then throws error

I’ve been using one of the HP P1102W laserjet printers.  It’s a great printer that supports iOS’s AirPrint as well as HP’s ePrint.

It periodically spits out a blank page and then the orange light (I assume it’s an error light?) starts flashing when I would print a document.

After some troubleshooting and a bit of mild anger (and a bit of help from a co-worker) the problem was narrowed down to when I printed a single page from a multiple page PDF.  The fix is in the Print dialogue box.  There’s a setting called “Print on both sides of paper” that was checked by default.  Unchecking that fixed my issue.  Some have mentioned clicking the “Advanced” button and selecting “Print as image” as a possible fix, but it didn’t work for me.