Archive

Archive for the ‘Windows’ Category

Run SysInternals tools direct from the web

January 22nd, 2009 Comments off

SysInternals tools are a fantastic set of free utilities written by Mark Russinovich and Bryce Cogswell.  There are invaluable for system admins and Windows Power Users.
There is now a website that allows you to run most of the SysInternals tools directly, so you don’t have to find the right page, download it and unzip.  You just run it directly from:

http://live.sysinternals.com/<tool>.exe

e.g.

http://live.sysinternals.com/procexp.exe

This works better in Internet Explorer than Firefox, since you can run the tool without saving it first.

Categories: Computers, Windows Tags:

DOS Equivalent of GREP

September 22nd, 2008 Comments off

In Unix you can pipe the output of a command into the GREP command in order to only display the lines that contain a required string.  This is means you don’t have to scroll through pages of output to find the bit you’re interested in.  The DOS equivalent of GREP is FIND:

Searches for a text string in a file or files.

FIND [/V] [/C] [/N] [/I] [/OFF[LINE]] "string" [[drive:][path]filename[ ...]]

/V         Displays all lines NOT containing the specified string.
/C         Displays only the count of lines containing the string.
/N         Displays line numbers with the displayed lines.
/I         Ignores the case of characters when searching for the string.
/OFF[LINE] Do not skip files with offline attribute set.
"string"   Specifies the text string to find.
[drive:][path]filename
Specifies a file or files to search.

If a path is not specified, FIND searches the text typed at the prompt
or piped from another command.

this can be useful with the netstat command:

netstat -ano | find /i ":80"

or when viewing the DNS cache:

ipconfig /displaydns | find /i "google"

Although that isn’t ideal since the output of ipconfig isn’t really formatted to play nicely with the find command.

Reference: http://nzpcmad.blogspot.com/2007/07/dos-grep-equivalent-find-command.html

Categories: Computers, Windows Tags:

Windows XP DNS Cache

August 27th, 2008 Comments off

Windows caches DNS responses to speed up network access, but sometimes this can cause a problem.  Positive responses (i.e. successful lookups) are cached for 24 hours, and negative responses (i.e. failed lookups) for 5 minutes.

If you make changes to DNS and want to test the results straight away, you need to clear the cache with:

ipconfig /flushdns

You can view the current cache with:

ipconfig /displaydns

or

ipconfig /displaydns | more

to see a screen at a time

Categories: Computers, Windows Tags:

Offline Files tips

June 28th, 2007 Comments off

“Incorrect Function” Error

When synchronizing offline files, some files give an error:

“Unable to make ‘Filename.ext’ available offline on \\Server\Share\Folder. Incorrect function.”

Solution found here

  1. Open My Computer
  2. Goto Tools–>Options
  3. Click on the Offline Files tab.
  4. Hold down CTRL+SHIFT and click DELETE FILES. This will completely clear the client cache and re-sync after a reboot.

“Files of this type cannot be made available offline” Error

Error message:

“Warnings occurred while Windows was synchronizing your data. Results: Offline files. Unable to make file name available offline. Files of this type cannot be made available offline.”

To suppress error message for specific file types:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\NetCache\ExclusionErrorSuppressionList]
“*.pst”=dword:00000000
“*.mdb”=dword:00000000
“*.db?”=dword:00000000
“*.ldb”=dword:00000000
“*.mde”=dword:00000000
“*.mdw”=dword:00000000
“*.slm”=dword:00000000

To change the error message display for all types: (from here)
To change this default behavior, use Registry Editor (Regedt32.exe) to locate the following key in the registry:

[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Syncmgr]

Add the following registry value:

Value Name: KeepProgressLevel
Data Type: REG_DWORD
Value: 1 (hexadecimal)

You can add the following values and then quit Registry Editor:

1 – Pause on errors.
2 – Pause on warnings.
3 – Pause on errors and warnings.
4 – Pause and display INFO.
Categories: Computers, Windows Tags:

View CHKDSK log

April 26th, 2007 Comments off

The log for CHKDSK can be found in the Windows Event Log. It’s in the Applications log and the source will be listed as Winlogon.

Categories: Computers, Software, Windows Tags: