Get-SCLibraryServer
Gets VMM library server objects.
Syntax
Default (Default)
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
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | 0 |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-ID
Specifies the numerical identifier as a globally unique identifier, or GUID, for a specific object.
Parameter properties
Type: | Guid |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-VMMServer
Specifies a VMM server object.
Parameter properties
Type: | ServerConnection |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | True |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Outputs
LibraryServer
This cmdlet returns a LibraryServer object.