web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

powershell for Async Sever

(0) ShareShare
ReportReport
Posted on by 2,259

I installed the Async Server for AX 2012 R3 (Retail) as shown in the installation guide.

then I need to run this command in the Windows PowerShell using administrator user and password

$Cred = @((New-Object System.Management.Automation.PSCredential('domain\user', (ConvertToSecureString 'password' -AsPlainText -Force)))

but the following

PS C:\Program Files (x86)\Microsoft Dynamics AX\60\CDX\Async Server\Tools> $Cred = @((New-Object System.Management.Autom
ation.PSCredential('"Domain"\User', (ConvertToSecureString 'password' -AsPlainText -Force))))


ConvertToSecureString : The term 'ConvertToSecureString' is not recognized as the name of a cmdlet, function, script
file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct
and try again.
At line:1 char:89
+ ... ministrator', (ConvertToSecureString 'pass@word06' -AsPlainText -Force))))
+                    ~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (ConvertToSecureString:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

did anyone knows how to solve this issue?

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Iulian Cordobin Profile Picture
    8,201 on at

    Yes, you are missing a '-' in the ConvertTo-SecureString. Add it and let me know if it works for you.

  • w.sallam Profile Picture
    2,259 on at

    thanks for your help. now it solved

    didn't notice the '-' at all.

    Nice blog by the way

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans