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 _
("Win32_UserAccount.Name='kenmyer',Domain='fabrikam'")
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
Anonymous
April 07, 2010
Excuse me, but where am i supposed to run this script. Powershell ? DOS ? SQL Server ? Thank you very muchAnonymous
April 07, 2010
The comment has been removedAnonymous
March 20, 2011
Windows Script Host Line: 3 Char: 1 Error: Not found Code: 800410002 Source: SWbemServicesEx