Assume that you have a computer that is running Windows Server 2012 or a Windows 8-based computer that has the Remote Server Administration Tools for Windows 8 installed. You run the New-VirtualDiskSnapshot Storage Management cmdlet together with a valid value that is defined for the -TargetStoragePoolName optional parameter. For example, you run the following Storage Management cmdlet on the computer:
PS C:\Windows\system32> New-VirtualDiskSnapshot -FriendlyName Snap_2 -VirtualDiskFriendlyName vol_2 -TargetStoragePoolName $pl_name
In this situation, the cmdlet fails and you receive an error message that resembles the following:New-VirtualDiskSnapshot : The specified storage pool could not be found.
At line:1 char:1
+ New-VirtualDiskSnapshot -FriendlyName Snap_2 -VirtualDiskFriendlyName vol_2 -Tar ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (StorageWMI:ROOT/Microsoft/...SFT_VirtualDisk) [New-VirtualDiskSnapshot], Cim Exception
+ FullyQualifiedErrorId : StorageWMI 48005,New-VirtualDiskSnapshot
At line:1 char:1
+ New-VirtualDiskSnapshot -FriendlyName Snap_2 -VirtualDiskFriendlyName vol_2 -Tar ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (StorageWMI:ROOT/Microsoft/...SFT_VirtualDisk) [New-VirtualDiskSnapshot], Cim Exception
+ FullyQualifiedErrorId : StorageWMI 48005,New-VirtualDiskSnapshot