Jul 31 2012
Service or driver failed during system startup
I was checking a bios setting on a windows 2003 server and noticed the parallel port was enabled but it was not being used so I disabled it. Now every time I reboot I get the error At least one service or driver failed during system startup. Use the event viewer to examine the event log for details. Looking in the system event viewer I noticed an error source service control manager event id 7000
Event Type: Error
Event Source: Service Control Manager
Event Category: None
Event ID: 7000
Date: 31/07/2012
Time: 11:38:46 AM
User: N/A
Computer: BS01
Description:
The Parallel port driver service failed to start due to the following error:
The service cannot be started, either because it is disabled or because it has no enabled devices associated with it.
I fixed this error by disabling the the parport.sys driver in the registry as I could not see it in device manager.
1. Open the registry editor Start -> Run -> regedit -> ok and find:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\parport
2. Right click on Start and select modify and change the value to 4 disabled.
Restart the computer and check the event log
Aug 1 2012
Delete files older than 7 days
Here is a small visual basic script that will delete all files in a folder older than 7 days with a specific file extension. I use it to clean out old spam that’s been archived on our exchange 2003 mail server by the IMF (intelligent message filter). I use task scheduler on the server to run the task once a day.
I have added a few options that are commented out. In vb script this is done with a apostrophe ‘ so just remove to make it active.
1. number of days (7 in this example)
2. by creation date
3. by last modified date
4. by file extension (txt in this example)
Here is the vb script
Credits mostly to Hey, Scripting Guy! he is a legend
http://blogs.technet.com/b/heyscriptingguy/archive/2007/11/13/hey-scripting-guy-how-can-i-remove-old-files-from-all-the-folders-that-share-a-folder-name.aspx
By sysadmin • IT, Scripting • 0