powershellscripts.com

Tutorials  PowerShell Cmdlet Help for Get-Media



NAME
Get-Media

SYNOPSIS
Retrieves cloud medias.

SYNTAX
Get-Media [[-Name] ] [-Catalog ] [-Server ] [-Owner ] [ >]

Get-Media -Id [-Server ] []


DESCRIPTION
Retrieves cloud medias. You can filter the returned media by name, Id, catalog, and user.


PARAMETERS
-Name
Specify the names of the media devices you want to retrieve.

Required? false
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? true

-Catalog
Specify the catalogs from which you want to retrieve media devices.

Required? false
Position? named
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? true

-Server
Specify the cloud servers on which you want to run the cmdlet. If no value is given to this parameter, the comm
and runs on the default servers. For more information about default servers, see the description of Connect-CIS
erver.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? true

-Owner
Specify the owners of the cloud media you want to retrieve.

Required? false
Position? named
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? true

-Id
Specify the Ids of the media devices you want to retrieve.

Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false


This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".

INPUTS



OUTPUTS
Media


NOTES




-------------- Example 1 --------------

C:\PS>Get-Media -ID $cloudMediaId


Retrieves the cloud media devices with the provided IDs.





-------------- Example 2 --------------

C:\PS>Get-Media -Name windows7*


Retrieves the cloud media devices with the provided names.





-------------- Example 3 --------------

C:\PS>Get-Catalog -Name Catalog1 | Get-Media


Retrieves media from the cloud catalog named Catalog1.






RELATED LINKS
Online version: http://www.vmware.com/support/developer/PowerCLI/PowerCLI501/html/Get-Media.html