This function is part of my AADSites module, which can be downloaded here .  For more info on the module see here .    Add-AADSiteFromSitelink Adds the specified site to a site link.   NAME   Add-AADSiteToSitelink   SYNOPSIS    Add an AD site to a sitelink   SYNTAX    Add-AADSiteToSitelink [-Identity] [-sitelink] [ ]   DESCRIPTION    Add an AD site to a sitelink    returns true if successful and false if not.   PARAMETERS    -Identity  Mandatory - The name of the site you want to add.    Position 0.   -sitelink    Mandatory - The name of the sitelink to add the site to    Position 1.    -------------------------- EXAMPLE 1 --------------------------    Simple usage   PS C:\> Add-AADSiteToSitelink -identity Sitename -sitelink Sitelinkname  -------------------------- EXAMPLE 2 --------------------------   Simple usage - using positional parameters    PS C:\> Add-AADSiteToSitelink Sitename Sitelinkname
Powershell for Active Directory