Sunday, September 26, 2010

Office 2007 Spell Check Not Working

Even though Office 2010 has since been released I recently upgraded a client's workstation from Microsoft's Office 2003 to Office 2007. The upgrade installed without a hitch, including the service pack 2 update, but after a few days the client noticed the Spell Check feature of Word, Excel, Powerpoint, and even Outlook was not working.
Through a little google'ing I found several articles mentioning a specific Registry entry that was the culprit. These articles and forum posts where saying to delete an entire key from the HKCU registry hive. Interestingly enough, I delete this key and the spell check feature still doesn't work. To make a long story short, I found that the entire key cannot be deleted, but rather only two values within the key. So here is the fix that worked for me:
  • Click "Start" > "Run" > "regedit" > click "OK"
  • Browse to: HKCU\Software\Microsoft\Shared Tools\Proofing Tools\1.0\Override\en-US
  • Delete the "DLL" and "LEX" values pointing to non-existing files
  • Restart any open Office applications

You can also merge the following .REG file, which will also delete the two above mentioned values:

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Shared Tools\Proofing Tools\1.0\Override\en-US]
"DLL"=-
"LEX"=-


I hope this post saves you several hours of troubleshooting this specific issue. Feel free to post any comments.
Justin

Sunday, June 27, 2010

Enable or Disable File and Printer Sharing with snetcfg.exe

For a recent work project I needed to be able to be able to enable File and Printer Sharing on 2000+ machines for a few weeks while some software was deployed then disable File and Printer Sharing once the deployment was complete. I quickly found out that their was no group policy to easily do this and with a little google searching I found snetcfg.exe was the way to do this. Snetcfg.exe can be used to install/uninstall network protocols, services, and clients. Unfortunately, I found it really hard to find any documentation on this executable so I though I'd write up this short little post in hopes it would help someone else out with this delema...

Command I Used To Enable File and Printer Sharing
snetcfg.exe -c s -u MS_Server
snetcfg.exe -c s -i MS_Server
The first line above uninstalls File and Printer Sharing and the second reinstalls it. This ensures that File and Printer Sharing is installed and enabled. After the software was deployed I removed the second line from the start up script and File and Printer Sharing was once again disabled.

SNETCFG Command Line Help:
C:>snetcfg /?
snetcfg [-v] [-l ] -c -i
    where,
    -l provides the location of INF
    -c provides the class of the component to be installed
        p == Protocol, s == Service, c == Client
    -i provides the component ID
    The arguments must be passed in the order shown.
    Examples:
    snetcfg -l c:\oemdir\foo.inf -c p -i foo
    ...installs protocol 'foo' using c:\oemdir\foo.inf
    snetcfg -c s -i MS_Server
    ...installs service 'MS_Server'
OR
snetcfg [-v] -q
    Example:
    snetcfg -q MS_IPX
    ...displays if component 'MS_IPX' is installed
OR
snetcfg [-v] -u
    Example:
    snetcfg -u MS_IPX
    ...uninstalls component 'MS_IPX'
OR
snetcfg [-v] -s
    where,
    -s provides the type of components to show
        a == adapters, n == net components
    Examples:
    snetcfg -s n
    ...shows all installed net components
OR
snetcfg [-v] -b
    Examples:
    snetcfg -b ms_tcpip
    ...shows binding paths containing 'ms_tcpip'
General Notes:
    -v turns on the verbose mode
    -? Displays this help

Hope this helps some people... feel free to comment...
Justin