среда, 10 декабря 2014 г.

MapiExceptionUnexpectedMailboxState: Unable to delete mailbox.

Служба репликации почтовых ящиков Microsoft Exchange завершила запрос 'company.local/MSK/Users/Производство/Старшие смены/Иванов Иван Иванович' (e1e166b1-97a4-4643-af84-a4247a529f7e) с предупреждениями.
Предупреждение. Не удалось очистить исходный почтовый ящик после перемещения.
Сведения об ошибке: MapiExceptionUnexpectedMailboxState: Unable to delete mailbox. (hr=0x80004005, ec=2634)


Нагуглено:
http://welcometoviktorp.wordpress.com/2013/08/

Решение:

Вывод всех почтовых ящиков помеченных как SoftDdelete в определенной базе:

Get-MailboxStatistics -Database «Database Name in Here» | Where-Object {$_.DisconnectDate -Notlike $NULL} | Format-Table DisplayName, DisconnectDate, MailboxGuid, DisconnectReason –Wrap

Удаление всех отключенных почтовых ящиков с пометкой SoftDelete в определенной базе:

$Mailboxes = Get-MailboxStatistics -Database «Database Name in Here» | where {$_.DisconnectReason -eq “SoftDeleted”}
$Mailboxes | foreach {Remove-StoreMailbox -Database $_.database -Identity $_.mailboxguid -MailboxState SoftDeleted}

Удаление выбранного почтового ящика в базе данных

Remove-StoreMailbox -database “Mailbox name in here” -identity “User Alias here” -MailboxState SoftDeleted

воскресенье, 7 декабря 2014 г.

How to export exchange 2003 (or older) mailbox over 2gb to pst


ExMerge не может экспортировать файл больше 2Gb. Плохо.
Через MS Outlook - нельзя множественный экспорт сделать. Плохо.
Альтернатива - DigiScope.
Надеюсь, поможет. Или есть какие то еще способы?

Использование exchange linked mailbox при миграции

regular to linked:
Set-User -id aaa -LinkedMasterAccount OLD\user -LinkedDomainController dc.old.local -LinkedCredential(get-credential)

Add-MailboxPermission -identity "aaa" -user "OLD\user" -AccessRights FullAccess -InheritanceType All

linked to regurlar:
Set-User -Identity aaa@new.ru -LinkedMasterAccount $null

!see mailbox permission too!
!enable user account aaa@new.ru too!

суббота, 6 декабря 2014 г.

Exchange owa/ecp - автоматический вход. Добавление узла в интрасеть через gpo.

На момент большой миграции надо сделать всем пользователям почту через owa. Чтобы пользователь входил в почту через браузер без ввода пароля надо поменять пару настроек:
В конфигурации сервера - клиентский доступ - owa и ecp изменить:
использовать проверку подлинности на основе форм - домен и имя пользователя
на
использовать один или несколько стандартных способов проверки подлинности - встроенная проверка подлинности windows.
перезапустить iis.
также, на всех клиентских компьютерах, в параметрах IE, в зоне "местная интрасеть" должен быть добавлен fdqn нашего сервера с owa и ecp.
А чтобы не пришлось бегать ручками, добавим https://myexchange.domain.local/owa в интранет через gpo: конфигурация пользователя - административные шаблоны - компоненты windows - internet explorer - панель управления браузером - вкладка безопасность - список назначений зоны для веб-сайтов.


Значения по номерам зон:
1 - интрасеть
2 - доверенные узлы
3 - зона интернет
4 - зона огрниченных узлов
Картинка тыкабельна.














источник 1
источник 2

среда, 3 декабря 2014 г.

Публикация / Перепубликация сервера лицензирования




Manually Publishing a License Server for Enterprise Discovery

Typical problems that cause the failure of publishing the TS License Server are:

    If during the installation of the License Server, Active Directory was down and the License Server was not published in the Catalog.
    If the License Server was installed in Enterprise mode, but without Enterprise Administrator Credentials, it will not be published in the Catalog.

