Set-SCLibraryServer

Sets the properties of a VMM library server.

Description

The Set-SCLibraryServer cmdlet sets the properties of a System Center Virtual Machine Manager (VMM) library server. You can also use this cmdlet as part of a job group, when used with the Add-LibraryShare cmdlet, to add a set of library shares.

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

Parameters

LibraryServer

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

ClearVMHostGroup

Required? false
Accept Pipeline Input? false
Position? named
Resets the host group association for the library server.

Description

Required? false
Accept Pipeline Input? false
Position? named
States a description for the specified object.

EnableUnencryptedFileTransfer

Required? false
Accept Pipeline Input? false
Position? named
Indicates, when set to True, that network file transfers do not require encryption. Allowing unencrypted network file transfers can improve performance if neither the source host nor the destination host requires encryption. 

Use this parameter to: 
- Enable unencrypted file transfers into, or out of, the library.
- Enable unencrypted file transfers into, out of, or within a host group.

JobGroup

Required? false
Accept Pipeline Input? false
Position? named
Specifies an identifier for a series of commands that will run as a set just before the final command that includes the same job group identifier runs. 

JobVariable

Required? false
Accept Pipeline Input? false
Position? named
Specifies that job progress is tracked and stored in the variable named by this parameter. 

PROTipID

Required? false
Accept Pipeline Input? false
Position? named
Specifies the ID of the PRO tip that triggered this action. This allows for auditing of PRO tips.

RunAsynchronously

Required? false
Accept Pipeline Input? false
Position? named
Indicates that the job runs asynchronously so that control returns to the command shell immediately. 

VMHostGroup

Required? false
Accept Pipeline Input? false
Position? named
Specifies a virtual machine host group object or an array of host group objects.
Requires a VMM library server object, which can be retrieved by using the Get-SCLibraryServer cmdlet.

Examples

1: Change the description of a library server.
PS C:\> $LibServer = Get-SCLibraryServer -VMMServer "VMMServer01.Contoso.com" -ComputerName "LibraryServer01.Contoso.com"
PS C:\> Set-SCLibraryServer -LibraryServer $LibServer -Description "Library server for Production"
The first command gets the library server object named LibraryServer01 on VMMServer01 and stores it in the $LibServer variable.

The second command changes the description for FileServer01 to “Library server for Production.”
2: Update the description for a library server.
PS C:\> $LibServer = Get-SCLibraryServer -VMMServer "VMMServer01.Contoso.com" -ComputerName "LibraryServer01.Contoso.com"
PS C:\> Set-SCLibraryServer -LibraryServer $LibServer -Description "The library server is used by the Seattle office."
The first command gets the library server object named LibraryServer01 on VMMServer01 and stores it in the $LibServer variable.

The second command updates the description for the library server object stored in the $LibServer variable.

See Also