The blog

140 tutorials and war stories on homelabs, Windows Server, Microsoft 365, networking and security. Searchable, tagged, no pagination maze.

Windows Server Feb 17, 2023 2 min read

Upgrading A Server 2012 R2 Domain Controller To Server 2019!

In-place upgrade of a Server 2012 R2 domain controller to Server 2019: run adprep /forestprep and /domainprep first and check the supported upgrade paths.

Windows Server Feb 17, 2023 1 min read

Uninstall Azure AD Connect

Uninstall Azure AD Connect after a full cloud migration: disable the sync scheduler, turn off DirSync with Set-MsolDirSyncEnabled, then remove it.

Entra ID & Intune · Microsoft 365 Feb 16, 2023 1 min read

Autodiscover Ignores Exchange Online? Check the Registry

Outlook asks for Office 365 credentials while the mailbox is still on Exchange on-premises: set ExcludeExplicitO365Endpoint under the Autodiscover key.

Entra ID & Intune Feb 16, 2023 1 min read

Configure team site libraries to sync automatically

Make SharePoint team site libraries sync automatically in OneDrive: copy the library ID, decode it with UnescapeDataString and set TenantAutoMount.

  • Windows Server Feb 10, 2023 1 min read

    Upgrade Domain Controllers to a Newer Windows Server

    Run adprep /forestprep and adprep /domainprep /gpprep before an in-place domain controller upgrade, with the supported paths from Server 2008 to 2022.

    Scripts Feb 5, 2023 3 min read

    Create a vlan using the Unifi API!

    Python script that creates multiple VLANs on a UniFi site through the controller API from a list of VLAN IDs and names.

    Scripts Feb 5, 2023 3 min read

    Create a new Unifi Site Unifi using the API!

    Python script that calls the UniFi controller API to create a new site with two SSIDs and a VLAN per SSID. Fill in your controller URL and credentials.

    Entra ID & Intune Jan 26, 2023 15 min read

    AAD Connect / Cloud Sync with Existing Cloud Users

    Avoid duplicate users when linking an existing Office 365 tenant to AD Connect: scripts to match users, sync proxyAddresses and set ImmutableIDs.

    Windows Server Jan 23, 2023 2 min read

    Server 2022 - Remote Desktop Services - Part 6 Remote App

    Part 6 of the Server 2022 RDS series: add a second Session Host and configure it as a RemoteApp server so users run applications without a local install.

    Windows Server Jan 20, 2023 1 min read

    FSLogix - Service group policy client prevents login

    Fix the FSLogix 'Group Policy Client service failed the sign-in' error: find the user's SID and set RefCount to 0 under ProfileService\References.