You are on page 1of 1

Set-ExecutionPolicy Unrestricted

$axmodulename ="Microsoft.Dynamics.AX.Framework.Management"
$axdllname = $axmodulename + ".dll"
$gacfolder = join-path $env:windir "assembly\GAC_MSIL"
$axdll = Get-ChildItem $gacfolder -Recurse -Include *.dll -Name $axdllname
$axdll = join-path $gacfolder $axdll
write-host "Importing AX ManaSalesgement module"
import-module $axdll
Get-Command -Module Microsoft.Dynamics.AX.Framework.Management
"$reports = Get-AXReport -ReportName *
Publish-AXReport ReportName *

You might also like