Operating System

Filter Results by Piping Output to the Find Command

Piping the output of a command line utility to the find command is a way to easily narrow down the results that are returned. Here’s an example of piping the output of the netstat command to find only the ports that your server is listening on: netstat -an -p TCP | find /I "listening" You can pipe the output multiple times to narrow down your search results: The find command can also be used to search text files:

Removing the LAN Manager Hash security risk

Problem: Windows stores a LAN Manager Hash for backwards compatibility with older operating systems. These Hash values are stored in local SAM databases and Active Directory. They are considered to be a major security risk and should be disabled unless you are running Windows 95, Windows 98, or Macintosh Outlook 2001 Clients. Solution #1: Using group policy to disable the LAN Manager Hash is the recommended solution since you can easily push the settings out to all of your workstations and servers.

Extend the Activation Grace Period of a Windows Operating System

Problem: You are evaluating or testing a Windows Operating System and need to extend the activation grace period to complete your evaluation or testing. Solution: Extend or rearm the evaluation period. This process must be followed before the activation countdown reaches 0: Right click “Command Prompt” and select “Run as administrator”: Navigate to the C:\Windows\System32 folder and execute the following command. cscript slmgr.vbs /rearm Most documentation on this procedure references -rearm which works on Windows Vista and 7 but sometimes generates an error on certain Windows 2008 installations.

32bit App – 64bit OS ODBC Problem

Problem: ODBC data sources that are created with the “ODBC Data Source Administrator” located under “Administrative Tools > Data Sources (ODBC)” do not show up in 32 bit (x86) applications. Also, data sources created in 32 bit applications such as Visual Studio do not show up in the “ODBC Data Source Administrator”. This is due to the default shortcut for the “ODBC Data Source Administrator” being for 64 applications only.

Hyperlink Issues – MS Office

Problem: You receive the error message “This operation has been cancelled due to restrictions in effect on this computer. Please contact your system administrator” when clicking on a hyperlink from any office application after updating Internet Explorer to version 7 or 8. The specific error I received was: Solution: Change the registry value in [HKEY\_CLASSES\_ROOT\htmlfile\shell\open\command] from C:\Program Files\Internet Explorer\IEXPLORE.EXE-nohome to C:\Program Files\Internet Explorer\iexplore.exe -nohome . The update of Internet Explorer apparently changes the executable name in the registry to upper case.