Skip to content

Set ePOConfig

Michael Arranaga edited this page Aug 30, 2019 · 1 revision

external help file: ePOwerShell-help.xml Module Name: ePOwerShell online version: schema: 2.0.0

Set-ePOConfig

SYNOPSIS

Required command. Sets the necessary parameters to successfully communicate with an ePO server

SYNTAX

Env (Default)

Set-ePOConfig [-AllowSelfSignedCerts] [-ePOwerShellSettings <String>] [-WhatIf] [-Confirm] [<CommonParameters>]

ManualEntry

Set-ePOConfig -Server <String> -Credentials <PSCredential> [-Port <Int32>] [-AllowSelfSignedCerts] [-WhatIf]
 [-Confirm] [<CommonParameters>]

DESCRIPTION

This function sets up all information necessary to communicate with your ePO server.

There are three ways to utilize this command: By manually specifying the variables each time you load the module, saving a json file on your computer with the necessary information, or saving the json as an environment variable, $env:ePOwerShell.

EXAMPLES

EXAMPLE 1

Set-ePOConfig -Server 'My-ePO-Server.domain.com' -Port 1234 -Credentials (Get-Credential) -AllowSelfSignedCerts

Set ePO config

PARAMETERS

-Server

URL to the ePO server

Type: String
Parameter Sets: ManualEntry
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Credentials

Credentials with access to the ePO server

Type: PSCredential
Parameter Sets: ManualEntry
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Port

Specifies the port necessary to communicate with the ePO server

Type: Int32
Parameter Sets: ManualEntry
Aliases:

Required: False
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False

-AllowSelfSignedCerts

Specifies if you'd like to allow ePOwerShell to allow self signed certificates on the ePO server

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: ($Script:ePOwerShell.AllowSelfSignedCerts)
Accept pipeline input: False
Accept wildcard characters: False

-ePOwerShellSettings

Specifies a path to a json containing all information necessary to connect to an ePO server

Type: String
Parameter Sets: Env
Aliases:

Required: False
Position: Named
Default value: (${env:ePOwerShell})
Accept pipeline input: False
Accept wildcard characters: False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

None

NOTES

RELATED LINKS