Connecting to StorSimple 8k using Powershell

StorSimple 8k series Cloud Integrated Storage Arrays are typically managed from Azure StorSimple Manager. However, in some cases we may need to run Powershell commands directly against the array itself as in troubleshooting situations. This script establishes PS connectivity to a StorSimple 8k array. The script can be downloaded from the Microsoft Script Center Repository.



The array runs a version of Windows 2012 R2 server core OS. It’s not domain joined. As a typical 2012 R2 server, it comes with Remote PS enabled. Line 11 adds the array to the local trusted hosts on the management computer. Lines 17-21 receive, encrypt and save the array admin password for future use. Lines 24-26 establish a remote PS session with the array.

SS21We can now run PS commands against the array. This is an alternative way of array management to using a serial interface as used in this post.

For example:

Invoke-Command -Session $StorSimpleSession { Get-Command }  | sort name | FT -a

shows the available commands on the StorSimple 8k series array, which runs a limited version of Powershell.


For more information see Connect remotely to your StorSimple device

11 responses

  1. Pingback: StorSimple 8k Device Software Version 0.2 (17361) | Sam's Corner

  2. Pingback: StorSimple 8k Device Software Version 1.0 (17491) | Sam's Corner

  3. Pingback: StorSimple 8k series – troubleshooting ‘Controller Off’ issue | Sam's Corner

  4. Pingback: StorSimple 8k series software upgrade from version 0.2 to version 1.2 – Process Overview | Sam's Corner

  5. Pingback: StorSimple 8k Device Software Version 1.2 (17584) | Sam's Corner

  6. Hi Sam,

    Do you know if there is a powershell cmd that can increase the volume size of an existing volume?

    We’d like to create 1TB volumes and monitor it and when approaching 80% capacity add an additional 10% not to exceed a 4TB volume, just wondering if this is possible on the 8k series with powershell.

    March 28, 2016 at 2:25 pm

  7. Hi Sam,
    i’have tried your script, but i received the error “Set-Item : Cannot convert ‘System.Object[]’ to the type ‘System.String’ required by the parameter. Specified method is not supported.”.
    I have modified the script in:

    $StorSimpleIP = get-content -path .\IPStorSimple.txt
    foreach ($address in $StorSimpleIP) {set-item wsman:\localhost\Client\TrustedHosts -Value $address.ToString() -Force}

    Thanks 🙂

    March 29, 2016 at 8:22 am

    • $StorSimpleIP variable should contain a single object (IP Address) not an array of IP addresses. Specifically, the IP address of the SrorSimple device Data0 interface.
      For example:
      $StorSimpleIP = ‘’

      March 29, 2016 at 9:17 am

      • It is, in tests I used only one address, but … the error was always present 😦
        it is probably a problem of my pc …

        March 29, 2016 at 9:24 am

  8. Pingback: [Script Powershell] Connettersi sugli StorSimple serie 8000 - Emanuele Pansecco

  9. Pingback: Powershell script to list StorSimple network interface information including MAC addresses | Sam's Corner

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

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