Set-MDISensorProxyConfiguration

设置标识传感器Defender的代理配置。

语法

Default (默认值)

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

说明

此 cmdlet 设置标识传感器Defender的代理配置。 如果 ProxyUrl 参数为 null 或为空,则该函数将清除代理配置。 如果指定 ProxyCredential 参数,该函数将加密密码并将其存储在传感器配置文件中。

示例

示例 1

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

本示例将标识传感器Defender的代理配置设置为使用指定的代理服务器和凭据。

示例 2

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

本示例将标识传感器Defender的代理配置设置为在没有任何凭据的情况下使用指定的代理服务器。

参数

-Confirm

在运行 cmdlet 之前,提示你进行确认。

参数属性

类型:System.Management.Automation.SwitchParameter
默认值:False
支持通配符:False
不显示:False
别名:Cf

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-ProxyCredential

用于向代理服务器进行身份验证的凭据。 可用于 Get-Credential 创建凭据对象。

参数属性

类型:System.Management.Automation.PSCredential
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:2
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-ProxyUrl

代理服务器的 URL。

参数属性

类型:System.String
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:1
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-WhatIf

显示 cmdlet 运行时会发生什么情况。 cmdlet 未能运行。

参数属性

类型:System.Management.Automation.SwitchParameter
默认值:False
支持通配符:False
不显示:False
别名:无线

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

CommonParameters

此 cmdlet 支持通用参数:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 有关详细信息,请参阅 about_CommonParameters