In these cases, the License Server may need to be manually published. You may also have to create the TS-Enterprise-License-Server object if it does not yet exist in the Catalog Server.

Publishing a License Server

We can manually publish the Terminal Server License Server, using one of the following two methods,

Using "Active Directory Sites and Services":

    Open the "Active Directory Sites and Services" snapin; Start -> Programs -> Administrative tools -> "Active Directory Sites and Services"
    Select the Site in which you wish to publish the Terminal Server License Server
    Open the "TS-Enterprise-License-Server" Object.  If the "TS-Enterprise-License-Server" object is does not exist, you may have to create it. See below.
    Under the "Licensing Setting" tab click on the "Change" button
    Add the License Server machine name and click OK

Using ADSI Edit tool:

    Open the ADSI* Edit tool
    Select the "CN=Configuration" node
    Select the "CN=Sites"
    Open the node of the site where you wish to publish the License Server
    Open the "CN= TS-Enterprise-License-Server" Object in the right hand panel of the UI.  If the "CN=TS-Enterprise-License-Server" Object is not present use "Creating the "TS-Enterprise-License-Server" Object in the Catalog" to create the "TS-Enterprise-License-Server" Object
    Select the "siteServer" Attribute and click "Edit"
    Give the License Server machine name in the LDAP form (for example "CN=LSMachine,CN=Computers,DC=example,DC=com") and click "Add"

Creating the "TS-Enterprise-License-Server" Object in the Catalog

    Open ADSI Edit tool
    Select the "CN=Configuration" node
    Select the "CN=Sites" node
    Open the node of the site where you wish to create the "TS-Enterprise-License-Server" object.  If there is no such node then there is no License Server installed in "Enterprise mode" in that particular site
    Action -> New -> Object
    Select the "licensingSiteSettings" class
    Give the Value as "TS-Enterprise-License-Server"
    Click Finish



Manually Un-Publishing a License Server

Typical scenarios that may require manually un-publishing License Server:

    While the License Server was being uninstalled, Active Directory was down and License Server could not be un-published from the Catalog.
    If you uninstalled the License Server, but without Enterprise Administrator Credentials, in that case also License Server won't be Un-Published from the Catalog.
    If License Server machine is being moved from domain to workgroup, then License Server scope automatically changes to workgroup mode. It needs to be un-published manually from the Catalog.

In all of these cases, the entry that is left behind in the TS-Enterprise-License-Server object would cause the TS servers to still look for the License Server, even though the LS server may no longer be available or may have moved to a different network. This may lead problems in license discovery and cause the TS servers to not find the type of CAL needed for a particular user. Therefore, it is a good idea to keep the list as current as possible by manually un-publishing a removed License server from the list in the TS-Enterprise-License-Server object.

Un-Publishing  a  License Server 

We can manually Un-Publish Terminal Server License Server using ADSI Edit tool.

    Open ADSI Edit tool*
    Select the "CN=Configuration" node
    Again select the "CN=Sites"
    Open the node of the site, where one wishes to publish the License Server
    Open the "CN= TS-Enterprise-License-Server" Object in right hand panel of the UI
    Select "siteServer" Attribute and click "Edit"
    Select the License Server name under the heading "Value" and click "Remove"

Note that the "Active Directory Sites and Services" tool doesn't support removing an entry from a Catalog Server object.

White Paper on Terminal Server License Server is available at http://www.microsoft.com/windowsserver2003/techinfo/overview/termservlic.mspx

*ADSI Tool can be downloaded from

http://www.microsoft.com/downloads/details.aspx?FamilyId=49AE8576-9BB9-4126-9761-BA8011FABF38&displaylang=en

Licensing, Author: Ratnesh Yadav

среда, 26 ноября 2014 г.

Переименование контроллера 2008r2

