Notes for Disk Space Cleanup on MS Windows 2008 R2

March 18, 2013
By

Don’t set your Virtual Memory pagefile.sys on C drive.(System Properties\Performance settings\Advanced\change Virtual memory)

Clear temp files (C:\windows\temp and C:\Users\%Username%\AppData\Local\Temp).

Don’t set your temporary Internet files on C drive.(Internet Options\Browsing history settings\move folder)

Move window search service data matabase. If you have started Microsoft Search services, please move Windows.edb file to another drive.

( C:\ProgramData\Microsoft\Search\Data\Applications\Windows )

Microsoft provide the built-in tool – disk cleanup. By defaul it is off. You need to install a feature called “Desktop Experience” to get Disk Cleanup.

More:

disable the error reporting features

( C:\ProgramData\Microsoft\Windows\WER\ReportQueue )

“Compln.exe” can only be used to clean Service Pack, such as (RTM and SP1). In your system Windows server 2008 r2, it don’t contain any service pack. It cannot clean the patches in your system.

Sometimes simple reboot unexpectedly releases gigs of space.

TO MOVE MS SQL TempDB DATABASE FROM C: yo X:
–– this may change location for huge transaction logs

EXAMPLE:

–- Look up for Filenames
USE TempDB
GO
EXEC sp_helpfile
GO

USE master
GO
ALTER DATABASE TempDB MODIFY FILE
(NAME = tempdev, FILENAME = ‘x:\mssql\tempdb.mdf’)
GO
ALTER DATABASE TempDB MODIFY FILE
(NAME = templog, FILENAME = ‘x:\mssql\templog.ldf’)
GO

–- Check if relocated to X:

EXEC sp_helpfile
GO

Restart MSSQL (service) to force using X: with TempDB

sql-server-tempdb-is-full-move-tempdb-from-one-drive-to-another-drive

2 Responses to Notes for Disk Space Cleanup on MS Windows 2008 R2

  1. March 24, 2013 at 9:04 am

    Really Great Page Have Here!!! Very Interesting Subject For A Post Keep Up The Great Work!. Check Out A Free Winnipeg Computer Repair Blog And Tell Me What You Think!

  2. March 24, 2013 at 7:11 pm

    Good Website You Made Here!!! Very Educational Subject For A Website Keep Up The Super Great Works!!!. Check Out My Free Winnipeg Computer Repair Blog Google Blogger Blogspot And Tell Me What You Think!!!!

Leave a Reply

Your email address will not be published. Required fields are marked *