WebPowerShell Trick $freespace = Get-WmiObject -Class Win32_logicalDisk ? {$_.DriveType -eq '3'} $drive = ($FreeSpace.DeviceID).Split ("=") "Your $drive Free Space Percentage is {0:P2}" -f ($freespace.FreeSpace / $freespace.Size) The above code will do the trick. Explanation: {0:P2} is covered in Text and Regular Expression concepts. WebFeb 4, 2015 · Powershell $freespace = [Math]::Round( ($objItem.FreeSpace / $objItem.Size * 100),0) and Text Write-Output "Free disk size: {0} GB ( {1}%)" -f $displayGB,$freespace and you can divide by gigabytes using a friendlier syntax: Powershell $objItem.Size / 1GB Spice (4) flag Report Was this post helpful? thumb_up thumb_down Little Green Man
Check free disk space on Windows with PowerShell script
WebNov 24, 2024 · If you want to get free disk space for a particular drive like C, you can run the following command in PowerShell. Here you can replace C with other drive letters … WebSep 24, 2012 · In this article I will show you a PowerShell script that you can use to find large files on your disks. Solution To find the files I am using the Get-ChildItem cmdlet. Syntax Get-ChildItem [ [-path] ] [ [-filter] ] [-include ] [-exclude ] [-name] [-recurse] [-force] [CommonParameters] club b london
How to Get a PC Hard Drive Information with Powershell
WebJun 18, 2024 · Need new storage hardware! Windows. Currently I have some backups going to this device, some to another, and then all of it going to the cloud. I would like to consolidate all of the backups to one device, shoot it to the cloud from the new device, and then create a copy on USB periodically... WebTo check disk space in windows from command line please follow the below steps: Open cmd (Command line) Go to the folder where we extracted PSTool Suit – “cd D:\PStool_Example” Run “Psinfo -d \” The command will display the info like the screen below: Script to check disk space Script to check disk space on multiple servers. WebApr 7, 2024 · Here i am introducing easiest way to get the Total and Free disk space -servers/workstations using PS script . ... While I love PowerShell, the "connectivity required" component of this can cause data gaps. ... In my cause I used to save the scrip in drive with a notepad. So that my colleagues can use the script just simply adding the … club blur houston