Get the sizes of all top-level subfolders in the destination folder and the number of files in each subfolder (in this example, the PowerShell script displays the size of all user profiles inC:\Users): $targetfolder='C:\Users' $dataColl = @() gci -force $targetfolder -ErrorAction Sil...
Weekend Scripter: The Mission for “True-Up” Data Via Get-WmiObject Doctor Scripto May 27, 2012 Weekend Scripter: Use PowerShell to Manage Your Windows Azure Deployments Doctor Scripto Summary: Guest blogger, Bill Stewart, discusses a Windows PowerShell function to determine folder size. Micr...
This Get-FolderSize script uses a super fast Scripting.FileSystemObject COM object, with an optional fallback to robocopy.exe with the logging only option (no actual copying), to list directories where you do not have access to one or more files or subfolders (then the COM object returns $n...
Description:Get-DirectorySize returns the size of a directory or directories (paths) specificed by a parameter called-Pathand reports the sizes of the first level of folders (i.e. the listing is similar to the common "dir" command, but the size of the folders is shown in the results and...
Can not execute powershell script from shared folder Can PowerShell be used to delete hidden USB/COM Ports? Can PowerShell restore previous versions of files/folders via Volume Shadow Services (VSS)? Can someone explain this - get-aduser displays passwordneverexpires as false ( this mean the ...
Can not execute powershell script from shared folder Can PowerShell be used to delete hidden USB/COM Ports? Can PowerShell restore previous versions of files/folders via Volume Shadow Services (VSS)? Can someone explain this - get-aduser displays passwordneverexpires as false ( this mean the ...
Counting Public Folder SubFoldersThis sample script was written by a brilliant fellow PFE named Chris Schrimsher. Chris gave me...Date: 09/23/2009List Mailbox Sizes for both Exchange 2003 and Exchange 2007This is a script I put together because…well I don't remember what prompted me to ...
(Granted, that’s not how the Get-Process cmdlet displays paged memory size, but that’s because Get-Process has been configured to convert this value to kilobytes. Once we pass data to the Format-Table cmdlet we’re no longer using Get-Process’ default formatting.) Prefer kilobytes to ...
Nothing too fancy here: we simply call the Get-Date cmdlet, enclosing the cmdlet in parentheses to ensure that PowerShell goes out and gets the date before it does anything else. We then grab the value of theDayproperty, and only the Day property, and assign it to the variable ...
Nothing too fancy here: we simply call the Get-Date cmdlet, enclosing the cmdlet in parentheses to ensure that PowerShell goes out and gets the date before it does anything else. We then grab the value of theDayproperty, and only the Day property, and assign it to the variable $a. Tha...