< Back
Add-omsAgentProxy
Post
NAME Add-omsAgentProxy
SYNOPSIS
Adds a OMS Agent Proxy to remote computers.
SYNTAX
Add-omsAgentProxy [[-computerName] <String[]>] [-Credential <PSCredential>] -proxyURL <String> [-proxyCredential
<PSCredential>] [-WhatIf] [-Confirm] [<CommonParameters>]
DESCRIPTION
PARAMETERS
-computerName <String[]>
Required? false
Position? 1
Default value $env:COMPUTERNAME
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Credential <PSCredential>
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-proxyURL <String>
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-proxyCredential <PSCredential>
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
Required? false
Position? named
Default value
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
NOTES
Written by Ben Taylor
Version 1.0, 06.03.2017
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Add-omsAgentProxy -computerName 'computer1', 'computer2' -proxyURL 'proxy.local:443'
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>$proxyCredential = Get-Credential
Add-omsAgentProxy -computerName 'computer1', 'computer2' -proxyURL 'proxy.local:443' -proxyCredential
$proxyCredential
RELATED LINKS
SYNOPSIS
Adds a OMS Agent Proxy to remote computers.
SYNTAX
Add-omsAgentProxy [[-computerName] <String[]>] [-Credential <PSCredential>] -proxyURL <String> [-proxyCredential
<PSCredential>] [-WhatIf] [-Confirm] [<CommonParameters>]
DESCRIPTION
PARAMETERS
-computerName <String[]>
Required? false
Position? 1
Default value $env:COMPUTERNAME
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Credential <PSCredential>
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-proxyURL <String>
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-proxyCredential <PSCredential>
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
Required? false
Position? named
Default value
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
NOTES
Written by Ben Taylor
Version 1.0, 06.03.2017
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Add-omsAgentProxy -computerName 'computer1', 'computer2' -proxyURL 'proxy.local:443'
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>$proxyCredential = Get-Credential
Add-omsAgentProxy -computerName 'computer1', 'computer2' -proxyURL 'proxy.local:443' -proxyCredential
$proxyCredential
RELATED LINKS