in reply to (code) Cisco errdisable (no password timeout if Win32)

I had a similar script that I was running for awhile, until I realized that cisco has an IOS command that will automatically bring the port back up.

set option errport enable

This keep the ports from staying in error disable mode. I know that command will work on the 6500 line of switches, I haven't had similar problems with my 2900s .