Get-SCLibraryServer

Get-SCLibraryServer

Gets VMM library server objects.

Syntax

Parameter Set: Default
Get-SCLibraryServer [[-ComputerName] <String> ] [-ID <Guid> ] [-VMMServer <ServerConnection> ] [ <CommonParameters>]

Detailed Description

The Get-SCLibraryServer cmdlet gets one or more library server objects from the VMM library.

For more information about library servers, type: "Get-Help Add-LibraryServer -detailed".

Parameters

-ComputerName<String>

Specifies the name of a computer that VMM can uniquely identify on your network. Valid formats are: FQDN, IPv4 or IPv6 address, or NetBIOS name.

NOTE: See the examples for a specific cmdlet to determine how that cmdlet specifies the computer name.

Aliases

none

Required?

false

Position?

1

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-ID<Guid>

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

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-VMMServer<ServerConnection>

Specifies a VMM server object.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByValue)

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

  • LibraryServer

Examples

1: Get all library servers.

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.

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

2: Get a specific library server.

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

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

3: Get all library servers that match specified criteria.

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.

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

Add-SCLibraryServer

Add-SCLibraryShare

Remove-SCLibraryServer

Set-SCLibraryServer