Monday, October 5, 2015

Exchange 2013. После перевода пользователя на Exchange 2013 не работает Exchange ActiveSync

Ситуация.
Мигрировали пользовательский почтовый ящик с Exchange 2007 на Exchange 2013. Пользователь пробует синхронизировать почту на мобильном устройстве и у него ничего не получается. Выдается ошибка.
Решение.
Grant  inherited permission to domain\Exchange Servers. To do that, please follow these steps:
1. Run Active Directory Users and Computers.
2. Click on View and Select Advanced Features
3. Select a mailbox that isn’t working with Active Sync, double click on the account.
4. Click the Security Tab and then the Advanced button.
5. Highlight Exchange Servers, and check the Include inheritable permissions from this object's parent.
6. Click OK to save the settings.
7. попробовать синхронизацию снова.

Exchange 2013. Зависла задача миграции почтового ящика

​Проблема: задача по миграции почтового ящика висит в состоянии Синхронизация. И висит так очень долго.
Решение.
  1. Остановить процесс миграции
    1. Перезапустить службы
      Microsoft Exchange Mailbox Replication
      Microsoft Exchange Search
      Microsoft Exchange Search Host Controller
    2. Если не помогло
      Пресоздать индексы для проблемной почтовой базы
      • остановить службы
        Microsoft Exchange Search
        Microsoft Exchange Search Host Controller
      • переименовать папку индекса <GUID>.Single в что-то типа <GUID>.Single_OLD. Находится в каталоге рядом с почтовой базой.
      • запустить службы
        Microsoft Exchange Search
        Microsoft Exchange Search Host Controller
      • проверить статус индексирования базы
    3. Если не помогло
      Есть статья в Microsoft KB Content Index status of all or most of the mailbox databases in the environment shows "Failed"
      Еще
      есть полезная статья Event ID 1009 Content Index status of the mailbox databases “Failed”
  2. Запустить миграцию еще раз

Tuesday, November 27, 2012

How-to access to Acces or Excel file from MS SQL Server 64bit

  1. Install Microsoft Access Database Engine 2010 64bit and Service Pack 1 for Microsoft Access Database Engine 2010 64bit
  2. Run this SQL command
    exec master..xp_enum_oledb_providers
    In result you will see "Microsoft.ACE.OLEDB.12.0"
  3. Set SQL Server parameter "ad hoc distributed queries" to 1 with this script
    sp_configure 'show advanced options', 1;
    go
    reconfigure;
    go
    sp_configure 'Ad Hoc Distributed Queries', 1;
    go
    reconfigure;
    go
    You can read about parameter "ad hoc distributed queries" in this article ad hoc distributed queries Server Configuration Option
  4. If you get an error "Ad hoc update to system catalogs is not supported." run this SQL command
    sp_configure 'allow updates', 0;
    go
    reconfigure;
    go
  5. Set options "AllowInProcess" and "DynamicParameters" for  Microsoft.ACE.OLEDB.12.0  provider to 1. Run this SQL script
    use [master]
    go
    exec master . dbo. sp_MSset_oledb_prop N'Microsoft.ACE.OLEDB.12.0' , N'AllowInProcess' , 1
    go
    exec master . dbo. sp_MSset_oledb_prop N'Microsoft.ACE.OLEDB.12.0' , N'DynamicParameters' , 1
    go
  6. MDB file should be in local folder in SQL Server.
  7. After all you can use this SQL command like this
    SELECT CustomerID, CompanyName
          FROM OPENROWSET('Microsoft.Ace.OLEDB.12.0',
                'C:\Program Files\Microsoft Office\OFFICE11\SAMPLES\Northwind.mdb';
                'admin';'',Customers)

Tuesday, November 6, 2012

