The Next Home of Chris Chapman's Free Thoughts on Agile, .NET, SharePoint, what-have-you, whatnot. 
Page 1 of 2 in the windows category Next Page
# Tuesday, October 09, 2007

While I am in the midst of moving over my old posts from my old site (which I am cobbling together from RSS archives - the "brain trust" at my host still have yet to even manage to undo the damage done last week...) I thought I'd pass along a little tidbit that I've stumbled across to resolve my own issues with IE 7 crashing:  Uninstall the Silverlight Browser Extensions.

Silverlight is MSFT's stab at doing Flash in the browser, and as it turns out contributed to chronic IE 7 crashes for me where the browser would just arbitrarily close itself off without warning - often when I had two or more tabs open.

After enduring this for several months, I uninstalled Silverlight and haven't had an unexplained crash since.  Give it a shot - it might help if you're going 'round the bend with IE crashes.

Tuesday, October 09, 2007 9:41:00 AM (Eastern Daylight Time, UTC-04:00)  #    Comments [0] -
ie | windows

# Wednesday, August 30, 2006
Update:  Check out the MS TechNet docs for more netsh commands and how-tos here.

While listening to an archived Hanselminutes podcast about Scott's Top-10 Windows Utilities, I was intrigued to hear him mention netsh, the command-line util for setting your network interface properties.  As he points out, it's true that not many folks know the power of netsh to control your IP, DNS, routing tables and more.

I've been using netsh myself for some time to get around a minor XP annoyance:  Switching WiFi networks.  I assign an IP to my laptop when I am connected to my home router, but at the office I connect via DHCP.  Ordinarily, this switching would involve opening up the properties for my connection and changing the IP and DNS configurations according to the network I was on.  This is so onerous, that there are even utilities out there (that people are charging $$$ for) to make this more seamless.

I'm cheap and I believe in a working hack that saves me a few bucks!

So, I crafted a couple of batch files to run netsh commands that would allow me to switch between my home and office WiFi routers with ease.  Here's the first one for establishing a DHCP connection:

netsh interface ip set address name="Wireless Network Connection" dhcp
netsh interface ip set dns name="Wireless Network Connection" dhcp

I saved this in my root folder under the filename "wireless_dhcp.bat".  Note the address and dns named connections that are used in this batch - this refers to the named connection for the wireless card.  You can confirm the name of your connection by running an “ipconfig /all” and checking the ethernet adapter item for your WiFi NIC.

Next, here is the batch file that I used for my internal network:

netsh interface ip set address name=”Wireless Network Connection” source=static addr=192.168.0.100 mask=255.255.255.0 gateway=192.168.0.1 gwmetric=1

netsh interface ip set dns name=”Wireless Network Connection” source=static addr=206.47.244.102 register=primary

netsh interface ip set dns name=”Wireless Network Connection” source=static addr=206.47.244.135 index=2

This is a little more interesting.  The first command sets up my IP address, mask and gateway -- I use a non-standard config for VPN access.  The next two commands set my DNS servers - the primary and secondary.  It's a little counter-intuitive the way this is set with “index=2”, but this allows for a range of DNS servers to be added and accessed by index.

I saved this batch as “wireless_home.bat” in my root folder.  Now, when I want to switch networks, I just drop down to the command prompt and run the appropriate batch to switch my network settings.

Cool.  But it could be notched up.  This is where another util Scott mentions came in handy:  WinKey.  This bad-boy (which also happens to be out-of-print, so get it from the link fast) lets you configure windows key shortcuts to run commands automagically.  I added two shortcuts for Win-A and Win-B to run my home and DHCP batch scripts respectively.

Total time to do this hack is about 10 minutes and it's zero cost.  With a little creativity and some review of the netsh commands, you could put together some pretty complex on-the-fly changes for your own NIC configs.

Have fun!

Wednesday, August 30, 2006 4:33:33 PM (Eastern Daylight Time, UTC-04:00)  #    Comments [0] -
windows | wifi | networking

# Tuesday, November 22, 2005

I have Notepad2 installed in my /windows folder and I really prefer it over the standard offering since it comes with a whack of useful features (like line numbers, scheme formats, regular expression searches, etc.).  Unfortunately, it isn't obvious nor easy to default IE to use it for “View Source” operations on a web page.

So, here's a quick way of doing this.  Disclaimer:  This involves editing the registry, so be careful, don't hold me responsible, yadda, yadda, yadda.

  1. Open up regedit from the Start..Run box
  2. Navigate to HKLM\Software\Microsoft\Internet Explorer
  3. You should see a key in there called View Source Editor;  if you don't (like me), add it.
  4. Within that key, if it doesn't exist, create another key called Editor Name.
  5. Modify the default value of this key to the fully-qualified-path to your editor of choice.  For me, I used “C:\windows\notepad2.exe“.
  6. Close RegEdt

Changes should take effect immediately.  Enjoy!

Tuesday, November 22, 2005 3:46:33 PM (Eastern Standard Time, UTC-05:00)  #    Comments [0] -
ie | IE7 | windows

# Wednesday, November 09, 2005

Quick reference time again, kids!  Today, we're going to launch control panels for XP from the command line!  Here's an abbreviated list that I've compiled from my system by doing a quick search for files with the .cpl suffix in the C:\WINDOWS\SYSTEM32 folder:

Control Panel Command
Add/Remove Programs appwiz.cpl
Display Properties desk.cpl
Firewall firewall.cpl
Add Hardware hdwwiz.cpl
Internet Properties inetcpl.cpl
Regional and Language Options intl.cpl
Mouse Properties main.cpl
Audio mmsys.cpl
Network Connections ncpa.cpl
Wireless Network Setup netsetup.cpl
User Accounts nusrmgr.cpl
Power Options powercfg.cpl
System Properties sysdm.cpl
Time/Date timedate.cpl
Windows Security Centre wscui.cpl
Automatic Updates wuaucpl.cpl

I find the command  names amusing -- some look or sound exactly like you think they should.  “sysdm.cpl” was an inspired choice in this regard... ;)

Wednesday, November 09, 2005 3:44:11 PM (Eastern Standard Time, UTC-05:00)  #    Comments [0] -
windows

# Wednesday, February 23, 2005

One of the architects at my firm recently sent around an email describing this handy tip for viewing the .NET assemby cache as a standard Windows folder instead of the usual “user friendly” view:

  1. Open up regedit
  2. Navigate to the following key:  HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Fusion\DisableCacheViewer;  if it doesn't exist, create it as a DWORD
  3. Set the value to 1
  4. Refresh system

And voila!  See the GAC in its raw splendour, sans the cache viewer goodness.  Thanks to Goncalo for pointing this one out!

Wednesday, February 23, 2005 8:17:43 AM (Eastern Standard Time, UTC-05:00)  #    Comments [0] -
.net | windows

About Me
I am a Toronto-based software consultant specializing in SharePoint, .NET technologies and agile/iterative/lean software project management practices. Currently, I am employed by Microsoft Consulting Services (MCS) Canada as an Application Development and Information Worker Consultant, focusing on delivering guidance and subject matter expertise to enterprise customers who have or are in the process of deploying Microsoft technologies.

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

© Copyright 2010
Chris R. Chapman
Sign In
Archive
<March 2010>
SunMonTueWedThuFriSat
28123456
78910111213
14151617181920
21222324252627
28293031123
45678910
Statistics
Total Posts: 194
This Year: 2
This Month: 0
This Week: 0
Comments: 109
All Content © 2010, Chris R. Chapman
DasBlog theme 'Business' created by Christoph De Baene (delarou)