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

Share a Microsoft 365 room mailbox with the web

October 11, 2021 by AJNI No Comments

If you need make a room mailbox public, for example for a public event, these few PowerShell commands will help you:

First, connect to Exchange Online with your tenant admin:

Connect-ExchangeOnline

Make the calendar public and make the calendar entries visible to everyone:

Set-MailboxCalendarFolder publicRoomMailbox:\Calendar -PublishEnabled $true

Set-MailboxCalendarFolder publicRoomMailbox:\Calendar -Detaillevel Full

Show the HTML and iCalendar URL:

Get-MailboxCalendarFolder publicRoomMailbox:\Calendar | fl published*

The URLs can be shared with anyone or the HTML URL could be embedded on a website as part of an iFrame.

Reading time: 1 min

Convert synced Microsoft 365 mailbox into a cloud mailbox

September 8, 2021 by AJNI No Comments

If you need to change a synced AD account with an Exchange Online mailbox into a cloud-only user, these are the steps you need to take:

Move the user to an OU that is not synced by AD Connect and run a delta sync on the AD Connect server (or wait for 30 minutes):

Start-ADSyncSyncCycle -PolicyType Delta

The mailbox is now in the "Soft deleted" state, which means that it is deleted but can be restored within 30 days. To view the soft deleted mailbox run this command:

Connect-ExchangeOnline

Get-Mailbox -SoftDeletedMailbox user@ajni.it | fl guid

Now link the deleted mailbox with the cloud-only user. The cloud-only user has already been created in my case. You will need to insert the user's password in order to proceed.

New-Mailbox -InactiveMailbox 7fb16ffd-cf3a-42ef-a9d3-e0293f5ef6c2 -Alias cloudOnlyUser -MicrosoftOnlineServicesID cloudOnlyUser@ajni.onmicrosoft.com

Afterwards you can either assign a license to the user or convert that mailbox into a shared mailbox which does not need a license.

Reading time: 1 min

Microsoft 365 Send email from Alias

August 11, 2021 by AJNI No Comments

Normally, with an Office 365 mailbox, you can only send mails with the primary email address. Sending from aliases was not allowed. Microsoft recently rolled out this feature which can be enabled through Exchange Online PowerShell:

Connect-ExchangeOnline

To view the current settings:

Get-OrganizationConfig | fl SendFromAlias*

To enable the feature:

Set-OrganizationConfig -SendFromAliasEnabled $true

To view the settings again:

Get-OrganizationConfig | fl SendFromAlias*

References:

https://lazyadmin.nl/office-365/send-from-alias/

Reading time: 1 min

AD Group Membership into a CSV/Excel

February 14, 2021 by AJNI No Comments

With this awesome script, you can read Active Directory group membership and convert that information into a CSV file, which can be imported in Microsoft Excel.

The file will be saved inside C:\Temp. The result looks something like this (I'm no Excel wizard):

https://github.com/ajnik/AD-Group-Membership-to-Excel/blob/main/AD-Groups-To-CSV.ps1

Note: Not my script. Check credits.

Reading time: 1 min

Reset Computer Secure Channel of a Domain Computer with one PowerShell command

November 14, 2020 by AJNI No Comments

You probably have stumbled upon this common problem: When logging into a Domain Computer with a Domain user, this error appears: The trust relationship between this workstation and the primary domain failed.

What does it mean? Well, it basically means that the Domain Computer cannot authenticate against Active Directory, because the Computer Account password on the workstation is not valid anymore (this can occur when using Sytem Restore or when restoring from a backup).

How do you solve this issue? Pretty easy. Just remove the computer from the Domain and re-join. That works, but there is a cleaner and faster solution with one line of PowerShell code:

Test-ComputerSecureChannel -Repair -Credential (Get-Credential)

You will need to enter domain user credentials that can create or modify computer accounts in the Active Directory Domain.

You can check if the password of the Domain computer changed by viewing the attribute pwLastSet in the Attribute Editor.

Reading time: 1 min
Page 1 of 41234»

Tip Of the Day

  • Printer Redirection on Citrix Workspace for Mac OS not working

    3 months ago

Keep in touch

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

Sign up to receive my awesome blog posts in your inbox, every week.

Check your inbox or spam folder to confirm your subscription.

Recent Posts

  • Printer Redirection on Citrix Workspace for Mac OS not working
  • Migrate Citrix Virtual Apps and Desktops database to new server
  • Remove printers or printer drivers in Windows 10/11 or Windows Server
  • Windows Server 2012 Domain Controller Reboot Loop
  • Update domain computer group membership without rebooting a client

Categories

  • Azure (12)
  • Citrix XenApp (11)
  • Citrix Xendesktop (7)
  • Cloud Computing (24)
  • Coding (1)
  • Hyper-V (8)
  • Linux (8)
  • Microsoft 365 (12)
  • Powershell (12)
  • Security (5)
  • VDI (7)
  • Virtualization (15)
  • VMware (7)
  • Windows (19)
  • Windows Client OS (19)
  • Windows Server (45)

Archives

  • 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