Thursday, July 23, 2015

whoam i ? get the SSID

get extended who am i information in the system

wmic useraccount get name,sid

Wednesday, July 08, 2015

AX 2012 EP Timeout

Step 1:
Increase the timeout settings for EP in AX 2012. Looks like the solution is to increase the timeout setting for the ajax asynchronous calls, this should be done on each page where the timeout needs to be increased luckliy there is a central place as well where it can be done as shown below

1) Open the master page from \Web\Web Files\Static Files\defaultaxV4 in the AOT
2) Search for the OnLoad() method to replace in something in below.

protected override void OnLoad(EventArgs e)
AxScriptManager scripts = AxScriptManager.GetCurrent(this.Page);

if (scripts != null)
scripts.AsyncPostBackTimeout = 900; // 600 seconds

//Call Header.DataBind to generate dynamics styles in header

Step 2:
Sharepoint has an service known as the request management service. This service manages all incoming requests and evalutes which is best possible machine to machines in the farm to handle the request.

The basic process to manage the request service is as follows
  1. Get a reference to the SPWebApplication
  2. Get a reference to the request management settings for the web application
  3. Set the parameter
  4. Update the setting
start sharepoint 2013 management shell. It can be found in the program files using the search option in windows

$waUrl = "http://ax-app:290"
$wa = Get-SPWebApplication $waUrl
$rmSettings = $wa | Get-SPRequestManagementSettings
$timeout2= New-TimeSpan -minutes 5

Step 3:
 Increase the timeout setting for the application pool associated with bcproxy in the IIS console.