Set-SCLibraryShare

Changes the description property of a VMM library share object.

Description

The Set-SCLibraryShare cmdlet changes the description property of a System Center Virtual Machine Manager (VMM)  library share object. 

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

Parameters

LibraryShare

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

AddDefaultResources

Required? false
Accept Pipeline Input? false
Position? named
Indicates that the default resources for a library share are added.

Description

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

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. 

Examples

1: Change the description of a library share.
PS C:\> $LibShare = Get-SCLibraryShare -VMMServer "VMMServer01.Contoso.com" | where { $_.LibraryServer.Name -eq "LibraryServer01.Contoso.com" -and $_.Name -eq "FileShare01" } 
PS C:\> Set-SCLibraryShare -LibraryShare $LibShare -Description "Library share for Test"
The first command retrieves the library share object named FileShare01 on LibraryServer01 from the VMM library on VMMServer01 and then stores the library share object in the $LibShare variable.

The second command changes the description for FileShare01 to “Library share for Test”.

See Also