PowerShell Logo

90 results found for the Storage Category in about 0.239 seconds
A process which adds rights to a Archive location


Add DIR Capabilities to the Get-ChildItem Cmdlet


Apply Quota based on AD Group
Apply a quota template based on AD group membership on a FSRM server.

Check a location for a specific ACL
Check a file location for acl's containing a group name.Just log if an acl is present for the group I'm searching for. You could easily add code to the ACL not found section but I wanted to keep it basic to help others follow.Just update $DirectoryList for the location and $Group

Cleaning the temp folder

Close Open Files with Windows Powershell
Leverage HANDLE.EXE from Sysinternals to AUTOMATICALLY search and close files in Windows. Supports Piping

Compare Directories of Files
Take specific file types in two directories and compare their contents

Convert byte counts to Bytes/KB/MG/GB/TB with selectable precision
Automatically formats a byte count as Bytes, KB, MB, GB or TB, with selectable decimal precision.

Copy a File Using Windows PowerShell


Crawl directory structure looking for blocked or changed inheritance
Crawls a directory structure looking for blocked or changed permission inheritance or missing direcory permissions.

Create a Folder Using Windows PowerShell.


Create a Share and Set Permissions
Add a new share using PowerShell and WMI.  Also initially sets the share security.  The default is to set the share to "Read" and to the current user.This code was migrated from PowerShell V1 version as an Advanced Function/Script.  It supports -verbose and -debug as well as help

Create folders from a csv file
This is a basic script to create folders from a csv file. It reads teh contents of a file into an array and then does a for each to create the follders. I plan to add set-acl to the script later so I can set permissions.

Delete All Files in a Several Directorys Older than a Specified Number of Days
Delete all files in several directorys that you don't need to keep after a specified number of days. Using PowerShell.

Delete All the Subfolders of a Folder
Windows PowerShell script that deletes all the subfolders in a specified folder.

Allows the ability to remotely or locally disconnect active or inactive file sessions on a system.

Disk Space Report - Reports only disks that are below a threshold - HTML output.
I have created a Powershell script to report on a list of server's disks space.  Unlike most reports out there, this one only reports on those disks that are below the set thresholds.  My previous attempt at this saved the results to a CSV file, attached to an email and sent out

Disk Usage Analyser
This script will simulate Sysinternal's DU.exe.  Disk Usage Analyser will list all directories below the one you specify, and summarize them, giving you the total size, folder count, and the file count for each sub-directory found. You can filter on file type for reports.

Drive Space Warnings Across Network
Script will read from a text file a list of computers which you want to identify the amount of free disk space on various logical volumes then email the report to an address you specify. Only test on XP and Server 2003 but should also work for Vista, 2008, and 7

Export and Import Fileshares
Export and Import File Shares and set Share Permissions

File cleanup/rotation
General purpose file rotation and deletion. Handles multiple cleanup jobs, logs and alerts on run results and errors, and does "whatif" modeling to see what effect a job configuration will have on a directory.

File Replication Validation Utility
A handy validation tool for checking the health of your file replication implementation.

A collection of functions to work with files.

Find Large Space Consuming Folders on your System
This script finds large folders on your system, and displays the amount of space being consumed by them.

Folder Size Calculation
The script shows you the TOP 5 folders by size for a folder on your windows server or a UNC share. It can also list you the TOP 5 folders for any specific extensions.

Get Disk Drive Function
This is an advanced powershell function that returns size, free space, percent free space, page file status, and other information about a disk drive.

Get File MetaData
Displays a files meta data. This includes custom properties associated with Word, Excel, ETC. types of files.

Get Share permissions and Share NTFS permissions
Contains two functions that can be used together to view the Share permissions and the NTFS permissions on each share on a server or servers.

Get Share Users
This script, is discussed in detail on the Hey Scripting Guy blog. It is discussed on the Saturday November 26, 2011 article, "Use PowerShell to find out who has permissions to a share." There are three variables that will need to be modified: $cred, the user credentials, $share,

Get Share Users (rev2)
This function returns the user name and sid of people who have permissions to a share. It works locally or remotely. When working remotely, it will accept alternate credentials. This function is an advanced function, and therefore it accepts pipelined input. I use splatting to de

