Using Pure Storage PowerShell with Windows Server 2008 R2

I have received a few questions about using the Pure Storage PowerShell Toolkit with Windows Server 2008 R2 since by default it only comes with Windows PowerShell 2.0. The simple answer is yes, with a few installation updates. Here are the steps that need to followed to get the toolkit running on Windows Server 2008 R2.

Step-by-Step

  1. Use an existing (or setup a new) installation of Windows Server 2008 R2 (SP1/SP2). This can be a virtual or physical instance. Be sure you are logged in as Administrator in order to install the software in Step 2 – 4.
  2. Download/install .NET Framework 4.0, http://go.microsoft.com/fwlink/?LinkID=212547. This is required for Windows PowerShell 3.0 (Windows Management Framework 3.0).
  3. Download/install Windows Management Framework 3.0, http://www.microsoft.com/en-us/download/details.aspx?id=34595.
  4. Download/install Pure Storage PowerShell Toolkit 2.8.0.430 2.4.2.311 https://github.com/barkz/PureStoragePowerShellToolkit/blob/master/PureStoragePowerShell_2_8_0_430.msi
  5. After all of the installations (and reboots) open up a Windows PowerShell session with Run as Administrator, or you can open up Windows PowerShell ISE as Administrator.
  6. In the Windows PowerShell session enter the following commands.
    Note: Be sure to change the –FlashArray parameter with your appropriate IP address or DNS name.
Import-Module PureStoragePowerShell

Update-Help PureStoragePowerShell

$T = Get-PfaApiToken -FlashArray 10.21.8.82 -Username pureuser -Password pureuser
$S = Connect-PfaController -FlashArray 10.21.8.82 -API_Token $T.api_token

Get-PfaVolumes -FlashArray 10.21.8.82 -Session $S | Format-Table -AutoSize

Example of the toolkit working on Windows Server 2008 R2.

Thanks,
barkz

Add Comment

Required fields are marked *. Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

This site uses Akismet to reduce spam. Learn how your comment data is processed.