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 check the options of a site are correct.
This function enables you to check the options of a site are correct.
NAME
Confirm-AADSite
SYNOPSIS
Confirms the values provided match the configured site settings
SYNTAX
Confirm-AADSite [-Identity] [[-SiteLinks]] [[-description] ] [[-location] ] [ ]
DESCRIPTION
This function allows you to validate the settings of an AD Site.
You can supply any combination of sitelinks, description or location 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.
-SiteLinks
Optional - The sitelinks of the site you want to confirm
Accepts 1 or more sitelinks, comma separated.
Position 1.
-description
Optional - The description of the site you want to confirm
Position 2.
-location
Optional - The location of the site you want to confirm
Position 3.
-------------------------- EXAMPLE 1 --------------------------
Simple usage
confirm-AADSite -Identity mainsite1 -Sitelinks "sitelink 1" -location "au/syd/office1" -description "Site description"
-------------------------- EXAMPLE 2 --------------------------
Simple usage - using positional parameters. Also, using multiple sitelinks.
confirm-AADSite Sitename "sitelink 1,sitelink 2" "au/syd/office1" "Site description"
-------------------------- EXAMPLE 3 --------------------------
Simple usage - only supply one value to check
confirm-AADSite -identity Sitename -location "au/syd/office1"
Comments
Post a Comment