AXForum  
Вернуться   AXForum > Microsoft Dynamics AX > DAX Blogs
All
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 19.10.2015, 15:11   #1  
Blog bot is offline
Blog bot
Участник
 
25,643 / 848 (80) +++++++
Регистрация: 28.10.2006
goshoom: Configuration of LCS System Diagnostics
Источник: http://dev.goshoom.net/en/2015/10/co...m-diagnostics/
==============

System Diagnostics from Dynamics Lifecycle Services is a really handy tool – it collects data about your Dynamics AX environments and warns you if your setup is not optimal from performance perspective, if a number sequence is running out of available numbers, if batches are failing and so on. It allows you to act proactively, rather than waiting for something serious to happen.



The only problem with this tool is configuration, because you have to grant the service account permissions to quite a few things, but you typically don’t want to allow everything. The recommended configuration therefore cherry-picks individual items to set permissions for, such as individual registry keys. It’s well-documented, unfortunately it still consists of a large number of manual steps and it’s very easy to do something wrong, especially if you have many servers to configure.

Below you can find scripts automating a few tasks, such as adding the service account to necessary user groups. It’s by no means exhaustive and you’ll still have to do many things manually, but it’s better than nothing. I didn’t mean it as any ambitious project; I merely implemented a few easy wins last time when I was configuring System Diagnostics – and now I’m sharing it with you.

Examples below expect that you’ve set variables with the domain and service account name:

$domain = 'MyDomain' $accountName = 'LcsServiceAccount'






You’ll likely need to run the scripts “As administrator”.

# Adds system diagnostics service account to AX Function Add-LcsAccountToAX { Param( [Parameter(Mandatory=$True)] [string]$User, [Parameter(Mandatory=$True)] [string]$Domain, [string]$AxUserId = 'LcsDiag' ) # Requires AX management module (e.g. running in AX management shell) New-AXUser -UserName $AccountName -UserDomain $Domain -AXUserId $AxUserId -AccountType WindowsUser Add-AXSecurityRoleMember -AxUserID $AxUserId -AOTName SysBusinessConnectorRole } # Usage: Add-LcsAccountToAX -User $accountName -Domain $domain






# Grants access to registry keys Set-RegistryReadPemissions { Param( [Parameter(Mandatory=$True)] [string]$Account, [Parameter(Mandatory=$True)] [string]$RegKey ) $rule = New-Object System.Security.AccessControl.RegistryAccessRule ($Account,'ReadKey','ObjectInherit,ContainerInherit','None','Allow') $acl = Get-Acl $RegKey $acl.SetAccessRule($rule) $acl | Set-Acl } # Usage: $domainAccount = "$domain\$accountName" # Run on AOS server Set-RegistryReadPemissions -Account $domainAccount -RegKey 'HKLM:\System\CurrentControlSet\services\Dynamics Server\6.0' # Run on database server Set-RegistryReadPemissions -Account $domainAccount -RegKey 'HKLM:\System\CurrentControlSet\Control\PriorityControl'






# Adds service account to Windows user groups Function Add-DomainUserToLocalGroup { Param( [Parameter(Mandatory=$True)] [string[]]$Group, [Parameter(Mandatory=$True)] [string]$User, [Parameter(Mandatory=$True)] [string]$Domain, [string]$Computer = $Env:ComputerName ) foreach ($g in $Group) { $adsi = [ADSI]"WinNT://$computer/$g,group" $adsi.psbase.Invoke("Add",([ADSI]"WinNT://$domain/$user").path) } } # Usage: $groups = 'Event Log Readers','Distributed COM Users','Performance Monitor Users' Add-DomainUserToLocalGroup -Group $groups -Domain $domain -User $accountName








Источник: http://dev.goshoom.net/en/2015/10/co...m-diagnostics/
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
Удаленная работа с CRM и расширеный поиск ASheff Dynamics CRM: Разработка 64 04.06.2010 17:44
Ошибка бизнес-процесса Tarasov E Dynamics CRM: Разработка 9 18.02.2010 14:02
Не публикуется бизнес-процес Soulcar Dynamics CRM: Администрирование 6 04.02.2010 19:35
Inside Dynamics AX 4.0: Licensing and Configuration Blog bot DAX Blogs 0 31.10.2007 11:40
при построении перекрёстных ссылок выдаётся сообщение об ошибках mmmax DAX: Программирование 10 21.01.2005 12:42

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 13:05.