This is the built-in help made by Microsoft for the command 'Remove-IscsiServerTarget', in PowerShell version 5 - as retrieved from
Windows version 'Microsoft Windows Server 2012 R2 Standard' PowerShell help files on 2016-06-23.
For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.
Deletes the specified iSCSI target.
Remove-IscsiServerTarget [-TargetName] <String> [-ComputerName <String>] [-Credential <PSCredential>] [<CommonParameters>]
Remove-IscsiServerTarget [-ComputerName <String>] [-Credential <PSCredential>] -InputObject <IscsiServerTarget> [<CommonParameters>]
The Remove-IscsiServerTarget cmdlet deletes an iSCSI Target object. An iSCSI initiator cannot access the virtual disk after the target is deleted.
<
Online Version: http://go.microsoft.com/fwlink/?LinkID=294081
ForEach-Object
Get-IscsiServerTarget
New-IscsiServerTarget
Set-IscsiServerTarget
<
EXAMPLE 1
PS C:\>Remove-IscsiServerTarget –Targetname "TargetOne"
This example deletes the target named TargetOne on the local server.
EXAMPLE 2
PS C:\>$all = Get-IscsiServerTarget
PS C:\>ForEach-Object –InputObject ($each in $all) –Process {Remove-IscsiServerTarget -InputObject $each}
The example deletes all of the targets on the local server.