Queries the Automox API.
Get-AutomoxAPIData [-OrganizationID] <String> [-APIKey] <String> [[-ExecutionMode] <String>]
[[-ExportDirectory] <DirectoryInfo>] [[-LogDirectory] <DirectoryInfo>] [-ContinueOnError] [-WhatIf] [-Confirm]
[<CommonParameters>]
Heavily leverages the "Get-AutomoxAPIObject" function in order to query the Automox API. The function will be automatically imported for usage during script execution.
powershell.exe -ExecutionPolicy Bypass -NoProfile -NoLogo -File "FolderPathContainingScript\Get-AutomoxAPIData.ps1" -OrganizationID 'YourOrganizationID' -APIKey "YourAPIKey"
powershell.exe -ExecutionPolicy Bypass -NoProfile -NoLogo -File "FolderPathContainingScript\Get-AutomoxAPIData.ps1" -OrganizationID "YourOrganizationID" -APIKey "YourAPIKey" -ExecutionMode "Execute"
powershell.exe -ExecutionPolicy Bypass -NoProfile -NoLogo -File "FolderPathContainingScript\Get-AutomoxAPIData.ps1" -OrganizationID "YourOrganizationID" -APIKey "YourAPIKey" -ExecutionMode "CreateScheduledTask"
powershell.exe -ExecutionPolicy Bypass -NoProfile -NoLogo -File "FolderPathContainingScript\Get-AutomoxAPIData.ps1" -OrganizationID "YourOrganizationID" -APIKey "YourAPIKey" -ExecutionMode "RemoveScheduledTask"
A valid Automox API key that is associated with the specified organization ID.
Type: System.String
Parameter Sets: (All)
Aliases: Key
Required: True
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies whether to ignore fatal errors.
Type: System.Management.Automation.SwitchParameter
Parameter Sets: (All)
Aliases: COE
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
A valid execution mode for script operation. Maybe any one of 'Execute', 'CreateScheduledTask', or 'RemoveScheduledTask'. By default, 'Execute' will be specified value.
Type: System.String
Parameter Sets: (All)
Aliases: EM
Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
A valid directory where the API request data will be exported. If the directory does not exist, it will be automatically created.
Type: System.IO.DirectoryInfo
Parameter Sets: (All)
Aliases: ED
Required: False
Position: 4
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
A valid directory where the script logs will be located. By default, "C:\Windows\Logs\Software\Get-AutomoxAPIData".
Type: System.IO.DirectoryInfo
Parameter Sets: (All)
Aliases: LogDir, LD
Required: False
Position: 5
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
A valid Automox organization ID. This might take the form of a number or a GUID.
Type: System.String
Parameter Sets: (All)
Aliases: OID
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Prompts you for confirmation before running the cmdlet.
Type: System.Management.Automation.SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: System.Management.Automation.SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Any useful tidbits