Skip to content

Instantly share code, notes, and snippets.

View bryankahlig's full-sized avatar

Bryan Kahlig bryankahlig

  • Terrific Bits LLC
  • North Texas
View GitHub Profile
@bryankahlig
bryankahlig / RackspaceCloudFilesInfo.ps1
Last active December 24, 2015 15:09
PowerShell script to get the size and number of files on your Rackspace Cloud Files system. Specifically focused on files in the "ORD" region.
function WriteOutFileStats($count, $byteCount){
Write-Host ([string]::Format("Files = {0:N0}", $count))
$gbCount = $byteCount / 1024 / 1024 / 1024
Write-Host ([string]::Format("Size(GB) = {0:N2}", $gbCount))
}
Write-Host "Rackspace------------------------------------------------------------------------------"
Import-Module PowerClient
Get-AuthToken
$rackspaceUrl = ""