< Back
Clear-MSISource
Post
NAME Clear-MSISource
SYNOPSIS
Clears all registered network sources and URLs from a product or patch.
SYNTAX
Clear-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 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 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 '{707ABAE4-4DC5-478C-9D36-7CC5C1A85A3C}' | clear-msisource
Clears all registered source from the specified product.
RELATED LINKS
Add-MSISource
Get-MSISource
Remove-MSISource
SYNOPSIS
Clears all registered network sources and URLs from a product or patch.
SYNTAX
Clear-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 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 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 '{707ABAE4-4DC5-478C-9D36-7CC5C1A85A3C}' | clear-msisource
Clears all registered source from the specified product.
RELATED LINKS
Add-MSISource
Get-MSISource
Remove-MSISource