< Back

Set-AxAdmin

Sat Jan 11, 2020 8:19 am

NAME Set-AxAdmin



SYNOPSIS

Set the admin account inside the AX 2012 database





SYNTAX

Set-AxAdmin -Username <String> [-DatabaseServer <String>] [-DatabaseName <String>] [-SqlUser <String>] [-SqlPwd

<String>] [-OutputCommandOnly] [<CommonParameters>]





DESCRIPTION

Set the user account details (credentails) that will be the considered as the admin account in the AX 2012 database





PARAMETERS

-Username <String>

Username of the user that you want to be the new admin in the database



Must include domain details, either in PRE-2000 or UPN style



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-DatabaseServer <String>

Server name of the database server



Default value is: "localhost"



Required? false

Position? named

Default value $Script:ActiveAosDatabaseserver

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-DatabaseName <String>

Name of the database



Default value is: "MicrosoftDynamicsAx"



Required? false

Position? named

Default value $Script:ActiveAosDatabase

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-SqlUser <String>

User name of the SQL Server credential that you want to use when working against the database



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-SqlPwd <String>

Password of the SQL Server credential that you want to use when working against the database



Required? false

Position? named

Default value

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





Tags:



Author: M??????tz Jensen (@Splaxi)



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Set-AxAdmin -Username "ACME.local\\test"



This will update the admin record in the AX 2012 database to "ACME.local\\test".











RELATED LINKS