< Back

Set-MSILoggingPolicy

Sat Jan 18, 2020 4:46 pm

NAME Set-MSILoggingPolicy



SYNOPSIS

Sets the Windows Installer logging policy.





SYNTAX

Set-MSILoggingPolicy [-LoggingPolicy] <LoggingPolicies> [-PassThru] [-Raw] [<CommonParameters>]





DESCRIPTION

The Windows Installer logging policy determines whether logs are generated by default and how much information

they contain. This cmdlet sets the logging policy and can return the logging modes as a collection of strings or

the raw string value from the registry if -passthru is specified.





PARAMETERS

-LoggingPolicy <LoggingPolicies>

The logging mode to set in the registry. If "ExtraDebug" or "x" are set, the Debug policy is also set to 7;

however, if neither are set the current Debug policy is not removed.



This can be a combination of "None", "ActionData", "ActionStart", "CommonData", "Error", "ExtraDebug",

"FatalExit", "Information", "OutOfDiskSpace", "PropertyDump", "User", "Verbose", "Warning", "All", and

"FlushEachLine"; or you can specify the Windows Installer command line options consisting of any combination

of the characters "voicewarmupx!".



Note that "All" does not include "FlushEachLine", but is equivalent to "voicewarmupx".



Required? true

Position? 0

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-PassThru [<SwitchParameter>]

Returns the logging modes set in the registry.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-Raw [<SwitchParameter>]

Along with -passthru, returns the raw string value from the registry.



Required? false

Position? named

Default value False

Accept pipeline input? False

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

string





string[]







NOTES









-------------------------- Example 1 --------------------------



PS C:\\> {{ Add example code here }}



{{ Add example description here }}



RELATED LINKS

Get-MSILoggingPolicy

Remove-MSILoggingPolicy