Forum Discussion

Mark_Konschak's avatar
Mark_Konschak
Copper Contributor
Nov 05, 2020

C drive in windows 10 shows full!

I have cleaned the hard drive, Temp files and hidden files, turned off the protection and I still show the hard drive is full.  Does anyone have any other suggestions short of wiping and reimaging.

3 Replies

  •  

    Hi Mark_Konschak,

     

    You can find folders which use many disk spaces on drive via powershell.

     

    For example:

     

    $targetfolder='C:\'
    $dataColl = @()
    gci -force $targetfolder -ErrorAction SilentlyContinue | ? { $_ -is [io.directoryinfo] } | % {
    $len = 0
    gci -recurse -force $_.fullname -ErrorAction SilentlyContinue | % { $len += $_.length }
    $foldername = $_.fullname
    $foldersize= '{0:N2}' -f ($len / 1Gb)
    $dataObject = New-Object PSObject
    Add-Member -inputObject $dataObject -memberType NoteProperty -name “foldername” -value $foldername
    Add-Member -inputObject $dataObject -memberType NoteProperty -name “foldersizeGb” -value $foldersize
    $dataColl += $dataObject
    }
    $dataColl | Out-GridView -Title “Size of subdirectories”

     

    Reference : http://woshub.com/powershell-get-folder-sizes/

     

  • Hello Mark_Konschak,

     

    If you recently or earlier upgraded to newer version from older version of Windows 10, you might want to remove files in Windows.old folder to gain more space on drive.

     

    Regards.

Resources