Monthly Archives: September 2009

Stop Filling Harddisk Space from System Restore

Dear All

This article shows how to stop the Harddisk space usage of System Restore in Vista

How System Restore works
System Restore is designed to take snapshots, called restore points, of your system state before certain types of operations, such as installing new drivers or installing Windows updates, are initiated. That way if a problem results from those types of operations, you can revert back to the restore point and essentially recover, or restore, your system to the state that it was in before the problem occurred.
These snapshots are taken by the Volume Shadow Copy Service. In addition to taking care of creating the restore points, the Volume Shadow Copy Service also monitors data files for the Previous Versions feature.
Using VSSAdmin
In order to manage the Volume Shadow Copy Service and ultimately System Restore, you’ll use the VSSAdmin command-line tool — there is no GUI tool in Vista for configuring System Restore. In order to run VSSAdmin, you must launch an elevated Command Prompt window.
To begin,
right-click on the Command Prompt shortcut
select the Run as Administrator command
When you encounter the UAC, you will need to respond appropriately.
You can now use the VSSAdmin command-line tool
to investigate and configure System Restore and the Shadow Copy Service.

For example, you can obtain a list of all the restore points currently saved on the system by using the command: vssadmin list shadows
You can see how much disk space is allocated to and used by System Restore and the Shadow Copy Service system by using the command:

c:\> vssadmin list shadowstorage
The investigation
On the Vista system that was running out of disk space, the result of the vssadmin list shadowstorage command is shown in Figure A. As you can see the Maximum Shadow Copy Storage space settings was set to Unbounded, which means that there is no limit to the size it can grow and it was already at 40GB.

Figure A

The Maximum Shadow Copy Storage space setting on the problem system was set to Unbounded.
On another Vista test system, running on an 80GB hard disk, the Maximum Shadow Copy Storage space setting was set to 11GB, as shown in Figure B. This was a much more reasonable value. Why the value on one of my test systems was set to unbounded while the others had specific maximum values, I’m not sure.

Figure B

The Maximum Shadow Copy Storage space setting on another system was set to 11GB.
The solution
You can reset the value of the Maximum Shadow Copy Storage space setting using the command:

vssadmin resize shadowstorage /for= /on= [/maxsize=
e.g.. i will reset the Maximum Shadow Copy Storage space setting to 15GB using the

command:
vssadmin resize shadowstorage /for=c: /on=c: /maxsize=15GB
Once the operation was complete, I restarted the system, and everything has been running normally since

Thanks

Prashant Deshpande

1 Comment

Filed under General, IT Support, Operating System, Server Infrastructure

Folder Redirection in Windows

Dear All

Windows provides the ability to redirect specific user folders to server locations, using a group policy extension called Folder Redirection.

A way that a user’s folders are automatically redirected to a newly created folder for each user. This video Document shows how to redirect to the new folder location

Click to view Demo

Thanks

Prashant Deshpande

Leave a comment

Filed under Active Directory, Server Application

Remotely Monitor Websites using Browser

Dear all

Following is the script which opens website in Internet explorer and collects the output from IE and if any error occurs in IE window it will send SMS and Email containing error caputered in IE window

it takes name of website from a text file and then opens in IE.

Requirement create Folder on c: with name c:\checkme1 keep the contains of zip file in it and schedule the script in task schedular

Click to Download

Thanks

Prashant Deshpande

Leave a comment

Filed under General, IT Support, Server Infrastructure, ServerMonitoring

Recover Deleted data from SQL Transaction Log file

Dear All

Follwoing Video Tutorial shows how to recover deleted data from SQl transanction log

Click to view demo

Thanks

Prashant Deshpande

Leave a comment

Filed under SQL Server

Releasing unused memory in SQL server

Hi All,

As SQL Server does automatic Memory management , what this means is SQL Server will ask for memory from the OS as much as it requires, and will keep it as long as it can. This is intended and a default behavior of SQL Server. The memory component (Buffer Pool) does this. So, when does SQL Server release memory back to the OS? It releases memory back to the OS when any other process will ask for memory from the OS. Despite this automatic memory management, there are 2 commands that can be used to free up memory in SQL Server.
DBCC FREEPROCCACHE :- To flush out execution plans from the procedure cache &
DBCC DROPCLEANBUFFERS :- To flush out data pages from the memory.

Thanks

Prashant Deshpande

Leave a comment

Filed under SQL Server