These scripts are provided as examples and are freely available for modifications and use. Many of these scripts have been incorprated into the Pure PowerShell Toolkit.
Most of these scripts require the Pure Storage Powerhell SDK v1 or v2.
Updated 04-01-2022
- New-FlashArrayExcelReport.ps1 -- Create an Excel workbook that contains FlashArray Information for each array specified in a file.
- New-PfaRestSession.ps1 -- REST wrapper script created by Cody Hosterman for operations that are in the FlashArray REST, but not in the Pure Storage PowerShell SDK yet, this function provides a connection for Invoke-RestMethod to use.
- Remove-PfaRestSession.ps1 -- REST wrapper script written by Cody Hosterman that terminates a REST session created by New-PfaRestSession.ps1.
- Get-WindowsDiagnosticinfo.ps1 -- Script to collect diagnostic and log information from the Windows OS.
- Set-IscsiTcpSettings.ps1 -- Script to disable Nagle (TcpNoDelay) and TcpAckFrequency on a per adapter basis. (This script is now included in the PowerShell Toolkit module)
- Get-PfaRASession.ps1 -- Blog post: Checking for Active Remote Assist Session
- Get-PfaConnections.ps1 -- Blog post: What Volume is Connected to What Host?
- Get-PfaCapacitySummary.ps1 -- A basic script that surveys PFA fleet and outputs aggregated capacity summary.
- New-TestMailboxSetup.ps1
- New-FlashStackExchangeSetup.ps1
- Show-VolumeSnapshotRelationship.ps1 -- Blog post: Correlate a Volume to Source Snapshot
- Get-ADMembers.ps1 -- Blog post: Retrieving Members of Directory Service Configuration
- Get-DisconnectedVolumes.ps1 -- Blog post: Find All Disconnected Volumes
- Get-GitHubRelDownloads.ps1 -- Blog post: Get GitHub Download Release Metrics
- Show-HierarchyVisualization.ps1 -- Blog post: Create a Hierarchy Tree of Hosts, Volumes & Snapshots
- Disable-DefragScheduledTasks.ps1 -- Blog post: Best Practice: Disable Disk Fragmentation Scheduled Task
- PRTG_PureFA-HW.ps1 -- Simple PRTG custom sensor to monitor Pure Storage FlashArray hardware components
- PRTG_PureFA-Perf.ps1 -- Simple PRTG custom example to monitor Pure Storage FlashArray performance.
- PRTG_PureFA-Volume.ps1 -- Simple PRTG custom sensor to monitor Pure Storage FlashArray volumes
- The scripts intended for FlashArrays are only currently compatable with the SDK version 1.x.
- These scripts require PowerShell 3.0 or higher.
- These scripts require an operating system that supports the TLS 1.1/1.2 protocols.
This repository contains some sample scripts that were orignally posted to https://purepowershellguy.com.