Archive for the “Windows 2003” Category

Taken from http://www.eutychus.com/windows_temp_directory_cleanup.htm

Disclaimer: If you do not understand the process below, then do not attempt it without the assistance of a PC professional who can grasp the concept.  Although anyone can make it work correctly without special software, it can cause your system to lock up if done improperly.  This information is offered without warranty or any promises.  While I find it valuable and set it up on virtually every PC I work on, you use it at your own risk.  If you have problems, I will attempt to help, but again I make no claim to be able to correct any mistake you might cause.

Background: Since at least version 3.0, Windows programs have created temporary files which serve no purpose once the programs are finished (exited).  Early versions of Windows could place the files anywhere and they forever took up space on the hard drive.  Later versions (Windows 95 & 98) at least placed them in a specific location, usually the “C:\Windows\Temp\” directory (now called a folder).  If you open the Windows Explorer and locate the “C:\Windows\Temp\” directory you will probably find a few, if not hundreds, of files.  Most of those files can be deleted, except for ones in use.

Microsoft Office programs, like Word, now also create temporary files in the directory where existing files are opened, but those are deleted automatically unless the program crashes.  Temporary files normally end with the file extension “.tmp”, however, they can have other extensions in the TEMP directory.  Occasionally, temporary files have a “~” symbol as a prefix.

Beginning with Windows 95, some temporary files began showing up as “read-only”, “hidden”, or “system” files.  Those files required special actions to delete and, in the case of hidden or system files, may not be visible.  To complicate matters, some programs in Windows 95 & 98 also started creating sub-directories below the TEMP directory – those directories have to be manually deleted (unless you are running Windows NT or later).

While hard drive space is less critical than just a couple of years ago, it bothers me to know that I have wasted space on my hard drive.  Being a PC old-timer who is comfortable working in DOS (The MS-DOS prompt) and with batch files, I use a simple technique that removes all temporary files from my TEMP directory each time I start my PC and before Windows can create new ones that cannot be removed until the next time I start the computer.

