Monday, September 22, 2014

COM and Classic ASP

Quick notes on getting COM and classic ASP to work on IIS 7

First, set "Allow IIS Intrinsic Properties" for the various COM objects that will access session/application objects from GetContext.

Then, set the AppPool's managed pipeline to "Classic" mode in IIS Mgr.

Sunday, April 27, 2014

Useful script(let) #1

A lot of times I want to compress files, like backups, but not glob it all into a single archive.  Rather than do it by hand, a command-line like the following:
@for %f in (*.*) do 7za a "Compressed\%f.7z" "%f" & move /Y "%f" "Delete\%f"
is useful.  Of course, rather than spend the twenty minutes every blue moon re-inventing this, and looking up the command separator symbol for DOS ("&"), etc., I will just post it here, in all it's simplistic glory, and perhaps one day in the future, remember to look it up here again.

This command will go through all files in a directory and create corresponding compressed version in the "compressed" folder and move the uncompressed file to the "delete" folder.  The folders need to exist first, of course.


Tuesday, March 4, 2014

Stop Windows Updates at Shutdown

Invariably, when I need to reboot my machine in a hurry, the system will command that I not turn off the computer as it installs 783 updates.  Especially favorite is how the system gives me absolutely no progress indicator, so I do not know if I should expect to be able to use my computer in the next ten minutes or ten years...

Without further ado, to stop Windows from destroying your life, use the local security policy editor to disable this most abhorrent feature.


  • As an administrator, launch the policy editor (gpedit.msc)
  • Expand User Configuration\Administrative Templates\Windows Components\Windows Update
  • Enable "Do not display 'Install Updates and Shut Down' option in Shut Down Windows dialog box.


Alternatively, copy and past this as a registry ini file and import it:
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\WindowsUpdate\AU]
"NoAUShutdownOption"=dword:00000001