< Back
Invoke-AxStartAutoRun
Post
NAME Invoke-AxStartAutoRun
SYNOPSIS
Execute the AutoRun feature of the AX 2012 Client
SYNTAX
Invoke-AxStartAutoRun -Path <String> [-AxClientExePath <String>] [-TimeoutInMinutes <Int32>]
[-ShowOriginalProgress] [-OutputCommandOnly] [-EnableException] [<CommonParameters>]
DESCRIPTION
AX 2012 offers several ways to automate some core developer tasks, like DB Sync & Xpp Compile
PARAMETERS
-Path <String>
Path to the autorun xml file that contains the desired automation tasks that you want to execute
Required? true
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-AxClientExePath <String>
Path to the AX 2012 Client (ax32.exe) file, which is needed to run the automated tasks
The default value is read from the registry on the local machine
Required? false
Position? named
Default value $(Join-Path $Script:ClientBin "Ax32.exe")
Accept pipeline input? false
Accept wildcard characters? false
-TimeoutInMinutes <Int32>
Number of minutes the autorun task is allowed to run, before you want it to exit
Default value is: 360 minutes (6 hours)
Required? false
Position? named
Default value 360
Accept pipeline input? false
Accept wildcard characters? false
-ShowOriginalProgress [<SwitchParameter>]
Instruct the cmdlet to show the standard output in the console
Default is $false which will silence the standard output
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-OutputCommandOnly [<SwitchParameter>]
Instruct the cmdlet to only generate the needed command and not execute it
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-EnableException [<SwitchParameter>]
This parameters disables user-friendly warnings and enables the throwing of exceptions
This is less user friendly, but allows catching exceptions in calling scripts
Required? false
Position? named
Default value False
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
System.String
NOTES
Tags:
Author: M??????tz Jensen (@Splaxi)
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Invoke-AxStartAutoRun -Path "c:\\temp\\ax2012.tools\\autorun_syncDB.xml"
This will invoke the autorun feature of the AX 2012 client.
It will use the "c:\\temp\\ax2012.tools\\autorun_syncDB.xml" as path passed to the AX 2012 Client.
It will use the default path of the AX 2012 Client, read from the registry.
It will run for a maximum of 360 minutes.
RELATED LINKS
SYNOPSIS
Execute the AutoRun feature of the AX 2012 Client
SYNTAX
Invoke-AxStartAutoRun -Path <String> [-AxClientExePath <String>] [-TimeoutInMinutes <Int32>]
[-ShowOriginalProgress] [-OutputCommandOnly] [-EnableException] [<CommonParameters>]
DESCRIPTION
AX 2012 offers several ways to automate some core developer tasks, like DB Sync & Xpp Compile
PARAMETERS
-Path <String>
Path to the autorun xml file that contains the desired automation tasks that you want to execute
Required? true
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-AxClientExePath <String>
Path to the AX 2012 Client (ax32.exe) file, which is needed to run the automated tasks
The default value is read from the registry on the local machine
Required? false
Position? named
Default value $(Join-Path $Script:ClientBin "Ax32.exe")
Accept pipeline input? false
Accept wildcard characters? false
-TimeoutInMinutes <Int32>
Number of minutes the autorun task is allowed to run, before you want it to exit
Default value is: 360 minutes (6 hours)
Required? false
Position? named
Default value 360
Accept pipeline input? false
Accept wildcard characters? false
-ShowOriginalProgress [<SwitchParameter>]
Instruct the cmdlet to show the standard output in the console
Default is $false which will silence the standard output
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-OutputCommandOnly [<SwitchParameter>]
Instruct the cmdlet to only generate the needed command and not execute it
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-EnableException [<SwitchParameter>]
This parameters disables user-friendly warnings and enables the throwing of exceptions
This is less user friendly, but allows catching exceptions in calling scripts
Required? false
Position? named
Default value False
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
System.String
NOTES
Tags:
Author: M??????tz Jensen (@Splaxi)
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Invoke-AxStartAutoRun -Path "c:\\temp\\ax2012.tools\\autorun_syncDB.xml"
This will invoke the autorun feature of the AX 2012 client.
It will use the "c:\\temp\\ax2012.tools\\autorun_syncDB.xml" as path passed to the AX 2012 Client.
It will use the default path of the AX 2012 Client, read from the registry.
It will run for a maximum of 360 minutes.
RELATED LINKS