Cannot Connect to Default Administrative Share C$ on Windows 2008 R2

The other day I had the need to browse out to one of my Windows 2008 R2 servers using one of the default administrative shares, such as C$.  

Trying to browse out using a UNC path of \\SERVER1\C$\FOLDER1 and I received an error “Access Denied”.

Trying to map a drive to \\SERVER1\C$ also returned an “Access Denied”.

After a little research, I learned that UAC (User Account Control) is set up to not allow access to the default shares remotely.

There is even a Microsoft KB article on this here.

To fix this issue and enable, simply launch RegEdit and set the following key:

HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\system\ LocalAccountTokenFilterPolicy

0 = build filtered token (Remote UAC enabled)
1 = build elevated token (Remote UAC disabled)

By setting the DWORD entry to 1, you will be able to access the administrative shares since the remote logon token will not be filtered.

LocalACcountTokenFilterPolicy

Hope this helps!

Posted in Troubleshooting, Windows 2008 | Leave a comment

Http Error 503. Service Unavailable

Today I ran into an interesting problem with troubleshooting one of two Windows 2008 R2 load balanced services running IIS 7.

We have one ASP.NET 2.0 web service application running on each of the servers.   I could successfully browse out to the .asmx file without any issue.  However, when trying to pull up a static html file from the default c:\inetpub\wwwroot folder, I would get the error you see below:

503ServiceUnavailable

I checked folder permissions, etc., and did not find anything wrong.   This seemed like a no-brainer configuration – considering it was a simple static html file, right?  C’mon!

Since this was working on the first server, I was almost tempted to clone/reinstall the server until I discovered that the default website was set to use .NET 4.0.   The default AppPool was “ASP.NET v4.0 DefaultAppPool”.

See screen below:

AppPool

When I went to look at all my AppPools, I noticed that the “ASP.NET v4.0 DefaultAppPool” was not running.   I right-clicked and selected “Start” and then re-tested and the static html page came up.

AppPools

The ASP.NET web service that I tested earlier that worked is running under a different AppPool which explains why it worked; since it was already running.

This solution may not resolve every 503 error, but it sure did mine!

Hope this helps.

Posted in IIS, Troubleshooting | Leave a comment

DB2 – SQL1013N The database alias name or database name could not be found SQL0843N

I ran into an issue today when trying to restore a DB2 backup using DB2’s Control Center GUI application that failed during the restore but left the database name in the tree-view. 

Trying to DROP or REMOVE or even access the database would return access errors that the database didn’t exist or wasn’t in the system database.   Yet it was clearly showing in the tree-view.

Rebooting DB2 and whatnot did not help.

The solution for me was to jump to a DB2 CLI window and enter the following (under Windows):

  • db2 get dbm cfg | find “DFTDBPATH”
  • db2 catalog db USERDB1 on DFTDBPATH
  • db2 terminate
  • db2 drop db USERDB1

I then went back to Control Center, refreshed the tree-view, and my database was gone.

Hope this helps!

Posted in DB2, Troubleshooting | Leave a comment

Upgrading FiOS to Asus RT-N66R Dual-Band Wireless-N900 Gigabit Router

I’m a huge FiOS fan!  I’ve been a happy customer ever since fiber became available in my neighborhood.   I’ve blogged about it a few times as well and have upgraded my bandwidth a number of times of the years…

Verizon seems to be pretty slow in updating their router/wireless devices.  Until I upgraded to the Quantum service, the continued to use their crappy Actiontec MI424WR Wireless router; which only supported 802.11 b/g and 100 Megabit LAN ports.   The Quantum upgrade, fortunately, required an upgrade to the Actiontec MI424WR that included 802.11 b/g/n and Gigabit LAN ports.

Since I had a perfectly good NETGEAR WNetgearWNDR3700-N600ireless Router – N600 Dual Band Gigabit (WNDR3700), I disabled the wireless on my MI424WR and simply used my NETGEAR instead.

Unfortunately, as of late, the NETGEAR has been dropping wireless connections for all my iDevices, including TV, Bluray players, and computers.   After resetting the thing a number of times over the past month or two, I decided maybe it is time to upgrade again….

This time, I decided to go with the Asus RT-N66R Dual-Band Wireless-N900 Gigabit Router.

Asus-1Asus-2

