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 subnet are correct.
This function enables you to confirm the options of a subnet are correct.
NAME
Confirm-AADSubnet
SYNOPSIS
Confirms the values provided match the configured subnet settings
SYNTAX
Confirm-AADSubnet [-Identity] [[-description]] [[-location] ] [[-site] ] [ ]
DESCRIPTION
This function allows you to validate the settings of an AD Subnet.
You can supply any combination of site, 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.
-description
Optional - The description of the subnet you want to confirm
Position 2.
-location
Optional - The location of the subnet you want to confirm
Position 3.
-site
Optional - The site that the subnet belongs to.
Position 1.
-------------------------- EXAMPLE 1 --------------------------
Simple usage
confirm-AADSubnet -Identity 192.168.30.0/24 -Site "testsite1" -location "au/syd/ho1/lvl1" -description "Head office level 1 subnet"
-------------------------- EXAMPLE 2 --------------------------
Simple usage - using positional parameters.
confirm-AADSubnet 192.168.30.0/24 "testsite1" "au/syd/ho1/lvl1" "Head office level 1 subnet"
-------------------------- EXAMPLE 3 --------------------------
Simple usage - only supply one value to confirm
confirm-AADSubnet -Identity 192.168.30.0/24 -location "au/syd/ho1/lvl1"
Comments
Post a Comment