Megosztás a következőn keresztül:


Set-MDISensorProxyConfiguration

Sets the proxy configuration for the Defender for Identity sensor.

Syntax

Set-MDISensorProxyConfiguration
   [[-ProxyUrl] <String>]
   [[-ProxyCredential] <PSCredential>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

Description

This cmdlet sets the proxy configuration for the Defender for Identity sensor. If the ProxyUrl parameter is null or empty, the function clears the proxy configuration. If you specify the ProxyCredential parameter, the function encrypts the password and stores it in the sensor configuration file.

Examples

EXAMPLE 1

Set-MDISensorProxyConfiguration -ProxyUrl 'http://proxy.contoso.com:8080' -ProxyCredential $Credential

This example sets the proxy configuration for the Defender for Identity sensor to use the specified proxy server and credentials.

EXAMPLE 2

Set-MDISensorProxyConfiguration -ProxyUrl 'http://proxy.contoso.com:8080'

This example sets the proxy configuration for the Defender for Identity sensor to use the specified proxy server without any credentials.

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:System.Management.Automation.SwitchParameter
Aliases:cf
Position:Named
Default value:False
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-ProxyCredential

The credentials to use to authenticate with the proxy server. You can use Get-Credential to create a credential object.

Type:System.Management.Automation.PSCredential
Position:2
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-ProxyUrl

The URL of the proxy server.

Type:System.String
Position:1
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet isn't run.

Type:System.Management.Automation.SwitchParameter
Aliases:wi
Position:Named
Default value:False
Required:False
Accept pipeline input:False
Accept wildcard characters:False