Get-SCDependentLibraryResource

Identifies dependencies between VMM objects. 

Description

The Get-SCDependentLibraryResource cmdlet identifies dependencies between System Center Virtual Machine Manager (VMM) objects. 

You can use the Get-SCDependentLibraryResource cmdlet to identify objects that are dependent on the existence of:

- The specified library object
- Any object on the specified library share
- Any object on the specified library server

For more information about Get-SCDependentLibraryResource, type: "Get-Help Get-SCDependentLibraryResource -online".

Parameters

LibraryResource

Required? true
Accept Pipeline Input? true (ByValue)
Position? 0
Specifies a resource stored in the VMM library.

VMMServer

Required? false
Accept Pipeline Input? true (ByValue)
Position? named
Specifies a VMM server object.

LibraryServer

Required? true
Accept Pipeline Input? true (ByValue)
Position? 0
Specifies a VMM library server object.

VMMServer

Required? false
Accept Pipeline Input? true (ByValue)
Position? named
Specifies a VMM server object.

LibraryShare

Required? true
Accept Pipeline Input? true (ByValue)
Position? 0
Specifies a VMM library share object. 

VMMServer

Required? false
Accept Pipeline Input? true (ByValue)
Position? named
Specifies a VMM server object.

Examples

1: Find all objects that depend on a particular virtual hard disk.
PS C:\> $VHD = Get-SCVirtualHardDisk -VMMServer "VMMServer01.Contoso.com" | where { $_.Name -eq “VHD01”  -and $_.LibraryServer.Name -eq "LibraryServer01.Contoso.com” }
PS C:\> Get-SCDependentLibraryResource -LibraryResource $VHD
The first command gets the hard disk object named VHD01 on LibraryServer01 from the VMM library on VMMServer01 and stores the object in the $VHD variable. This example assumes that only one virtual hard disk named VHD01 exists.

The second command returns all of the library objects that are dependent on VHD01. 

If dependent objects exist, removing this virtual hard disk will modify those dependent objects so that they no longer reference the removed virtual hard disk. Thus, if VHD01 is associated with a specific virtual machine or with a specific template, that virtual machine or template is modified so that it no longer references VHD01 after it is removed.

See Also