Creating AX users in Powershell

If you want to create a user in Dynamics AX 2012, you can simply use New-AXUser cmdlet and other User and role-based security cmdlets. It’s more difficult in AX 2009 and older versions, but you can utilize Business Connector to do the job. Below is an extended function that I wrote for AX 2009. It accepts …

Continue reading ‘Creating AX users in Powershell’ »

Powershell management cmdlets

I love Powershell and I use it for many tasks such as managing AOS services and deploying AX applications. Nevertheless I rarely do much work regarding Windows servers, because there is always somebody who does that as a part of his own job. But now I’m preparing few private machines for my research and development …

Continue reading ‘Powershell management cmdlets’ »

Invoke-WebRequest

Powershell 3.0 introduced Invoke-WebRequest cmdlet which offers a lot of options regarding HTTP requests. Rather then repeating the documentation and other sources, I’m going to show a simple example – the script below finds some specific links in the given web page and download them. It uses Invoke-WebRequest for both getting (and parsing) the web …

Continue reading ‘Invoke-WebRequest’ »

Hodge-podge – 04/2013

This new “series” is intended to briefly mention various topics that I find interesting and/or useful, but they’re too short for a separate posts. I don’t currently want to spend more time with them or I just simply want to give you a link and I wouldn’t add any additional value. Compare 〈Dynamics AX〉 The …

Continue reading ‘Hodge-podge – 04/2013’ »

Combine XPO and corrupted files

Few days ago my night build of a Dynamics AX 2009 application stopped working correctly. Some objects were missing in the built layer, which of course caused many compilation errors. It occurred that data were correctly obtained from version control, but the Combine XPO Tool (CombineXPOs.exe) couldn’t process them. (If you’re not familiar with that, …

Continue reading ‘Combine XPO and corrupted files’ »