< Back

Get-MSISource

Sat Jan 18, 2020 4:45 pm

NAME Get-MSISource



SYNOPSIS

Gets the registered network source or URLs for a product or patch.





SYNTAX

Get-MSISource [-ProductCode] <String> [-PatchCode <String>] [-UserContext <UserContexts>] [-UserSid <String>]

[<CommonParameters>]





DESCRIPTION

Windows Installer products and patches can have zero or more registered locations that direct Windows Installer

where to look for package source. This cmdlet will enumerate those locations registered to a product or patch.





PARAMETERS

-PatchCode <String>

The patch code for a patch.



Required? false

Position? named

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-ProductCode <String>

The ProductCode for a product or applied patch.



Required? true

Position? 0

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-UserContext <UserContexts>

The user context for a product or patch.



Required? false

Position? named

Default value All

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-UserSid <String>

The user SID for a product or patch.



Required? false

Position? named

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS

Microsoft.Tools.WindowsInstaller.SourceInfo





Microsoft.Tools.WindowsInstaller.PatchSourceInfo







NOTES









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



get-msiproductinfo | get-msisource



Gets the registered source for all installed products on the machine.



RELATED LINKS

Add-MSISource

Clear-MSISource

Remove-MSISource