Where is the Hosts file location in Windows 8?

The Hosts files is a file that allows you to override the DNS lookups for specific domains.

Say you want to test your application that has brianseekford.com hardcoded but you actually want to run it against your local computer IP

You edit the hosts file and simply add the entry:      brianseekford.com

ALL dns lookups will now return when looking for that domain, so your browsers etc will now all redirect. It was also the old school way to do ad blocking, put in a domain you never want to resolve. i.e. ads.joe.com

Anyway, now that you know what it does, this is where to find it:


Remember, open notepad as Administrator FIRST, otherwise you wont be able to save.


Temporary fix for internet for Frontier FIOS after Verizon takeover

Did you lose internet access after Fronter screwed the pooch on the Verizon take over? Personally, I am pissed at both Verizon and Frontier. Verizon was doing a fine job but got money hungry for quick capital and sold us to these clowns.

Businesses all over lost internet, phone, etc because they screwed up big time.

Well, it’s possible you might be able to get your internet working again with a little self-help.

I found that two things got me working again, but these are somewhat temporary fixes depending on how bad Frontier messes things up.

  1. You should change your DNS to googles public DNS. This means changing the way your computer/device looks up website names.

i.e. when you type in google.com it has to look up google.com in the DNS system to get the IP address of the website. Then you go to the IP. Frontiers DNS seems to suck a  big nut and not work, so you get a “domain not found” etc error. If you are getting that error, this may resolve your problem.

If you are a somewhat tech: The DNS IP’s are simple. and

If you need more help setting it, Here is a link so I don’t have to type it all out:

How to Switch to OpenDNS or Google DNS to Speed Up Web Browsing


Now the second thing you will need to do is log in to your router. I hope you remember the credentials. If not, reset the bad boy and use the defaults for your router model. You should be able to look those up.

I use a Verizon ActionTec router.

What you need to do is release and renew the lease on the IP address in your router on the WAN. Sounds complicated right? It isn’t. It’s more complicated getting to the screen.

Here is a link that may help:



Realistically, just type in your Router model on the back of the router and google How to Release IP Address on X.


I wish I could help more, but I am pretty slammed and just wanted to point out there may be a fix. It worked for me. At least my stuff works now, but only the devices I can change the DNS on. I still have to release and renew every few days as well.


So, in summary:

Change your DNS to and

Release and Renew your IP on your Router.

Ideally, also set the DNS on the router on the WAN and LAN to the IP addresses above as well for devices that automatically use the DHCP supplied IP.


-Happy Networking


Oh yeah, Frontier SUCKS and they haven’t changed my mind on that.






Where is Inspect.exe for UI Access?

Stupid SDK doesn’t give any details on where the SDK path is, etc.

Well, Install the Windows 8.1 SDK with the options. You have plenty of disk space, so don’t whine.

Here is the path for the 64 bit version.

C:\Program Files (x86)\Windows Kits\8.1\bin\x64


Happy Coding!

Convert a .CRT to a .PFX for code signing!

I was trying to sign my code but my cert came as a crt and no one seems to play well with those. I imported into my the Certificate Store then tried to export. The PFX option was greyed out.

How freaking annoying. Well I followed the steps from this guy and it started working again like magic.


Link: https://weikingteh.wordpress.com/2010/11/22/unable-to-export-an-installed-certificate-to-pfx/

Unable to export an installed certificate to .pfx

If you’re trying to export an installed certificate into the .pfx format but the option is greyed out like when I was working with it for vPro provisioning, then it might be due to missing private keys. In my case, I’ve received a provisioning certificate from Comodo where I purchased it but was not able to export it to .pfx format which is required by the Out-of-Band Service Point in SCCM. If you are one of those that have this same experience, what you need to do is to recover the private key. To do this, type in certutil –repairstore my “<serialnumber>”.

How do you locate your serial number? Simply double-click on the certificate that you would like to export, go to the Details tab and note down the Serial Number found there. Once the command completed successfully, attempt to export the certificate again and you’ll see now that you are able to select to export the private key and the .pfx format option is now enabled.


Happy Coding!

How to run a batch file with administrator priveleges with automatic elevation

Do you have build scripts that require you run commands elevated. Do you forget to click run as admin then you get errors halfway through a 20 minute build?

Well, I did all the damn time. I found this script change and it works awesome so I figured I would share with the class.

if _%1_==_payload_ goto :payload

echo %~nx0: elevating self
set vbs=%temp%\getadmin.vbs
echo Set UAC = CreateObject^(“Shell.Application”^) >> “%vbs%”
echo UAC.ShellExecute “%~s0”, “payload %~sdp0 %*”, “”, “runas”, 1 >> “%vbs%”
del “%temp%\getadmin.vbs”
goto :eof

echo %~nx0: running payload with parameters:
echo %*
echo —————————————————
cd /d %2
rem put your code here
rem e.g.: perl myscript.pl %1 %2 %3 %4 %5 %6 %7 %8 %9
rem SEEKFORD – added code for build. I left in above for guys that need params in this blog post.
@cd /d “%~dp0”
set msbuilddir=C:\program Files (x86)\MSBuild\12.0\Bin
“%msbuilddir%\msbuild” “%CD%\SSI.Build” /t:Build /p:Configuration=Debug;ReferencePath=%CD%\..\bin
goto :eof


This is a modified version that I got from here (thanks to Alois Mahdal) that adds in how to build using msbuild.

Happy Coding! or emmm.. Happy Building!!

LogMeIn Can’t install DPMS enabled monitor driver – Fix

I was using LogMeIn and I disconnected one of my monitors when we moved to a new office. Just haven’t hooked it up yet. I also installed the new NVIDIA drivers, so haven’t figured out the root cause of the DPMS error yet.

Anyway, I  couldn’t blank my screen when I logged in and the LogMeIn DPMS driver installation failed every time.

It turns out the fix was pretty simple. LogMeIn by the way is no help, which is why I am posting this here.

Right click My Computer -> Manage.

Go to Device Manager.

Go to Monitors.

Uninstall each monitor. Right click, hit uninstall.

After you removed EVERY monitor.

Click the computer name at top, Right click and hit Scan for Changes.

Now. Log out and back in. Honestly, you can hit the Blank Screen toolbar button in LogMeIn and it "should" prompt to install the DPMS drivers. If not, log out and remote back in.



Windows Live Mesh Remote Connection no longer works

Well, I noticed my Live Mesh stopped working for remote connections. Did the software say why? Of course not.

I found this blurb from the jack a$$e$ at Microsoft who just silently killed the whole service. Could you they have sent us an email, notification, something?

"Windows Live Mesh was retired on February 13, 2013, and remote desktop and peer-to-peer syncing have stopped working. If you still have files in your Mesh online storage (called “Mesh synced storage” or “SkyDrive synced storage”) make sure you have copies of them on your computer. On August 13, 2013, all files in Mesh online storage will be permanently deleted."



Time to look for an alternative then.