Windows IT Pro is the authoritative and independent resource for windows nt, windows 2000, windows 2003, windows xp. Features a collection of resources and magazines for windows IT professionals.
  
  
  Advanced Search 


February 1997

Reader to Reader - February 1997

RSS
Subscribe to Windows IT Pro | See More Windows NT 4.0 Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!

Download the Code Here

[Editor's Note: Share your NT discoveries, comments, problems, and solutions and reach out to other Windows NT Magazine readers (including Microsoft). Email your contributions (under 400 words) to Karen Forster at karen@winntmag.com. Please include your phone number. We will edit submissions for style, grammar, and length. If we print your letter, you'll receive $100.]

In "Tricks and Traps" on page 183 of your October issue, a reader asked about a problem with a 3Com card. I encountered the same problem, but the solution was in the BIOS.

Here's how I fixed it. In an Award BIOS, go to PCI and Onboard I/O Setup. Disable pnp bios auto config, first IRQ 9, second IRQ 11, third IRQ 10, fourth IRQ 12. This solution fixed the problem of no soft reset and let me keep the bus mastering.


Automated Clean-Up
Recently, I have added more than 1400 users to my network. This number is not a lot for a large network, but most of these accounts are mobile: The users don't sit at the same workstation all the time. Under Windows NT Workstation 4.0, I store the roaming user profiles on the server as a file and several directories that migrate down to the local workstation when the user logs on. The user profiles contain from 1.2MB to 4MB of data. When you're dealing with multiple users, over time, this data can affect space on the drives. Also, the systems suffer from memory leaks that only a reboot can cure.

Because I have been plagued by such problems, I created a simple Perl script (available for download at http://www.winntmag.com) to locate systems (which I list in a text file called syslist.txt), reboot them, delete profiles from the local directory, and clean up the temp directory. To use this script, you need Perl 5.0 for Windows NT, shutdown.exe from the Microsoft Windows NT Resource Kit for NT 3.51, cacls.exe to set file rights, and full understanding of the AT command.

Follow these steps when setting up this utility:

1. Install Perl 5.0 for NT.

2. Create a directory, adminlog, for the log file off the root drive of the managing system.

3. Create a command file if you want to use the AT command scheduler to automate the script. Make sure you put this file in the \winnt\system32 directory. (AT has a hard time finding things anywhere else.) The contents of the command file are as follows:

cd\

echo * cleaning system

clean.pl

4. Create a syslist.txt file with the machine names of systems you want to clean up. Make sure the last name has an additional space because Perl's CHOP command deletes the last character from the line. Also, place this file into the root. Example:

pc130-01

nickstuff

webrunner

jackie

5. Place the contents of the script in a file called clean.pl.

6. Use Explorer, View, Options, File Types to associate .PL extensions with perl.exe.

7. Enter the following command at a command prompt:

AT 02:00am /every:m,t,w,th,f,s,su clean

This command will run the clean.bat or clean.cmd every night at 2:00 am. Every morning, you will find a log file labeled with the day of the year and the year; for example, 343_96.log. I hope this script helps you as much as it has helped me.

   Previous  [1]  2  3  Next 


Top Viewed ArticlesView all articles
CES 2009: Ballmer Announces Windows 7, Windows Live, Live Search Milestones

During his first-ever Consumer Electronics Show (CES) 2009 keynote address last night in Las Vegas, Microsoft CEO Steve Ballmer announced the pending public availability of a feature-complete Windows 7, the final version of Windows Live Essentials, and ...

Command Prompt Tricks

One reader shares his tip for setting up the command prompt to reflect a remote path. ...

Where is Microsoft NetMeeting in Windows XP?

...


Windows OSs Whitepapers Why SaaS is the Right Solution for Log Management

Related Events Virtualization Forum: Optimizing Storage, Networks, Desktops, and Security

Cloud Computing Forum: Integrating Software, Server and Storage as a Service into Your Enterprise IT Delivery Model

Virtualization Forum: Optimizing Storage, Networks, Desktops, and Security

Check out our list of Free Email Newsletters!

Windows OSs eBooks Understanding and Leveraging Code Signing Technologies

A Guide to Windows Certification and Public Keys

SQL Server Administration for Oracle DBAs

Related Windows OSs Resources Become a VIP member of the Windows IT Pro community!
Get it all with the VIP CD and VIP access. A $500+ value for only $279!

Subscribe to Windows IT Pro!
Solve your toughest technical problems with our experts and access 10,000 + articles online. 30% off

Monthly Online Pass - Only $5.95!
Get instant access to 10,000+ articles from Windows IT Pro Magazine!

TechNet Virtual Labs
Evaluate and test Microsoft's newest products.


Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro Windows Dev Pro IT Job Hound ITTV
IT Library Technology Resource Directory Connected Home Windows Excavator Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 Copyright © 2009 Penton Media, Inc., All rights reserved. Terms and Use | Privacy Statement | Reprints and Licensing