This project is read-only.

Get-MSISource

Synopsis

Gets a list of source locations for products and patches.

Syntax

  • Get-MSISource &#91;-InputObject&#93; <PSObject[]> &#91;-UserSid <String>&#93; &#91;-InstallContext <InstallContext>&#93; &#91;-SourceType <SourceTypes>&#93; &#91;-Everyone&#93;
  • Get-MSISource &#91;-ProductCode&#93; <String[]> &#91;-UserSid <String>&#93; &#91;-InstallContext <InstallContext>&#93; &#91;-SourceType <SourceTypes>&#93; &#91;-Everyone&#93;
  • Get-MSISource &#91;-PatchCode&#93; <String[]> &#91;-UserSid <String>&#93; &#91;-InstallContext <InstallContext>&#93; &#91;-SourceType <SourceTypes>&#93; &#91;-Everyone&#93;

Detailed Description

Gets a list of network and URL source locations for products and patches.

Parameters

-InputObject <PSObject[]>

A collection of ProductInfo or PatchInfo objects to retrieve a list of sources.

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

-UserSid <String>

The security identifier for a user for user-managed and user-unmanaged products and patches.

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

-InstallContext <InstallContext>

The context for registered products and patches. This can be a combination of "Machine", "UserManaged", or "UserUnmanaged".

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

-SourceType <SourceTypes>

The type of sources to retrieve. This may be either "Network" or "Url".

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

-Everyone

Whether to retrieve user-managed or user-unmanaged products and patches for everyone.

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

-ProductCode <String[]>

The ProductCode or ProductCodes to retrieve a list of sources.

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

-PatchCode <String[]>

The patch code or patch codes to retrieve a list of sources.

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

Return Type

  • Microsoft.Windows.Installer.PackageSource: Source properties for products and patches.

Notes

Example 1

C:\PS> get-msisource -productcode "{1862162E-3BBC-448F-AA63-49F33152D54A}" | sort index | format-table sourcetype, path -auto

This command gets sources for the given product and outputs the source type and path sorted by their index.

Example 2

C:\PS> get-msiproductinfo | where-object {$_.Name -match "Office"} | get-msisource -sourcetype network | format-table path

This command gets the network sources for products with the name "Office" in the product name.

Related Links

Last edited Feb 8, 2009 at 8:22 PM by heaths, version 2

Comments

No comments yet.