netdom computername oldname.domain.local /add:newname.domain.local
проверить репликацию
посмотреть msDS-AdditionalDnsHostName в adsiedit
netdom computername oldname.domain.local /makeprimary:newname.domain.local
посмотреть msDS-AdditionalDnsHostName в adsiedit
перезагрузка
netdom computername newname.domain.local /remove:oldname.domain.local
проверит

источник

понедельник, 24 ноября 2014 г.

%temp%\1 %temp%\2 %temp%\SessionID

Отключается через:
Конф. компьютера - Административные шаблоны - Компоненты Windows - Службы удаленных рабочих столов - Узел сеансов удаленных рабочих столов - Временные папки.
Не использовать временные папки для сеанса = включено

воскресенье, 23 ноября 2014 г.

пятница, 21 ноября 2014 г.

вторник, 4 ноября 2014 г.

DD WRT. PPTP Server config.




Server IP и Client IP(s) - это, судя по всему, VPN-пул. Он НЕ должен пересекаться с локалкой.
Max Clients - да, максимальное число клиентов.
CHAP-Secrets - логин и пароль для пользаков. Вводятся в таком формате, да.
За остальным в гугл, там лучше и больше написано.

четверг, 30 октября 2014 г.

Kerio 8, IPSec VPN. Android.

Добавить новую VPN сеть
L2TP/IPSec PSK
Название сети: mycompany
Адрес сервера: 111.111.111.111
Имя пользователя: vpupkin
Пароль: password
Общий ключ IPSec: IPSecPublicKey

-------
Общий ключ VPN задается в настройках VPN (IPSec) сервера Kerio.

воскресенье, 19 октября 2014 г.

Заметка: изменение ip-адреса контроллера домена

Поправить сетевой конфиг всего, что ссылается на ip-адрес контроллера домена. Не забыть про сайты. Как контроллер оживет - сделать dcdiag /fix. Поудалять устаревшие записи в днс. Счастье.

пятница, 10 октября 2014 г.

Запуск 1С 7.7 на Windows 2008R2 + SQL 2005 | 2008R2 Server

Спасибо google.com и forum.ru-board.com
Заработало без замены системных библиотек, главное - не забывать про Wow6432Node в реестре. Взять можно тут
Но есть вариант лучше. Без замены системных файлов и библиотек 1С. Вот.

суббота, 27 сентября 2014 г.

Включить или выключить GUI, Windows Server 2012

Перенос Active Directory [ADDS] с 2008r2 на 2012r2

Текущий режим работы домена и леса: 2008R2 (См. домены и доверие: изменение режима работы леса и домена)

Вводим  домен еще один сервер на 2012R2. Повышаем его до контроллера домена. На нем же GC и DNS.

На любом из КД 2008R2 выполнить:
1. netdom query fsmo
Хозяин схемы                dc001.win.loc
Хозяин именования доменов   dc001.win.loc
PDC                         dc001.win.loc
Диспетчер пула RID          dc001.win.loc
Хозяин инфраструктуры       dc001.win.loc


2. Выполнить на dc001:
f:\support\adprep\adprep /forestprep
f:\support\adprep\adprep /domainprep

3. RID, PDC, Infrastructure - Передается через оснастку "Пользователи и компьютеры - хозяева операций)

4. Domain Naming - Через "домены и доверие" на 2012R2 - хозяин операций

5. Schema - на КД 2012R2 - regsvr32 schmmgmt.dll
Далее - Win+R -> mmc -> Добавить -> Схема Active Directory -> Изменить контроллер домена -> Хозяин операций -> Изменить


6. Проверить:
На 2012R2 -> netdom query fsmo
Хозяин схемы                dc002.win.loc
Хозяин именования доменов   dc002.win.loc
PDC                         dc002.win.loc
Диспетчер пула RID          dc002.win.loc
Хозяин инфраструктуры       dc002.win.loc


6. Понизить контроллер 2008R2.