How to update QLogic HBA via UEFI shell

  1. Download Full UEFI Shell for QLogic (for IBM see this link Fibre Channel Adapters for IBM BladeCenter Supported Software)
  2. Download Multiboot Flash Image
  3. Format USB flash drive.
  4. Copy all files from Multiboot Flash Image and Full UEFI Shell to USB stick.
  5. Connect USB flash drive to server.
  6. Power on server and go to UEFI settings (press F1).
  7. Go to Boot Manager -> Boot From File
  8. Select the USB device from the list where your files reside. 
  9. Navigate shell_full.efi
  10. The system will now be at the UEFI shell prompt
    SHELL>
    run the map -b command to display the file system mapping.
  11. Locate the USB device and change to that device. For example, if the USB device is mapped to fs0 after the map -b, run:
    fs0: <enter>
    The UEFI shell prompt should change as follows:
    fs0:\>
  12. If your Multiboot package did include the EfiUtilx64.efi: Run the update.nsh script to update the Qlogic RISC Firmware.
    For example assuming the Qlogic files are in fs0:\qlogic\
    fs0:\> cd qlogic (to change to the directory on the USB drive that contains the efi flash file)
    fs0:\> update.nsh (Update.nsh will call EfiUtilx64.efi to update all of the HBAs.)
  13. Reboot the system to make the changes take effect.
PS.
Thanks to http://communities.vmware.com/message/2053704#2053704

Thursday, May 17, 2012

Каталог всех стандартных фигур Microsoft Visio в одном файле pdf

Нашел замечательный PDF со всеми стандартными фигурами из MS Visio 2010.
Ссылка где нашел: Каталог всех стандартных фигур Microsoft Visio в одном файле pdf
Ссылка на сам PDF: Visio Shapes Catalog

Как программно подключиться к SharePoint сайту с неправильным сертификатом. Обход ошибки: Could not establish trust relationship for the SSL/TLS secure channel.

Нашел решение здесь.
В кратце схема такая:
  1. В программе создаем новый метод
    using System.Net;
    using System.Net.Security;
    using System.Security.Cryptography.X509Certificates;

    /// <summary>
    /// solution for exception
    /// System.Net.WebException:
    /// The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. ---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure.
    /// </summary>
    public static void BypassCertificateError()
    {
      ServicePointManager.ServerCertificateValidationCallback += delegate(Object sender1,X509Certificate certificate,X509Chain chain,SslPolicyErrors sslPolicyErrors)
    {
    return true;
    };
    }
  2. Перед подключением к сайту вызываем этот метод:
    private void buttonStart_Click(object sender, EventArgs e)
    {
    string siteURL = "https://cms.flyuia.com/it";
    using (ClientContext siteCont = new ClientContext(siteURL))
    {
    siteCont.Credentials = System.Net.CredentialCache.DefaultCredentials;
    //Здесь свой код
    BypassCertificateError();
    siteCont.ExecuteQuery();
    }
    }

Thursday, February 2, 2012

Установка TSM Administration Center на SLES

  1. Ставим SLES, настраиваем сеть и обновляем ее.
  2. Заходим с правами рута и делаем:
    • Устанавливаем пакет openmotif-libs-32bit с диска SLE-11-SP1-SDK-DVD-x86_64-GM-DVD1.iso
      rpm -ihv openmotif-libs-32bit-2.3.1-3.13.x86_64.rpm
    • Ставим пакеты compat-32bit и openmotif22-libs-32bit
      yast2 -i compat-32bit &&
      yast2 -i openmotif22-libs-32bit
    • Создаем структуру папок и пользователя для установки TSM Admin Center
      mkdir /usr/ibm &&
      mkdir /var/ibm &&
      mkdir /var/tivoli &&
      mkdir -p /opt/IBM/tivoli &&
      useradd -d /home/tsmadmc -m -s /bin/bash tsmadmc &&
      passwd tsmadmc &&
      chown -R tsmadmc /usr/ibm &&
      chown -R tsmadmc /var/ibm &&
      chown -R tsmadmc /var/tivoli &&
      chown -R tsmadmc /opt/IBM/tivoli
  3. Заходим под созданным пользователем tsmadmc, запукаем prereqcheck.bin и смотрим, чтобы не было ошибок.
  4. Заходим под созданным пользователем tsmadmc и устанавливаем TSM Admin Center
    ./install.bin
    • Choose Locale: English
    • Select Installation Folder: оставляем по-умолчанию
    • Tivoli Common Reporting: Yes, install Tivoli Common Reporting
    • IBM Cognos Content database: 1527 (default)
    • IBM Tivoli Storage Manager Client Performance Monitor configuration:

      • Port Number: 5129
      • Time Interval (Hours): 24
      • Operation Save Time (Days): 14
    • WebSphere Information:
      • User ID: tipadmin
      • Password: <tipadmin_password>
      • Port Number: 16310