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 Virtual Machine Manager (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
-- NetBIOS 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 (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
Example 1: Get all library servers
This command gets all library server objects on VMMServer01, and then displays information about these library servers.
The name of a library server is the same as its computer name.
PS C:\> Get-SCLibraryServer -VMMServer "VMMServer01.Contoso.com"
Example 2: Get a specific library server
This command gets the library object named LibraryServer01 on VMMServer01, and then displays information about this library server.
PS C:\> Get-SCLibraryServer -VMMServer "VMMServer01.Contoso.com" -ComputerName "LibraryServer01.Contoso.com"
Example 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 then stores these library server objects in the $LibServers variable.
PS C:\> $LibServers = Get-SCLibraryServer -VMMServer "VMMServer01.Contoso.com" | where { $_.Name -match "LibraryServer" }