PowerShell script that uses Windows Management Instrumentation (WMI) to retrieve DFSR backlog for replication groups of the targeted server. All of this information is returned in an array custom objects, that can be later processed as needed.



Determine if a path is a file or a folder.

Here is an example function to return free space remaining on a volume with associated details.  Usage Examples:Get-VolumeFreeSpace|ftGet-VolumeFreeSpace|Select ComputerName,Name,MountPoint,FreeSpaceGiB|ftGet-VolumeFreeSpace|Where-Object {!$_.SystemVolume}|Select ComputerName,Nam

hard drive report to html
This script will get a list of computers and output the hard drive information to a pretty html file. You can also just specify the computer(s) on the command line or use a list of computers. Browser will open with the report when completed. drivereport.htm file saved to same lo

Is CHKDSK Dirty Bit Set on a server


Items Rotator
The Function Make-ItemRotate allow to rotate items in specific location that name start like specific prefix. It have a simple versioning system for hold old copies based on the last write date, or simply numbering the next version.

List All the Folders on a Computer
Returns a list of all the folders on a computer. This can take 15 minutes or more to complete, depending on the number of folders on the computer. This script requires both Window

List AutoChk Settings on a Computer
Lists information about how Autochk has been configured on a computer. This script requires both Windows PowerShell and the corresponding version of the .NET Framework. For more

List CD-ROM Properties
Returns information about all the CD-ROM drives installed on a computer. This script requires both Windows PowerShell and the corresponding version of the .NET Framework. For mor

List Disk Partition Properties
Lists the properties of all the disk partitions on a computer. This script requires both Windows PowerShell and the corresponding version of the .NET Framework. For more informat

List Disk Quota Entries
Enumerates disk quota information (including user name, warning and quota limits, and disk space used) for each disk quota entry on a computer. This script requires both Windows P

List Disk Quota Settings
Enumerates the disk quota settings for each drive on a computer. This script requires both Windows PowerShell and the corresponding version of the .NET Framework. For more inform

List Floppy Controller Information
Retrieves information about all the floppy drive controllers found on a computer. This script requires both Windows PowerShell and the corresponding version of the .NET Framework

List Floppy Drive Information
Returns information about all the floppy disk drives installed on a computer. This script requires both Windows PowerShell and the corresponding version of the .NET Framework. Fo

List IDE Controller Information
Retrieves information about all IDE controllers found on a computer. This script requires both Windows PowerShell and the corresponding version of the .NET Framework. For more in

List Logical Disk Drive Properties
Lists the properties for all the logical disk drives on a computer. This script requires both Windows PowerShell and the corresponding version of the .NET Framework. For more inf

List Mapped Network Drives
Retrieves information about mapped network drives. The information returned is similar to that available through the Win32_LogicalDisk class, which retrieves information about the

List Network Shares
Lists all the shared folders on a computer. This script requires both Windows PowerShell and the corresponding version of the .NET Framework. For more information on downloading

List Physical Disk Properties
Retrieves the properties for all the physical disk drives installed on a computer. This script requires both Windows PowerShell and the corresponding version of the .NET Framewor

List SCSI Controller Information
Returns information about all the SCSI controllers found on a computer. This script requires both Windows PowerShell and the corresponding version of the .NET Framework. For more

List Share Permissions
This little script will enumerate all the shares on a computer, and list the share-level permissions for each share.  It uses WMI to retrieve the shares, and to list the permissions.  Thanks to Michal Gadja for his input (via the Library).

List Tape Drive Information
Lists information about all the tape drives installed on a computer. This script requires both Windows PowerShell and the corresponding version of the .NET Framework. For more in

List the Files in a Directory Using Windows PowerShell


List the Five Most-Recently Modified Files in a Folder
Lists the five most-recently modified files in a folder.

List the free space of all drives for several machines
List for several machines all drives with size, free size and the percentage of free space. Optional you can send the result as html or plain text report by smtp e-mail.

