На 2016 в принципе все подготовлено и учетки созданы2016 поднят в отдельном лесе или существует рядом с 2019? Как вы учётки создавали? И что помешало подготовить новый 2019 вместо старого или донастроить существующий?
The ExternalPostmasterAddress parameter specifies the email address in the From header field of an external DSN message. The default value is blank ($null).
The default value means the external postmaster address is postmaster@DefaultAcceptedDomain in the following locations:
- On Hub Transport servers or the Transport service on Mailbox servers.
- On Edge Transport servers that are subscribed to the Exchange organization.
- In Exchange Online.
On Edge Transport servers that aren't subscribed to the Exchange organization, the default external postmaster email address is postmaster@.
To override the default behavior, you can specify an email address for the ExternalPostMasterAddress parameter.
на почтовый фильтр попадает письмо с пустым адресом отправителя, после чего автоматически блокируетсявидимо, так настроен почтовый фильтр - блокировать письма с пустыми отправителями без отправки DSN.
(irm $url)>$fнафига здесь перенаправление (redirection), если и irm (Invoke-RestMethod), и iwr (Invoke-WebRequest) умеют выводить в файл через -OutFile? В предыдущем вопросе про это писал...
irm bla-bla-bla | Out-File -Encoding UTF8...
Оказалось, что скачанный код почему-то сохранился в файл с кодировкой UTF-16 LEне знаю что и как у вас в системе настроено, но документация говорит следующее:
When you are writing to files, the redirection operators use UTF8NoBOM encoding. If the file has a different encoding, the output might not be formatted correctly. To write to files with a different encoding, use the Out-File cmdlet with its Encoding parameter.
Invoke-WebRequest -Uri 'https://github.com/Drovosek01/ReplaceHexPatcher/raw/refs/heads/main/core/v2/ReplaceHexBytesAll.ps1' -OutFile '%temp%\a.ps1'; %temp%\a.ps1 arg1 arg2 arg3
/bin/bash -c "curl -fsSL -o /tmp/a.sh https://raw.githubusercontent.com/Homebrew/install... && chmod 777 /tmp/a.sh && /tmp/a.sh arg1 arg2 arg3"делает ровно то же самое...
для соединения с MS Exchange по его родному протоколунет таких...при этом документация по MAPI опубликована, но сторонние реалиции хромают
без протокола pop3/imap и web'апро какой веб речь: Outlook Web App (OWA) или Exchange Web Services (EWS)?
$ldapIdentifier = New-Object -TypeName System.DirectoryServices.Protocols.LdapDirectoryIdentifier(ServerFQDN,Port)
$ldapConnection = New-Object System.DirectoryServices.Protocols.LdapConnection($ldapIdentifier)
$ldapConnection.AuthType = [System.DirectoryServices.Protocols.AuthType]::Negotiate <<< тут можно поиграться с типами (Basic, Anonymous и т.д.)
$credential = New-Object System.Net.NetworkCredential("Admin Distinguished Name","Password")
$ldapConnection.Bind($credential)