Category Archives: Microsoft

Everything that MS has branded as their’s.

Getting a list of IIS web sites with the WS3SVC identity number

As per the title, this is for IIS7 and rather than manually trawling through the IIS Manager to find all the site ID numbers so that I can get to the log files, this command exports them to a spreadsheet / text file.

At the command prompt on the Windows Server – noting that you will probably need to run the Command Prompt As Administrator

[bash]

%windir%system32inetsrvappcmd list site > c:sites.xls

[/bash]

Then get the file by copying or whatever to a machine with Excel on it and open it up.

 

 

 

Internet Explorer 8 on XP Adding Google as Default Search Provider

Updated March 2014: http://howden.net.au/thowden/2014/03/internet-explorer-and-google-search-provider-australia/

With the updates to Internet Explorer through version 9 and 10 one of the things that Microsoft has apparently lost is the ability of IE8 users to add Google through the default options.

Searching the web will provide all manner of advice on installing Google as a Search Provider using the Manage Search Providers option which leads to the Manage Add-ons page and a link to Find More Search Providers…  which opens up http://www.iegallery.com/en-au/addons?callback=true&featuretype=2

The link used to provide a number of options including Google as a Search Provider and an option to manually Create Your Own Search Provider, but this is no longer the case. In fact the list of search providers includes 2 options for Bing (why?) and eBay Australia Search option. Now conspiracy theories aside, it is apparent that Microsoft will not actively promote Google but it is pretty damn obvious that they have made it damn near impossible to add Google.

So I have an older computer with XP on it and I am not about to upgrade and I persisted with searching through the 3 year old forums and finally found a direct link to a page.

http://www.iegallery.com/en-US/Addons/Details/813

And for as long as this Microsoft page is active the install of Google as a search provider is resolved.  But finding that page through any of the normal processes just does not work.

Finding large files or folders on a drive

My Toshiba Ultrabook has a 128G SSD drive and it is kinda small. I’ve just gone through the process of some clean up to remove unused apps and archive data files.

In the process I tried a number of free “Large File Finder” type applications and there are two that I really like.

The first is WinDirStat which provides a neat graphical view as well as a file list.

The other is from Extensoft called Free Disk Analyzer.

I’ve prepared two simple screenshots showing each one after I used them on my drive when it was over-crowded. Since then I’ve done a clean up.

I think the visual aid of WinDirStat is helpful, but I am a simple lists type user (changing the default Windows view to Details list is normal, and using Linux ls -la, is my default setting) and I think Free Disk Analyzer is my first go-to tool.

 

Awstats Configuration Files awstats.conf, awstats.model.conf

The default setup for awstats is really aimed at a minimal number of web site or other logs and the ability to setup specific config files for each site is good but seems a little top heavy.

The awstats.conf and awstats.conf.local files provide for the single site type setup. Configure the main .conf settings or alternatively add the specific overrides of the defaults into the awstats.conf.local file and all is good.

Using the awstats.model.conf for multiple web sites and copying it to a site specific file also is a good plan for a nominal number of sites.

But once we get to having 37 sites it is getting a bit out of hand.

So how to improve the process and automate it?

Roughly:

  • Have a standard config file for all the standard settings
  • Have a standard log file format for the specific type of log being stat’d
  • Have a header type config file that is specific to the site or URL being stat’d
  • Combine them all on-the-fly by using the Includes option in the awstats config files

I think the order should be:

awstats looks in /etc/awstats when the updateall process is executed

in the /etc/awstats directory are the header files which look like:

#include main config file from somewhere else (it cannot be in this directory as it would be read as a conf file directly)
#include the required log file format – parsing both apache and windows logs
#have only the site specific instructions in the file so that the file size and chance of overriding config standards is reduced

I’ll experiment with the above and update this with the result.