The Unregister-SCStorageLogicalUnit cmdlet disassociates a logical unit from a host.
For more information about Unregister-SCStorageLogicalUnit, type: "Get-Help Unregister-SCStorageLogicalUnit -online".
Parameters
StorageLogicalUnit
Required?
true
Accept Pipeline Input?
true (ByValue)
Position?
0
Specifies a storage logical unit object.
VMHostCluster
Required?
true
Accept Pipeline Input?
false
Position?
named
Specifies a VMM host cluster object.
JobVariable
Required?
false
Accept Pipeline Input?
false
Position?
named
Specifies that job progress is tracked and stored in the variable named by this parameter.
PROTipID
Required?
false
Accept Pipeline Input?
false
Position?
named
Specifies the ID of the PRO tip that triggered this action. This allows for auditing of PRO tips.
RunAsynchronously
Required?
false
Accept Pipeline Input?
false
Position?
named
Indicates that the job runs asynchronously so that control returns to the command shell immediately.
StorageLogicalUnit
Required?
true
Accept Pipeline Input?
true (ByValue)
Position?
0
Specifies a storage logical unit object.
JobGroup
Required?
true
Accept Pipeline Input?
false
Position?
named
Specifies an identifier for a series of commands that will run as a set just before the final command that includes the same job group identifier runs.
JobVariable
Required?
false
Accept Pipeline Input?
false
Position?
named
Specifies that job progress is tracked and stored in the variable named by this parameter.
PROTipID
Required?
false
Accept Pipeline Input?
false
Position?
named
Specifies the ID of the PRO tip that triggered this action. This allows for auditing of PRO tips.
RunAsynchronously
Required?
false
Accept Pipeline Input?
false
Position?
named
Indicates that the job runs asynchronously so that control returns to the command shell immediately.
StorageLogicalUnit
Required?
true
Accept Pipeline Input?
true (ByValue)
Position?
0
Specifies a storage logical unit object.
JobGroup
Required?
true
Accept Pipeline Input?
false
Position?
named
Specifies an identifier for a series of commands that will run as a set just before the final command that includes the same job group identifier runs.
VMHost
Required?
true
Accept Pipeline Input?
false
Position?
named
Specifies a virtual machine host object. VMM supports Hyper-V hosts, VMware ESX hosts, and Citrix XenServer hosts.
For more information about each type of host, type: "Get-Help Add-SCVMHost -detailed". See the examples for a specific cmdlet to determine how that cmdlet uses this parameter.
JobVariable
Required?
false
Accept Pipeline Input?
false
Position?
named
Specifies that job progress is tracked and stored in the variable named by this parameter.
PROTipID
Required?
false
Accept Pipeline Input?
false
Position?
named
Specifies the ID of the PRO tip that triggered this action. This allows for auditing of PRO tips.
RunAsynchronously
Required?
false
Accept Pipeline Input?
false
Position?
named
Indicates that the job runs asynchronously so that control returns to the command shell immediately.
The first command gets the host object named VMHost01 and stores the object in the $VMHost variable.
The second command gets the storage logical unit object named LUN01 and stores the object in the $LU variable.
The last command unregisters LUN01 from VMHost01.