Skip to content

Get-SendToEasitGOParameters

SYNOPSIS

Get parameters for Get-SendToEasit as hashtable.

SYNTAX

1
2
Get-SendToEasitGOParameters [-SourceSettings] <PSObject> [-DestinationSettings] <PSObject>
 [-ProgressAction <ActionPreference>] [<CommonParameters>]

DESCRIPTION

The Get-SendToEasitGOParameters creates a hashtable for the parameters to be used with Send-ToEasitGO.

When settings from the configuration file is imported and converted from JSON we get a PSCustomObject back. To be able to use splatting we need to convert that object to a hashtable.

EXAMPLES

EXAMPLE 1

1
2
$sendToEasitGOParams = Get-SendToEasitGOParameters -SourceSettings $source -DestinationSettings $destination
Send-ToEasitGO @sendToEasitGOParams -Item $objectsToSend

PARAMETERS

-DestinationSettings

Object with settings for destination.

1
2
3
4
5
6
7
8
9
Type: PSObject
Parameter Sets: (All)
Aliases:

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

-ProgressAction

Determines how PowerShell responds to progress updates generated by a script, cmdlet, or provider, such as the progress bars generated by the Write-Progress cmdlet. The Write-Progress cmdlet creates progress bars that show a command's status.

The ProgressAction parameter takes one of the ActionPreference enumeration values: SilentlyContinue, Stop, Continue, Inquire, Ignore, Suspend, or Break.

1
2
3
4
5
6
7
8
9
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga

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

-SourceSettings

Object with settings for source.

1
2
3
4
5
6
7
8
9
Type: PSObject
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
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

PSCustomObject

OUTPUTS

Hashtable

NOTES