The key features of this router are:

  • Network – 80211 a/b/g/n and IPv4 and IPv6
  • Firewall & Access Control – SPI intrusion detection, DoS protection.  Parental control, network service filter, URL filter, and Port filter.
  • VPN Support – IPSec, PPTP, L2TP pass-through and PPTP Server.
  • WAN Connection Type – Automatic IP, Static IP, PPPoE(MPPE supported), PPTP, L2TP, Multicast Proxy support.
  • Ports – 4 x RJ45 for 10/100/1000/Gigabit BaseT for LAN.  USB 2.0 x 2.

You can read the full specs online, but this was everything I cared about or needed.

I really like this router.   One because all my wireless devices now actually stay connected and can see my wireless network and two, because it has extended my wireless network to areas within my house that I previously had a poor signal or no signal at all.   I suspect the external antennas have something to do with this; since the NETGEAR was internal.

One of the challenges to having FiOS though, is that you still need to use their Actiontec  MI424WR router.  This is because you still need the coax connection for MoCA specification for home networking to your DVR and STB.  And I suppose its your cable modem as well.  This means there is a little bit of a trick to just plugging in your own wireless router in place of your MI424WR.

  1. The Actiontec router must still be used as your primary router.  Do not disconnect or remove this from your network.
  2. Log into your Actiontec router (usually http://192.168.1.1) using your admin login.   The default is usually printed on the side/back of the router.   Use an Ethernet cable because the next may disconnect you.
  3. Note your wireless settings and write these down.   Then disable your wireless on your Actiontec router.
  4. Go to you’re your DHCP settings (under Advanced) and setup an IP range, such as 25-254.   I try and keep the lower ranges free for static addresses such as network devices, servers, and printers.
  5. Reboot your PC and verify you can still get to the internet, etc.  If not, troubleshoot your steps to figure out why.
  6. Disconnect your Ethernet cable from the Actiontec router to your PC.

Now, plug in your new Asus router (or any other similar router for that matter) and connect your PC’s Ethernet directly to the LAN port on the new router.  The Asus router will be considered your secondary router.

  1. Log into your Asus router (usually http://192.168.1.1) using your admin login.   The default is usually printed on the side/back of the router.Asus-3
  2. From the Wireless tab, set up your 2.4 and 5GHz wireless SSID and security to similar to what you had setup on the Actiontec.   This will prevent you from having to reconfigure all your wireless devices at home.   In my case, I have HOMEWIFI for a/b and HOMEWIFI-N for g/n, for example.
    Asus-4
  3. From the LAN tab, set your routers IP address to 192.168.1.2, subnet mask to 255.255.255.0, and default gateway to 192.168.1.1.   Connect to DNS Server automatically No.   You must change the router’s IP address because it will conflict with your Actiontec when you bring it back on network.
    Asus-5
  4. From the Administration tab, set your router’s operation mode from “Wireless router mode (default)” to “Access Point (AP) mode”.  This is important, as your want your Asus to be a secondary access point (switch) on your network and not a router.  This means your Actiontec router is still you’re your NAT and DHCP server.
    Asus-6
  5. Connect the Ethernet cable that came with your Asus from a LAN port on the Asus to a LAN port on the Actiontec.   DO NOT PLUG THE CABLE FROM THE WAN PORT ON YOUR ASUS TO THE ACTIONTEC LAN PORT.  YOU CANNOT USE YOUR WAN PORT IN ACCESS POINT MODE.
  6. Reboot or power reset your Asus
  7. Reboot or power reset your Actiontec
  8. When both routers come up, verify from your PC that you can ping and login into the admin page of both routers…. 192.168.1.1 (Actiontec) and 192.168.1.2 (Asus).
  9. Verify you can still get to the internet.

After you get this configuration working to your liking, you may want to go to Asus website and download the latest firmware for your router.   Mine was several revisions behind when I bought it new.

Hope this helps!

Posted in Uncategorized | 20 Comments

Happy Holidays

Merry Christmas and Happy New Year!!!

Posted in Uncategorized | Leave a comment

Accessing Remote DB2 Databases from DB2 Control Center

I have unfortunately been blessed cursed into using DB2 for all our server database task over SQL Server.  If you have spent any time reading this blog, you have seen other posts related to DB2.

For example, some prior posts:

Deleting DB2DIAG.log

Using Powershell to access DB2

Connecting to a DB2 database using C#

The truth of the matter is, DB2 is not going away.  So I’m stuck and using it having to face the fact that we have over 40+ DB2 servers, makes managing these servers a PITA.  Unlike SQL Server, where I can just bring up SQL Management Studio and add a remote server and I’m done, DB2 makes this less than trivial.   I’m not sure why it’s the way that is is; other than trying to support an array of non-Windows systems.

Due to firewall rules, most of our servers cannot be accessed outside of their subnet for security reasons.  Having to log into each server’s console, launch DB2 Control Center, browse out to each database, and perform whatever task needs to be done is very tedious, to say the least.

Fortunately, there is a slightly better way.   This involved either using another DB2 server or installing the DB2 Server Tools to another server and use it as your centralized access point into your other DB2 servers.

In my case, I have a standard Windows 2008 R2 server with the DB2 Server Tools installed.  There is no DB2 server installed already, which requires me to edit the c:\windows\system32\drivers\etc\services file and adding a line so the rest of the wizard, explained later, will work.

As shown below, add a “db2c_DB2” line with port “50000/tcp” defined.

Since I do not have DB2 installed locally, the wizard for some reason still expects to find this entry in the file to know what port to talk to the remote server over.  Lame.

DB2-Remote-DB-02

Next, launch the DB2 “Configuration Assistant” from the DB2COPY –> Set-up Tools Program group.   I’m using DB2 9.5 and I believe earlier versions you could launch this tool directly from DB2 Control Center’s Tools menu.   YMMV.

DB2-Remote-DB-01

Once the program is launched, you can right-click in the grid and select “Add database wizard”.   You will then be prompted through a series of questions –

Select “Manually configure a connection to a database” and then click “Next”:DB2-Remote-DB-03

Then select “TCP/IP” and then click “Next”:DB2-Remote-DB-04

Then enter your FQDN for your “Host name”.   “Service name” must match the name you placed into your “services” file at the start of this tutorial.   It must match.   If it does not match, when you click the “Retrieve” button, you will probably get a Java error.   It took a few times to figure this out before I wised-up.   Click “Retrieve” button and 50000 port should populate automatically.  

Finally click “Next”:Db2-Remote-DB-Step3

Under “Database name” enter the database name on the remote system that you want to access.  Under “Database alias” enter either the same name or a similar name.  Then click “Next”:
DB2-Remote-DB-06

Then select “Register this database for CLI/DOBC”.   Ensure “As system data source” is selected.  Then for “Data source name” enter your database name again.   Select “Next”:DB2-Remote-DB-07

From this screen, for “Operating system” select “Windows” from the dropdown.   Then click “Next”:
DB2-Remote-DB-08

Then for “System name” enter your server’s NETBIOS name.  For host name, ensure the FQDN of the server is shown.   Then click “Next”:DB2-Remote-DB-Step7

Finally, last step, ensure that the “Use authentication value in server’s DBM Configuration” is selected.   Click “Finish”:
DB2-Remote-DB-10

There is a test dialogue that will appear.  You can click the “Test” button and enter the remote server’s credentials to DB2 to verify that your setup works.   If you have additional databases on the same remote server, you can click the “Add” button to quickly add additional databases.  

If you were to return back to DB2 “Control Center” and refresh, you should see each of your remote databases listed under “All Databases”.   Example below:DB2-Remote-DB-11

I haven’t used Control Center enough when accessing the remote databases to determine whether its significantly faster than getting onto the old server the way I have been; as it seems to take Control Center 60+ seconds to connect and list all the database objects.   I’m hoping this is a one-time event and subsequent connections are much faster.    I really do miss using SQL Server!!!

Until next time, hope this helps!

Posted in Uncategorized | Leave a comment

Windows 8 Enterprise Activation–DNS name does not exist

Windows 8 will be officially launched on October 26, 2012.  If you’re an MSDN or TechNet subscriber, you have early access to these bits now.

I recently installed Windows 8 Enterprise edition and noticed that during installation, it never prompted me for an activation key.  I didn’t think much of it until I wanted to customize my settings and learned that Windows needed to be activated.

Under the PC Settings –> Personalize, it says “You need to activate Windows before you can personalize your PC.”   When trying to activate Windows, I would receive a “DNS name does not exist” error with error code 0x8007232B.

Win8-Activation

After a bit of research, I learned that this error is due to me not having a KMS server installed locally on my network.  In order for me to get Windows activated, I needed to change the default Product Key that was automatically used during installation.

In order to do this, you will need to either open an elevated DOS Prompt or use Powershell.   Here I’m using Powershell, but the commands are the same.

  1. Open an elevated command window.  I simply went to Windows 8 search and entered Powershell.  Windows + S key combination.

    Win8-Powershell

  2. Then enter

    slmgr.vbs /ipk YOUR-PRODUCT-KEY

    You will see a dialogue like below:

    Win8-Product-Key

  3. Finally, enter

slmgr.vbs /ato

You will see a dialogue like below showing Windows was activated:

Win8-Product-Activation

The Powershell prompt window should look something like below:

Win8-Powershell-CmdPrompt

If everything worked as expected, your Windows Activation window should show that Windows is activated and give you a date as shown below:

Win8-Activated

Hope this helps!

Posted in Troubleshooting, Windows 8 | 3 Comments

Deleting DB2DIAG.LOG

I have had a number of instances where the DB2DIAG.LOG, located under

“C:\Documents and Settings\All Users\Application Data\IBM\DB2\DB2COPY1\DB2”

would grow up to a 4GB file.   When this happened, it usually caused our .NET DB2 database handler applications to begin throwing errors and hanging because DB2 was having write issues.

Simply trying to delete the log was problematic since many times it was in-use and typically required us to stop a lot of other programs…

A quick and easy way to roll the log and start fresh is to issue a “DB2DIAG –A” command from a DB2 Command Window.

db2-CmdWindow

DB2Diag

As you can see above, my 12GB DB2DIAG.log file was rolled into a db2diag.log_2012-04-18-12.46.01 file.

Schedule this command to run weekly or whatever and you’re golden.   The only other thing to keep in mind is you may want to schedule a delete script to remove any old rolled log files….

Hope this helps!

Posted in DB2, Troubleshooting | 2 Comments

How to determine DB2 Fix Pack

We have over fifty DB2 servers in our environment.    The other day I needed to know if Fix Pack 8 had been applied to a particular server.   Seems easy enough, but not obvious….

In order to see what Fix Pack you’re running, launch from

“All Programs\IBM DB2\<Instance Name>\Command Line Tools\Command Window”

db2-CmdWindow

and issue a “db2level” command from the DOS prompt as shown below:

DB2-FP8

As indicated, I have “Fix Pack 8” loaded.

Hope this helps!

Posted in DB2, Troubleshooting | Leave a comment

Upgrading FiOS Internet from 50/20 to 150/60 Quantum

I’m been a satisfied Verizon FiOS user since 2007; ever since they offered their fiber-optic services to our neighborhood.   I’ve briefly blogged about my experiences in prior posts:

Today is another monumental change upgrade for me.   I upgraded from a whopping 50/20 plan to a blazingly fast 150/60 plan.  

That’s 150 Mbp/sec downstream and 60 Mbp/sec upstream!

Prior 50/20 plan:
FiOS-50-20

Current 150/60 plan:
FiOS-150-60

The upgrade was a bit more eventful that I had hoped.   The last 2-3 upgrades, simply required me to change my internet service plan.  No downtime and no tech visit.  Changing to the new Quantum service was a bit more involved…

  1. When I upgrade my plan.   The home office evidently migrated my service information to a new server.   When this change took affect, it broke my internet a few hours later on a Monday evening.
  2. A tech was scheduled to come out the following day, Tuesday.  However, due to a database error on Verizon’s end, my order never went through.   I found out the following day after waiting 3-4 hours for the tech to show up.
  3. Once the database issue was resolved, the earliest time another tech could come out would be Thursday.  This means I would be down from Monday evening until late Thursday morning.   At this time I found out that there was new hardware involved.
  4. Unfortunately, trying to restore my prior 50/20 plan service, would require cancelling the current upgrade order which may take 24 hours.   At this point, I was in a catch-22 situation.

When the tech arrived, there were a few changes I was not expecting.   Most noteworthy:

  1. The Quantum plan required a new box outside.   Not a big deal.
  2. It also required a new Actiontec MI424WR router.  Fortunately, the new router supports wireless 802.11 b/g/n.   Has two wireless antenna’s.  Also has 4 built-in Gigabit LAN ports.    The only negative I have is that it doesn’t support wireless N.
  3. Requires a new Ethernet cable run from the box outside directly to the Actiontec; in addition to the coax that is now strictly used for phone and television.  This is required for STB channel guides, etc.  This was a bit annoying since another cable needed to be run and another hole in my floor.

After about 1.5 hours of replacing existing router, box outside, and running a new Ethernet, I was up and running.

Using Verizon’s internet speed test reveals my true WAN speed:

VerizonSpeedTest-150-60

If you decide to upgrade, make sure you schedule the upgrade at such a time you can tolerate downtime from the moment you place your order until the time the tech arrives.   This was not explained to me and unfortunately caused me lots of grief as I work from home and needed to quickly find alternative internet access.

Until the next big upgrade – hope this helps!

Posted in Reviews | 5 Comments