List USB Controller Information
Returns information about all the USB controllers found on a computer. This script requires both Windows PowerShell and the corresponding version of the .NET Framework. For more

List USB Hub Information
Returns information about all the USB hubs found on a computer. This script requires both Windows PowerShell and the corresponding version of the .NET Framework. For more informa

Logical Drive Information
You can use this PowerShell script to collect logical disk space information from remote computers.

Mount Point Free Space


A function for moving user folders to an archive or old folder.

This script originally appeared on this blog (http://blogs.technet.com/b/mpsc_dynamic_it/archive/2010/01/30/using-powershell-remoting-iscsicli-exe-to-connect-your-clustered-shared-volumes.aspx).This script will map an iSCSI target to one or more servers based on a spreadsheet tha

Organize Photo Directories
Organize photos and videos using Live Gallery and PowerShell


Powershell 'Map' utility to display drive information
This function, called 'Map', will report on all logical drives on the local or remote computer, in text format. 

Powershell Diskspace GUI Tool.

Powershell Disk Space of your Servers Web HTML (Espace disque WMI)


Powershell DiskSpace HTML Report - Module


Powershell FileSystemWatcher
This script uses the .net FileSystemWatcher class to subscribe to 'create', 'change' and 'delete' events on files or folders in the NTFS filesystem.It can be used to monitor a folder or folders, and can be modified to perform any action upon the triggering of these events. 

Powershell Script to Calculate and compare filehashes for DFSR Pre-Staging


PowerShell: Take the structure of a directory and its files to xml file
This simple script prompts the user to select a folder and browse through to take the files and folders to create an XML with the folder structure and files.Este simple script solicita al usuario que seleccione una carpeta y navega a traves de el para tomar los archivos y carpeta

PS Shared Session Manager
The PSSharedSession module allow you to manage session on File Serwer. It allow to list session to shared folders and open files on shared location. Additionally script allow to basic close session and opened files – this solution is not perfect but it should suffice.

Remotely scan disk


Remove old files from directories [Update]


Remove Specific User's Share Permission
Remove specific user from share folder's share permission list

Remove-EmptyFolders (Powershell function)
This function will remove all folders that are completely empty.  If a folder has no files, but has sub-folders with files, the parent folder will not be deleted.  Only completely empty folder chains will be deleted.

Rename a Set of Folders Based on Information in a Spreadsheet


Repair Profile Store
This is a script to repair my profile store - as both the profile folder and the username match I was a little lazy but hey it worked for me ;o) I have found using takeown and icacls but easyier than using get-acl and set-acl so I external call those programs to take ownership, r

Report file system disk space usage for multiple machines
Report file system disk space usage of one or multiple computers using WMI. Reported data contains machine name, caption, label, capacity, used space and percentage free per volume. Output can be filtered to display only volumes w/ less than x% free space.

Script to check file properties
 This script grabs a list of server names from a text file and pings those machines. It then searches for a file on the computers listed in the input file and writes the machinename, filename, filesize, file/productversion and last write time to a .csv. Log file is auto-generated

Script to fix issues described in KB947222 (PowerShell)
This Windows PowerShell script will modify the file permission, and fix fix issues described in KB947222.

Script to test for the DefragAnalysis or status of volumes
This script will report the Defrag status of servers.

Set Quota based on Group Membership
with this script ou can set a quota based on group membership with FSRM.

Share All Sub-Folders Within a Directory


Show Partition free space on remote server
Shows free space on remote server partitions

showdisk - monitor disk usage on a list of computers
The script gathers information on hard disk usage from a list of servers. Disks with less than 20 % free space are highlighted - yellow for 10-20 % and red for <10 %

Storage I/O Performance Tester
This PoSh script executes SqlIo with all permutations of all given test parameters,collects the measures from the output and returns them as tables.You can use this also as a stress test for you storage.The result contains IO+MB per sec and latence times;also a histogram.

time effecient defrag on multiple servers from a txt file
This scripts defrags multiple volumes on multiple servers in the same time using PS background jobs , servers are imported from a txt file of server names

Use Windows PowerShell to Verify the Existence of a File


Verify Whether or Not a Directory Exists Using Windows PowerShell