Updates the state and metadata of VMM library objects stored in a library share.
Description
The Read-SCLibraryShare cmdlet updates the state and metadata of all System Center Virtual Machine Manager (VMM) library objects stored in the specified library share. This update also finds new library files on the specified library share as well as new child shared folders under the specified library share.
For more information about Read-SCLibraryShare, type: "Get-Help Read-SCLibraryShare -online".
Parameters
LibraryShare
Required?
true
Accept Pipeline Input?
true (ByValue)
Position?
0
Specifies a VMM library share 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.
The first command gets the library share object named AllVHDs on LibraryServer01 from the VMM library on VMMServer01 and then stores the object in the $LibShare variable.
The second command updates the state and metadata information for all library objects in the share stored in $LibShare, and then it adds any new library objects found in the share to the VMM library.
The first command gets the library share objects on LibraryServer01 with the string "vhd" in their names, and then stores the objects in the $LibShares variable.
The second command updates the information for all library shares stored in $LibShares, and then it adds any new library objects found in these shares to the VMM library.