< Back
Get-ProcessMitigation
Post
NAME Get-ProcessMitigation
SYNOPSIS
Gets the current process mitigation settings, either from the registry, from a running process, or saves all to a
XML.
SYNTAX
Get-ProcessMitigation [-Name] <String> [-DisplayRunningProcess] [<CommonParameters>]
Get-ProcessMitigation [-Id] <Int32[]> -DisplayRunningProcess [<CommonParameters>]
Get-ProcessMitigation [-RegistryConfigFilePath <String>] [<CommonParameters>]
DESCRIPTION
Gets all process mitigation settings either by process name (either running or from -Registry), or by process ID.
Can also save all settings to an XML file.
PARAMETERS
-DisplayRunningProcess [<SwitchParameter>]
{{Displays the current mitigation settings for a specific process}}
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
-Id <Int32[]>
Process Id to retrieve current running process mitigation settings from
Required? true
Position? 0
Default value None
Accept pipeline input? True (ByPropertyName, ByValue)
Accept wildcard characters? false
-Name <String>
Current process name to get current running (Or from registry) process mitigation settings from one (Can be
more than one instance)
Required? true
Position? 0
Default value None
Accept pipeline input? True (ByPropertyName, ByValue)
Accept wildcard characters? false
-RegistryConfigFilePath <String>
{{Fill RegistryConfigFilePath Description}}
Required? false
Position? named
Default value None
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
System.String
System.Int32[]
OUTPUTS
System.Object
NOTES
Example 1
PS C:\\> Get-ProcessMitigation -Name notepad.exe -Running
Gets the current settings on all running instances of notepad.exe
Example 2
PS C:\\> Get-ProcessMitigation -Name notepad.exe
Gets the current settings in the registry for notepad.exe
Example 3
PS C:\\> Get-ProcessMitigation -Id 1304
Gets the current settings for the running process with Id 1304
Example 4
PS C:\\> Get-ProcessMitigation -Save settings.xml
Gets the all process mitigation settings from the registry and saves them to the xml file settings.xml
RELATED LINKS
SYNOPSIS
Gets the current process mitigation settings, either from the registry, from a running process, or saves all to a
XML.
SYNTAX
Get-ProcessMitigation [-Name] <String> [-DisplayRunningProcess] [<CommonParameters>]
Get-ProcessMitigation [-Id] <Int32[]> -DisplayRunningProcess [<CommonParameters>]
Get-ProcessMitigation [-RegistryConfigFilePath <String>] [<CommonParameters>]
DESCRIPTION
Gets all process mitigation settings either by process name (either running or from -Registry), or by process ID.
Can also save all settings to an XML file.
PARAMETERS
-DisplayRunningProcess [<SwitchParameter>]
{{Displays the current mitigation settings for a specific process}}
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
-Id <Int32[]>
Process Id to retrieve current running process mitigation settings from
Required? true
Position? 0
Default value None
Accept pipeline input? True (ByPropertyName, ByValue)
Accept wildcard characters? false
-Name <String>
Current process name to get current running (Or from registry) process mitigation settings from one (Can be
more than one instance)
Required? true
Position? 0
Default value None
Accept pipeline input? True (ByPropertyName, ByValue)
Accept wildcard characters? false
-RegistryConfigFilePath <String>
{{Fill RegistryConfigFilePath Description}}
Required? false
Position? named
Default value None
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
System.String
System.Int32[]
OUTPUTS
System.Object
NOTES
Example 1
PS C:\\> Get-ProcessMitigation -Name notepad.exe -Running
Gets the current settings on all running instances of notepad.exe
Example 2
PS C:\\> Get-ProcessMitigation -Name notepad.exe
Gets the current settings in the registry for notepad.exe
Example 3
PS C:\\> Get-ProcessMitigation -Id 1304
Gets the current settings for the running process with Id 1304
Example 4
PS C:\\> Get-ProcessMitigation -Save settings.xml
Gets the all process mitigation settings from the registry and saves them to the xml file settings.xml
RELATED LINKS