Browsing Category



PowerShell One-Liner: SC Series storage class and RAID level allocations

With the PowerShell SDK for Dell EMC SC Series arrays, you can easily retrieve volume information including allocated, free, and used space.  But what if you’re looking for RAID allocations on the entire array?  Like how much RAID10, RAID5 or RAID6 is allocated across all of your tiers?  That’s easy too:

Get-DellScStorageTypeClass -ConnectionName <connectionName> | foreach { Get-DellScStorageTypeClassStorageUsage $_.InstanceId -ConnectionName <connectionName> } | Select AllocatedSpace,FreeSpace,UsedSpace,InstanceName | ft read more...


PowerShell: Dynamic generation of an iCal/vCalendar (ICS) format file

Generating your own custom calendar or event invites in the iCal (vCalendar) format is pretty easy, once you’ve read the 140+ page spec.

Actually, it’s a pretty complex but flexible way to build schedule items.  Just think about the possibly combinations that exist when you create a new meeting request or appointment in Outlook or your preferred calendar application.  You get recurrences, descriptions, summaries, invitees, location, start time, end time, all-day…. and the list goes on and on.

For this example, we’ll keep it simple and walk through building a function for an event with a yearly recurrence; something like a birthday or an anniversary.

The first part of this function is going to put together some of variables for building out the ICS file.  In this case, the function is going to ask for input for all the fields.  To truly automate, you’ll want to suck this information in from a file or another datasource since you’ll want to minimize the user intervention.

function CreateNewEvent { # Custom date formats that we want to use $longDateFormat = "yyyyMMddTHHmmssZ" $dateFormat = "yyyyMMdd" # Prompt the user for the start date in a specific format $startDate = Read-Host -Prompt 'Enter the start date of the event in the format "yyyymmdd"' # Give the event a name specified by the user $eventSubject = Read-Host -Prompt 'Enter the event subject' # This field is optional, but let's ask for the details (description) $eventDesc = Read-Host -Prompt 'Enter the event description summary (optional)' # Provide location information (also optional) $eventLocation = Read-Host -Prompt 'Enter the event location (optional)' read more...


Dell Storage Volume Cleanup with PowerShell

If you’re new to PowerShell with Dell Storage, be sure to take a look at this post.  Depending upon the size of system that your managing, over the course of time, you might have experienced some challenges in managing disk resources, especially if you’re using an array in a lab-type environment.

Here’s an easy way to inventory volume objects on your SC Series array which are not currently mapped, and also find out how much actual space they’re consuming.


PowerShell Scripting Options for Dell Storage

Back in 2008, Compellent released their first iteration of the PowerShell Command Set.  They were the first storage vendor on the scene to provide PowerShell automation capabilities with the Series 40 array.

Fast forward a bunch of years.  The PowerShell Command Set has grown from 50 cmdlets to over 100, and added the capability to work with more advanced features like replication and Live Volume.

Do Your Exchange Online Admin Tasks with PowerShell

There are some things in Exchange that you just need to use PowerShell for.  If you use Exchange Online or Office 365, the web portal exposes a lot of the admin functionality that you might need, but there are certain actions that require PowerShell.

Accessing the Exchange PowerShell cmdlets on a local server is one thing, but accessing those cmdlets in a hosted environment can be a little trickier.  After I had to type these a half-dozen times, my brain wasn’t getting it quite yet, so I build a little script that covers what you need to need to establish a connection to the remote Exchange environment. read more...