Get-SCLibraryServer

Gets VMM library server objects.

Syntax

Get-SCLibraryServer
   [-VMMServer <ServerConnection>]
   [[-ComputerName] <String>]
   [-ID <Guid>]
   [<CommonParameters>]

Description

The Get-SCLibraryServer cmdlet gets one or more library server objects from the Virtual Machine Manager (VMM) library.

For more information about library servers, type Get-Help Add-LibraryServer -Detailed.

Examples

Example 1: Get all library servers

PS C:\> Get-SCLibraryServer -VMMServer "VMMServer01.Contoso.com"

This command gets all library server objects on VMMServer01 and displays information about these library servers to the user.

Note: The name of a library server is the same as its computer name.

Example 2: Get a specific library server

PS C:\> Get-SCLibraryServer -VMMServer "VMMServer01.Contoso.com" -ComputerName "LibraryServer01.Contoso.com"

This command gets the library object named LibraryServer01 on VMMServer01 and displays information about this library server to the user.

Example 3: Get all library servers that match specified criteria

PS C:\> $LibServers = Get-SCLibraryServer -VMMServer "VMMServer01.Contoso.com" | where { $_.Name -match "LibraryServer" }

This command gets all library server objects on VMMServer01 whose name includes the string "LibraryServer" (such as LibraryServer01 and LIbraryServer02) and stores these library server objects in the $LibServers variable.

Parameters

-ComputerName

Specifies the name of a computer that VMM can uniquely identify on your network. The acceptable values for this parameter are:

  • FQDN
  • IPv4 or IPv6 address
  • NetBIOS name
Type:String
Position:0
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-ID

Specifies the numerical identifier as a globally unique identifier, or GUID, for a specific object.

Type:Guid
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-VMMServer

Specifies a VMM server object.

Type:ServerConnection
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

Outputs

LibraryServer

This cmdlet returns a LibraryServer object.