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 |
Related Links
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기