external help file | online version | schema |
---|---|---|
MDTApplicationTools-help.xml |
2.0.0 |
Gets the SupportedPlatform attribute of or more MDT applications
Get-MDTApplicationSupportedPlatform [-ShareName <Object>] -GUID <Object> -SupportedPlatformSet <Object>
Get-MDTApplicationSupportedPlatform [-ShareName <Object>] -Name <Object> -SupportedPlatformSet <Object>
Get-MDTApplicationSupportedPlatform [-ShareName <Object>] -SupportedPlatformSet <Object>
The Get-MDTApplicationSupportedPlatform function can either return the SupportedPlatform attribute of a queried application(via the name or GUID) parameter, return it for all applications, or return just applications that have it set(or not).
PS C:\> Get-MDTApplicationSupportedPlatform -ShareName TESTSHARE -SupportedPlatformSet Yes
Returns all applications where SupportedPlatform is set.
PS C:\> Get-MDTApplicationSupportedPlatform -ShareName TESTSHARE -SupportedPlatformSet No
Returns all applications where SupportedPlatform is NOT set.
PS C:\> Get-MDTApplicationSupportedPlatform -ShareName TESTSHARE -Name "Install - Google Chrome -x64" -SupportedPlatformSet All
Returns the queried application along with it's SupportedPlatform attribute
Specifies the GUID of an application to query the MDT share for. Alternate to Name Parameter.
Type: Object
Parameter Sets: GUIDFilter
Aliases:
Required: True
Position: Named
Default value:
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: True
Specifies the name of an application to search the MDT share for. If typed explicitly (i.e. "Install - Adobe Flash Player - x64"), will only return applications that have that exact name. The parameter also supports wildcards though, so typing something like "*adobe*" would return all the applications that have adobe in their name.
Type: Object
Parameter Sets: NameFilter
Aliases:
Required: True
Position: Named
Default value:
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: True
Specifies the name of the MDT share to query. In order to query by name, the MDT share must be mounted using either New-PSDrive or Set-MDTDrive. Here are some examples that should get you up and running:
PS C:\>New-PSDrive -Name MDTProduction -PSProvider MDTProvider -Root "\\FILESERVER\MDTProduction$" -NetworkPath "\\FILESERVER\MDTProduction$" -Scope Global
or
PS C:\>Set-MDTDrive -Name MDTProduction -Path "\\FILESERVER\MDTProduction$"
Type: Object
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value:
Accept pipeline input: False
Accept wildcard characters: False
Specifies in the query whether to return just Applications that have it set(Yes), just Applications that do NOT have it set(No), or to return Applications that both states(All).
Type: Object
Parameter Sets: (All)
Aliases:
Accepted values: Yes, No, All
Required: True
Position: Named
Default value: All
Accept pipeline input: False
Accept wildcard characters: False