NAME
Get-CMAdvertisement

SYNOPSIS
Returns an advertisement, or all instances of an advertisement.

SYNTAX
Get-CMAdvertisement [[-ComputerName] [<Object>]] [[-AdvertisementID] [<Object>]] [[-Credential] [<Object>]] [<CommonParameters>]


DETAILED DESCRIPTION
Returns an advertisement, or all instances of an advertisement.


PARAMETERS
-ComputerName

Required? false
Position? 0
Default value
Accept pipeline input? false
Accept wildcard characters?

-AdvertisementID
Enter AdvertisementID

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

-Credential
Enter Alternate Credentials if required

Required? false
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters?

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

INPUT TYPE

RETURN TYPE
Returns either an instance, or multiple instances from the SMS_Advertisement Class


NOTES


NAME: Get-CMAdvertisement
AUTHOR: Greg Ramsey
LASTEDIT: 07/04/2009 00:39:05
#Requires -Version 2.0

-------------------------- EXAMPLE 1 --------------------------




Get-CMAdvertisement

-------------------------- EXAMPLE 2 --------------------------




Get-CMAdvertisement MYTESTLABServer
Returns all instances of the SMS_Advertisement Class on MYTESTLABServer

-------------------------- EXAMPLE 3 --------------------------




Get-CMAdvertisement MYTESTLABServer LAB20012
Returns advertisement LAB20012 on MYTESTLABServer

-------------------------- EXAMPLE 4 --------------------------




Get-CMAdvertisement MYTESTLABServer LAB20012 get-credential
Prompts for credentials
Get-CMAdvertisement MYTESTLABServer LAB20012 $Cred
uses credentials in $Cred


RELATED LINKS
http://msdn.microsoft.com/en-us/library/cc146108.aspx

Last edited Jul 7, 2009 at 4:34 AM by ramseygr, version 3

Comments

No comments yet.