Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
15 views2 pages

SOP-Disk Space Utilization

This document outlines a script for disk cleanup on Windows Servers, detailing actions for both the C: drive and other drives. It includes scenarios for handling disk space below and above thresholds, with instructions for ticket updates and escalation processes. The script performs various cleanup tasks and captures disk space details to assist in managing server storage effectively.

Uploaded by

amangupta051
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views2 pages

SOP-Disk Space Utilization

This document outlines a script for disk cleanup on Windows Servers, detailing actions for both the C: drive and other drives. It includes scenarios for handling disk space below and above thresholds, with instructions for ticket updates and escalation processes. The script performs various cleanup tasks and captures disk space details to assist in managing server storage effectively.

Uploaded by

amangupta051
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Disk Space Utilization

This document illustrates the working of attached script for disk cleanup on Window Servers. This script
check the current disk space utilization on the server for specific drive letter for which this ticket was
generated and update the ticket with current disk space utilization in a format like (Date & time – Total
logical drive Size, Free space on drive and it’s percentage)

Scenario 1:
If logical drive is C:
 Execute the below script on the server for C: drive cleanup and update the free space status
after the disk cleanup

Scenario 1:
For the C: drive: • Execute the script below on the server for C: drive cleanup and update the free space
status after the disk cleanup.

Script Actions:
 Check for *.iso and *.vhd files on the C: drive and list them with their locations.
 Stop the Windows Update service and delete the content from C:\Windows\
SoftwareDistribution\
 Delete the content from C:\Windows\Temp\
 Delete the content from C:\Windows\prefetch\
 Delete all files and folders in the user's Temp folder: C:\users*\AppData\Local\Temp\
 Delete all files and folders in the user's Temporary Internet Files: C:\users*\AppData\Local\
Microsoft\Windows\Temporary Internet Files\
 Delete IIS Log files older than 60 days (This can be confirmed with the accounts team for the
preferred retention period or file movement functionality).
 Empty the contents of the recycling bin.
Additional functionalities to be confirmed by the accounts team:
 Execute a command to clean up the winsxs folder.
 Delete old Windows events.
Capture the Page file location and size, and update the ticket accordingly.

Scenario 1 - Option 1:
If disk space is below the threshold after executing above steps then close the ticket with below details
in the closure comments
o Comments in the ticket “Disk cleanup has been executed on the C: drive of the server,
current free space after the cleanup is Freespace size and Percentage”
o Drive size before cleanup and after cleanup
o Folder locations from which the cleanup had done

Sensitivity: Internal & Restricted


o

Scenario 1 - Option 2:
If disk space is still the above threshold even after executing above steps then escalate the ticket to
L2/L3 engineers for further troubleshooting, by updating tickets with below details
o Comments in the ticket “Disk cleanup has been executed on the C: drive of the server,
but still the disk usage is above the threshold and requires manual intervention. The
current free space usage is as below.”
o Total Disk size, Free space and free space %
o Drive size before cleanup and after cleanup
o Folder locations from which the cleanup had done
o Any *.iso, *.vhd files found on C: drive
o Page file location and size
o Folders/Subfolders/files consuming more space on the c: drive

Scenario 2:
If logical drive is other than C:

Scenario 2 - Option 1: Escalate the ticket to L2/L3 engineers to take further actions, by updating tickets
with below details
o Capture the disk size details like Total Disk size, Free space and free space %
o Folders/Subfolders/files consuming more space on the respective drive for which ticket
was generated
o Page file size if configured on this drive
o Any *.iso, *.vhd files found on this drive

Scenario 2 - Option 2: Transfer the ticket to respective application owner’s ticket queue, by updating
tickets with below details (for this you should have the details of each drive on the server along with
application owner’s ticket queue details, work flow can be built for this procedure)
o Comments in the Ticket “Disk drive DriveLetter on server servername is above the
threshold Thresholdvalue and requires your intervention, please cleanup the drive data
to bring it below the threshold value. Please refer below details that may help you to
cleanup the disk drive”
o Capture the disk size details like Total Disk size, Free space and free space %
o Folders/Subfolders/files consuming more space on the respective drive for which ticket
was generated
o Page file size if configured on this drive
o Any *.iso, *.vhd files found on this drive

Sensitivity: Internal & Restricted

You might also like