Skip to content

Instantly share code, notes, and snippets.

@tomtorggler
Created March 9, 2016 20:54
Show Gist options
  • Save tomtorggler/2948c5a905f0e1e176a6 to your computer and use it in GitHub Desktop.
Save tomtorggler/2948c5a905f0e1e176a6 to your computer and use it in GitHub Desktop.
# Create Storage Pool
Invoke-Command -ComputerName n01.vdi.local -ScriptBlock {
$params = @{
StorageSubSystemFriendlyName = "Cluste*";
FriendlyName = "s2d-pool";
PhysicalDisks = (Get-PhysicalDisk -StorageSubSystem (Get-StorageSubSystem -FriendlyName cluster*) -CanPool $true)
}
New-StoragePool @params
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment