This function is part of my AADSites module, which can be downloaded here. For more info on the module see here.
This function allows you to update the option of sitelink. These include the sites that are members of the sitelink, the cost, the replication frequency and the description.
This function allows you to update the option of sitelink. These include the sites that are members of the sitelink, the cost, the replication frequency and the description.
NAME
Set-AADSitelink
SYNOPSIS
Sets the values of an AD sitelink object
SYNTAX
Set-AADSitelink [-Identity] [[-Sites]] [[-cost] ] [[-frequency] ] [[-description] ] [ ]
DESCRIPTION
This function allows you to set the values of an AD Sitelink.
You can supply any combination of sites, cost, frequency or description to set
PARAMETERS
-Identity
Mandatory - The name of the object you want to change.
Position 0.
-Sites
Optional - The sites of the sitelink you want to set.
Accepts 1 or more sites, comma separated.
Position 1.
-cost
Optional - The cost of the sitelink you want to set
Position 2.
-frequency
Optional - The frequency of replication the sitelink (in minutes) you want to set
Position 3.
-description
Optional - The description of the sitelink you want to set
Position 4.
-------------------------- EXAMPLE 1 --------------------------
Simple usage
PS C:\> set-AADSitelink -Identity sitelinkname -Sites "testsite1,testsite2" -cost 50 -frequency 30 -description "Main sitelink"
-------------------------- EXAMPLE 2 --------------------------
Simple usage - using positional parameters.
PS C:\> set-AADSitelink sitelinkname "testsite1,testsite2" 50 30 "Main sitelink"
-------------------------- EXAMPLE 3 --------------------------
Simple usage - only supply two values to set
PS C:\> set-AADSitelink -identity sitelinkname -cost 50 -frequency 30
Comments
Post a Comment