How to read out a Windows user SID and replace it in USERINFO table

This is needed if you are unable to log into the Axapta Client due to the following error message: "You are not a recognized user of Microsoft Dynamics AX"

 Use the following Script to find the Windows user SID you want to change:

strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set objAccount = objWMIService.Get _
Wscript.Echo objAccount.SID

Now replace the SID using Microsoft SQL Server Mangement Studio, in the USERINFO table. Log in with the new user.

Martin Ch

Comments (3)
  1. Diego Ordonez says:

    Excuse me, but where am i supposed to run this script.

    Powershell ? DOS ? SQL Server ?

    Thank you very much

  2. Martin Falta says:

    You need to create a new .vbs file where you copy the code sample and then execute it e.g. from Windows Explorer.

  3. error: says:

    Windows Script Host

       Line: 3

       Char: 1

       Error: Not found

       Code: 800410002

       Source: SWbemServicesEx

Comments are closed.

Skip to main content