The blog
140 tutorials and war stories on homelabs, Windows Server, Microsoft 365, networking and security. Searchable, tagged, no pagination maze.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.