Clear-MSISource

Synopsis

Clears all registered network sources and URLs from a product or patch.

Syntax

Clear-MSISource [-ProductCode] <string> [-PatchCode <string>] [-UserSid <string>] [-UserContext <UserContexts>] [<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 clear all network sources and URLs from a product or patch.

Parameters

-PatchCode <String>

The patch code for a patch.

Required? false
Position named
Default value|
Accepts pipeline input? true (ByPropertyName)
Accept wildcard charactrs? false

-ProductCode <String>

The ProductCode for a product or applied patch.

Required? true
Position 0
Default value|
Accepts pipeline input? true (ByPropertyName)
Accept wildcard charactrs? false

-UserContext <Microsoft.Deployment.WindowsInstaller.UserContexts>

The user context for a product or patch.

Required? false
Position named
Default value All
Accepts pipeline input? true (ByPropertyName)
Accept wildcard charactrs? false

-UserSid <String>

The user SID for a product or patch.

Required? false
Position named
Default value|
Accepts pipeline input? true (ByPropertyName)
Accept wildcard charactrs? false

Outputs

  • Microsoft.Tools.WindowsInstaller.SourceInfo: Source information for an installed product.
  • Microsoft.Tools.WindowsInstaller.PatchSourceInfo: Source information for an applied patch.

Examples

Example 1

get-msiproductinfo '{707ABAE4-4DC5-478C-9D36-7CC5C1A85A3C}' | clear-msisource
Clears all registered source from the specified product.

Related Links


Last edited Dec 26, 2014 at 5:43 AM by heaths, version 1

Comments

No comments yet.