Set-SCLibraryShare

Changes the description property of a VMM library share object.

Syntax

Set-SCLibraryShare [-LibraryShare] <LibraryShare> [-AddDefaultResources] [-Description <String>]
 [-JobVariable <String>] [-PROTipID <Guid>] [-RunAsynchronously] [-UseAlternateDataStream <Boolean>]
 [<CommonParameters>]

Description

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

Examples

Example 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".

Parameters

-AddDefaultResources

Indicates that the default resources for a library share are added.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Description

Specifies a description for the library share.

Type:String
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-JobVariable

Specifies that job progress is tracked and stored in the variable named by this parameter.

Type:String
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-LibraryShare

Specifies a VMM library share object.

Type:LibraryShare
Required:True
Position:0
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-PROTipID

Specifies the ID of the Performance and Resource Optimization tip (PRO tip) that triggered this action. This parameter lets you audit PRO tips.

Type:Guid
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RunAsynchronously

Indicates that the job runs asynchronously so that control returns to the command shell immediately.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-UseAlternateDataStream

Indicates whether to use AlternateDataStream.

Type:Boolean
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Outputs

LibraryShare

This cmdlet returns a **LibraryShare** object.