This function is part of my AADSites module, which can be downloaded here. For more info on the module see here.
This function enables you to confirm the options of a sitelink are correct.
This function enables you to confirm the options of a sitelink are correct.
NAME
Confirm-AADSitelink
SYNOPSIS
Confirms the values provided match the configured sitelink settings
SYNTAX
Confirm-AADSitelink [-Identity] [[-Sites]] [[-cost] ] [[-frequency] ] [[-description] ] [ ]
DESCRIPTION
This function allows you to validate the settings of an AD Sitelink.
You can supply any combination of sites, cost, frequency or description to check
and the function will return true or false whether the values match or not.
PARAMETERS
-Identity
Mandatory - The name of the object you want to confirm.
Position 0.
-Sites
Optional - The sites of the sitelink you want to confirm.
Accepts 1 or more sites, comma separated.
Position 1.
-cost
Optional - The cost of the sitelink you want to confirm
Position 2.
-frequency
Optional - The frequency of replication the sitelink (in minutes) you want to confirm
Position 3.
-description
Optional - The description of the sitelink you want to confirm
Position 4.
-------------------------- EXAMPLE 1 --------------------------
Simple usage
confirm-AADSitelink -Identity sitelinkname -Sites "testsite1,testsite2" -cost 50 -frequency 30 -description "Main sitelink"
-------------------------- EXAMPLE 2 --------------------------
Simple usage - using positional parameters.
confirm-AADSitelink sitelinkname "testsite1,testsite2" 50 30 "Main sitelink"
-------------------------- EXAMPLE 3 --------------------------
Simple usage - only supply two values to check
confirm-AADSitelink -identity sitelinkname -cost 50 -frequency 30
Comments
Post a Comment