< Back
Export-AxModelStoreV2
Post
NAME Export-AxModelStoreV2
SYNOPSIS
Export an AX 2012 modelstore file
SYNTAX
Export-AxModelStoreV2 [-DatabaseServer <String>] [-ModelstoreDatabase <String>] [-InstanceName <String>] [-Suffix
<String>] [-Path <String>] [-ShowOriginalProgress] [-OutputCommandOnly] [<CommonParameters>]
DESCRIPTION
Export an AX 2012 modelstore file from the modelstore database
PARAMETERS
-DatabaseServer <String>
Server name of the database server
Default value is: "localhost"
Required? false
Position? named
Default value $Script:ActiveAosDatabaseserver
Accept pipeline input? false
Accept wildcard characters? false
-ModelstoreDatabase <String>
Name of the modelstore database
Default value is: "MicrosoftDynamicsAx_model"
Note: From AX 2012 R2 and upwards you need to provide the full name for the modelstore database. E.g.
"AX2012R3_PROD_model"
Required? false
Position? named
Default value $Script:ActiveAosModelstoredatabase
Accept pipeline input? false
Accept wildcard characters? false
-InstanceName <String>
Name of the instance that you are working against
If not supplied the cmdlet will take the name of the database and use that
Required? false
Position? named
Default value $Script:ActiveAosInstancename
Accept pipeline input? false
Accept wildcard characters? false
-Suffix <String>
A suffix text value that you want to add to the name of the file while it is exported
The default value is: (Get-Date).ToString("yyyyMMdd")
This will always name you file with the current date
Required? false
Position? named
Default value $((Get-Date).ToString("yyyyMMdd"))
Accept pipeline input? false
Accept wildcard characters? false
-Path <String>
Path to the location where you want the file to be exported
Default value is: "c:\\temp\\ax2012.tools"
Required? false
Position? named
Default value $Script:DefaultTempPath
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
<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
Author: M??????tz Jensen (@Splaxi)
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Export-AxModelStoreV2
This will execute the cmdlet with all the default values.
This will work against the SQL server that is on localhost.
The database is expected to be "MicrosoftDynamicsAx_model".
The path where the exported modelstore file will be saved is: "c:\\temp\\ax2012.tools".
RELATED LINKS
SYNOPSIS
Export an AX 2012 modelstore file
SYNTAX
Export-AxModelStoreV2 [-DatabaseServer <String>] [-ModelstoreDatabase <String>] [-InstanceName <String>] [-Suffix
<String>] [-Path <String>] [-ShowOriginalProgress] [-OutputCommandOnly] [<CommonParameters>]
DESCRIPTION
Export an AX 2012 modelstore file from the modelstore database
PARAMETERS
-DatabaseServer <String>
Server name of the database server
Default value is: "localhost"
Required? false
Position? named
Default value $Script:ActiveAosDatabaseserver
Accept pipeline input? false
Accept wildcard characters? false
-ModelstoreDatabase <String>
Name of the modelstore database
Default value is: "MicrosoftDynamicsAx_model"
Note: From AX 2012 R2 and upwards you need to provide the full name for the modelstore database. E.g.
"AX2012R3_PROD_model"
Required? false
Position? named
Default value $Script:ActiveAosModelstoredatabase
Accept pipeline input? false
Accept wildcard characters? false
-InstanceName <String>
Name of the instance that you are working against
If not supplied the cmdlet will take the name of the database and use that
Required? false
Position? named
Default value $Script:ActiveAosInstancename
Accept pipeline input? false
Accept wildcard characters? false
-Suffix <String>
A suffix text value that you want to add to the name of the file while it is exported
The default value is: (Get-Date).ToString("yyyyMMdd")
This will always name you file with the current date
Required? false
Position? named
Default value $((Get-Date).ToString("yyyyMMdd"))
Accept pipeline input? false
Accept wildcard characters? false
-Path <String>
Path to the location where you want the file to be exported
Default value is: "c:\\temp\\ax2012.tools"
Required? false
Position? named
Default value $Script:DefaultTempPath
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
<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
Author: M??????tz Jensen (@Splaxi)
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Export-AxModelStoreV2
This will execute the cmdlet with all the default values.
This will work against the SQL server that is on localhost.
The database is expected to be "MicrosoftDynamicsAx_model".
The path where the exported modelstore file will be saved is: "c:\\temp\\ax2012.tools".
RELATED LINKS