Organize media files using Sitecore PowerShell
![Image](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjLrADLYUrYpbb6HSrwbulGLXlbn89c0x66psTSnNFn1-_HYXRi__fAkPRKFuvGcwBldCzdBzXM9_RavUaj9PBdCHvdroKBOr0PoWxwYO7GTvSrrk2BuPP9wfPePASmvcg8-zYjs7fHb89s/s16000/Sitecore+Hero.png)
Sometimes you work on project that contains big modules like "News & Media" and it contains many Media Files, organizing Items easy using Buckets, but what about the Media files?! In this Blog Post I will provide you with a script that help you to generate media folders from 0-9 & a-z i.e. Dependencies: Sitecore powerShell The Script: The below script will help you generate Alpha Numeric Folders and move the files under those folders $alphaNumeric=@() 65..90|foreach-object{$alphaNumeric+=[char]$_} # Add the characters A-Z to the Array 48..57|foreach-object{$alphaNumeric+=[char]$_} # Add the characters 0-9 to the Array # The folder in which you want to organize the media $root = "master:/sitecore/media library/{your path}" # Generate folders based on the alpha numeric array foreach ($item in $alphaNumeric) { # Skip if the folder already ...