Home
Microsoft 365
Linux
Windows
Powershell
Cloud Computing
    Citrix Xendesktop
    Citrix XenApp
Useful links
About
  • Home
  • Microsoft 365
  • Linux
  • Windows
  • Powershell
  • Cloud Computing
    • Citrix Xendesktop
    • Citrix XenApp
  • Useful links
  • About
ajni.IT -
Azure•Cloud Computing•Windows Server

Cannot Entra ID Join / Azure AD Join Computer error 8018000a

October 16, 2024 by AJNI No Comments

Having issue Azure AD joining a Windows 10 or 11 computer and getting error 8018000a? This script might help you. It deletes all keys except Context under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Enrollments

$EnrollmentsPath = “HKLM:\SOFTWARE\Microsoft\Enrollments\”
$Enrollments = Get-ChildItem -Path $EnrollmentsPath
$DiscoveryServerFullUrls = @(“https://wip.mam.manage.microsoft.com/Enroll”)
Foreach ($Enrollment in $Enrollments) {
$EnrollmentObject = Get-ItemProperty Registry::$Enrollment
if ($EnrollmentObject.”DiscoveryServiceFullURL” -in $DiscoveryServerFullUrls ) {
$EnrollmentPath = $EnrollmentsPath + $EnrollmentObject.”PSChildName”
Remove-Item -Path $EnrollmentPath -Recurse
& “C:\Windows\System32\deviceenroller.exe /c /AutoEnrollMDM”
}
}

References:

https://jocha.se/blog/tech/azure-ad-mdm-intune-error-8018000a

Reading time: 1 min
Azure•Cloud Computing•Windows Server

Exchange Online Restore a deleted User with Entra Connect/Sync

October 9, 2024 by AJNI No Comments

If you have deleted a user in Exchange Online that is synced from onprem and you need to restore it, you might not want to re-sync the local user. In that case you can restore the deleted user directly in Exchange Online and make a cloud only user.

Get the deleted mailbox by name and Exchange GUI:

Get-Mailbox -SoftDeletedMailbox | Select-Object Name,ExchangeGuid

Create a new cloud only user or shared mailbox and run this command:

Get-Mailbox -Identity <NameOrAliasOfNewTargetMailbox> | Format-List ExchangeGuid

Restore the deleted mailbox/user into the newly created cloud user:

New-MailboxRestoreRequest -SourceMailbox <SoftDeletedMailboxGUID> -TargetMailbox <NewTargetMailboxGUID> –AllowLegacyDNMismatch

References:

https://learn.microsoft.com/en-us/exchange/recipients-in-exchange-online/delete-or-restore-mailboxes

Reading time: 1 min
Cloud Computing•Microsoft 365•Powershell

Outlook 365 Online Meetings by default

April 11, 2024 by AJNI No Comments

With the newer versions of Outlook 365, when creating a new invitation, a Teams Call link is automatically added to every meeting, which might not be wanted by some customers. Here is a quick way to disable it for the whole tenant:

Connect-ExchangeOnline

Set-OrganizationConfig -OnlineMeetingsByDefaultEnabled $false

To check out if the settings has changed:

Get-OrganizationConfig | select OnlineMeetingsByDefaultEnabled

Reading time: 1 min
Microsoft 365•Windows Client OS

Microsoft Endpoint Manager / Intune Registry Import quirks with 32 Bit Apps

March 19, 2024 by AJNI No Comments

Microsoft Intune or Endpoint Manager is awesome but also a pain if something does not work as expected. For example, if you create a package that simply imports a reg file, it will import the keys under SOFTWARE\WOW6432Node (WOW or SysWoW means Windows32OnWindows64). This is normal behaviour because Microsoft Intune Extension runs as a 32 Bit process on Windows. Therefore it does not know about the 64 Bit architecture.

So the solution is to run the reg command with this option. This will import the keys directly under SOFTWARE\…

reg import file.reg /reg:64

There are other approaches to this but my solution works and is the fastest in my opinion.

Reading time: 1 min
Microsoft 365

Exchange Online Messages sent from a shared mailbox are saved in the main mailbox instead of the shared mailbox

July 26, 2023 by AJNI No Comments

When an Exchange Online user has access to a shared mailbox through full access permissions, he can reply on behalf of that address. The problem is that, by default, emails sent as the shared mailbox are saved in the user’s main mailbox instead of the delegated mailbox. To fix that you have 2 options:

Option 1: Use Exchange Online Powershell

For emails sent as the shared mailbox (Full Access)

Set-Mailbox <shared mailbox> -MessageCopyForSentAsEnabled $true

For emails sent on behalf of the mailbox (Send On Behalf)

Set-Mailbox <shared mailbox> -MessageCopyForSendOnBehalfEnabled $true

Option 2: Registry

HKEY_CURRENT_USER\Software\Microsoft\Office\x.0\Outlook\Preferences

DWORD DelegateSentItemsStyle 1

Note! Outlook must be configured to run in cached mode, otherwise mails will get stuck in the Outbox.

References:

https://learn.microsoft.com/en-us/exchange/troubleshoot/user-and-shared-mailboxes/sent-mail-is-not-saved

Reading time: 1 min
Page 2 of 4«1234»

Like what you are reading? Buy me a coffee.

Tip Of the Day

  • Add Alias to Windows Fileserver (Server 2019, 2022, 2025)

    1 month ago

Keep in touch

Oh hi there!
It’s nice to meet you.

Sign up to receive awesome content in your inbox, every month.

Check your inbox or spam folder to confirm your subscription.

Categories

  • AI & Deep Learning (1)
  • Azure (20)
  • Citrix XenApp (21)
  • Citrix Xendesktop (13)
  • Cloud Computing (40)
  • Coding (1)
  • Hyper-V (10)
  • Linux (8)
  • Microsoft 365 (26)
  • Powershell (21)
  • Security (7)
  • VDI (16)
  • Virtualization (21)
  • VMware (12)
  • Windows (21)
  • Windows Client OS (39)
  • Windows Server (92)

Archives

  • May 2025
  • April 2025
  • February 2025
  • January 2025
  • December 2024
  • November 2024
  • October 2024
  • September 2024
  • July 2024
  • June 2024
  • May 2024
  • April 2024
  • March 2024
  • February 2024
  • January 2024
  • December 2023
  • September 2023
  • August 2023
  • July 2023
  • June 2023
  • April 2023
  • March 2023
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022
  • August 2022
  • July 2022
  • June 2022
  • May 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • June 2021
  • May 2021
  • April 2021
  • March 2021
  • February 2021
  • December 2020
  • November 2020
  • September 2020
  • August 2020
  • July 2020
  • June 2020
  • May 2020
  • April 2020
  • March 2020
  • February 2020
  • November 2019
  • October 2019
  • September 2019
  • August 2019
  • July 2019
  • June 2019
  • May 2019
  • April 2019
  • March 2019

ajni IT © 2019