Technique for cleaning up the TEMP directory:  Shared with me by Yucheng Song:  (Win 98 and earlier) Locate and start the “Notepad” program found under Programs / Accessories on the Windows Taskbar.  When Notepad has started, select, from the Notepad menu, File / Open.  Locate the beginning folder for the C: drive – after you have selected it you should only see [C:] and an icon for the drive.  from the pull down list for Files of Type, select “All Files *.*”.  Locate and click on the file named “Autoexec.bat”, click the [Open] button.  (alternately, you can select File / Open, type c:\autoexec.bat in the file name box, and press [Enter].)  Move to the very last line, place your cursor after the last character in the line, and press the [Enter] key twice.  Your cursor should now be on a blank line.  Enter the following exactly as shown below – or highlight the contents of the box below, copy it (right mouse click and select Copy or highlight it and while holding down the [Ctrl] key, press the [Insert] key, and paste it to the new blank line. (See note at the bottom of this page)


Select File / Save from the menu.  The line deletes all files in the C:\Windows\Temp directory AND deletes the files and directories below it.  The C:\Windows\Temp directory will remain but without files or directories below it.

All files and subdirectories will now be deleted from the TEMP directory the next time you start your PC.  To verify that it works properly, check the contents of the “C:\Windows\Temp\” directory, restart Windows, and check the directory again.  None of those files or subdirectories present before restarting should be there afterwards.

Windows NT 4/ WIN 2K / WIN XP: The technique for doing this for Windows NT, 2K, and XP is a little different.  With those Operating Systems you also delete any sub-directories under TEMP automatically.

First, find the path to your TEMP directory (it may not be as the example below). Next, create a BAT file, any file name with the extension “.bat” such as clean.bat, using a text editor, like Notepad, with the following two lines (press [Enter] after the second line.


The first command “rd c:\windows\TEMP” =Remove Directory c:\windows\Temp. The /s parameter includes sub directories of c:\temp. The /q is the “quiet mode”, which eliminates the need for you to make a response. The next command (md=Make Directory) recreates the Temp directory.

When the file has been saved, create a link in the StartUp folder (Start / Settings / Taskbar & Start Menu).

That’s it!  Next time you start up the PC the bat file will execute, delete the Temp folder and its sub folders, then, re-create the Temp folder.

Comments No Comments »

Most admin tools in Windows Server 2003 are MMC consoles you can access from the Start menu. But you can also open these console from the command line if you know their .msc filenames. This can be especially useful if you log on to your admin workstation using a limited privilege account and use Runas to perform admin tasks. For reference, here’s a list of admin tools with their associated .msc files. You can print this out and tape it on the wall beside your workstation until you memorize the ones you use most commonly.

AD Domains and Trusts
domain.msc

Active Directory Management
admgmt.msc

AD Sites and Serrvices
dssite.msc

AD Users and COmputers
dsa.msc

ADSI Edit
adsiedit.msc

Authorization manager
azman.msc

Certification Authority Management
certsrv.msc

Certificate Templates
certtmpl.msc

Cluster Administrator
cluadmin.exe

Computer Management
compmgmt.msc

Component Services
comexp.msc

Configure Your Server
cys.exe

Device Manager
devmgmt.msc

DHCP Managment
dhcpmgmt.msc

Disk Defragmenter
dfrg.msc

Disk Manager
diskmgmt.msc

Distributed File System
dfsgui.msc

DNS Managment
dnsmgmt.msc

Event Viewer
eventvwr.msc

Indexing Service Management
ciadv.msc

IP Address Manage
ipaddrmgmt.msc

Licensing Manager
llsmgr.exe

Local Certificates Management
certmgr.msc

Local Group Policy Editor
gpedit.msc

Local Security Settings Manager
secpol.msc

Local Users and Groups Manager
lusrmgr.msc

Network Load balancing
nlbmgr.exe

Performance Montior
perfmon.msc

PKI Viewer
pkiview.msc

Public Key Managment
pkmgmt.msc

QoS Control Management
acssnap.msc

Remote Desktops
tsmmc.msc

Remote Storage Administration
rsadmin.msc

Removable Storage
ntmsmgr.msc

Removalbe Storage Operator Requests
ntmsoprq.msc

Routing and Remote Access Manager
rrasmgmt.msc

Resultant Set of Policy
rsop.msc

Schema management
schmmgmt.msc

Services Management
services.msc

Shared Folders
fsmgmt.msc

SID Security Migration
sidwalk.msc

Telephony Management
tapimgmt.msc

Terminal Server Configuration
tscc.msc

Terminal Server Licensing
licmgr.exe

Terminal Server Manager
tsadmin.exe

UDDI Services Managment
uddi.msc

Windows Mangement Instumentation
wmimgmt.msc

WINS Server manager
winsmgmt.msc

Comments No Comments »

The Messaging queue is a scalable system service developed by Microsoft to enable high volume event processing. GFI MailEssentials uses this service. It is included with every Windows 2000/2003 and XP version, although not always installed by default.

To check whether it is installed or to install it:

1. To check if it is installed, simply go to Control Panel > Add/Remove Programs > Windows Components. The Windows components wizard will appear. Now check if a tick mark is present next to ‘Message Queuing Service’.

Screenshot 90 – The Windows components wizard

2. If there is no check mark selected, you need to install the Message Queuing Service. To do this, select the checkbox and click Next. You will need to have your Windows 2000 CD handy.

Screenshot 91 – Selecting the Message Queuing type

3. You will now be asked to select what type of queue to install. Select ‘independent client’.

Screenshot 92 – Message queue will not access a directory service

4. After you select independent, you will be asked if the Message Queue will be connecting to a directory service. Select ‘Message Queuing Service will not access a directory service’. Select Next. The Message Queuing Service will now be installed.

Comments No Comments »