Skip to main content

AADSites - New-AADSubnet Syntax

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 create a new AD subnet.  Options you can set on create include the site that the subnet is a member of, the location field and the description.
NAME




New-AADSubnet


SYNOPSIS


Creates a new AD subnet object


SYNTAX


New-AADSubnet [-name] [-Site] [[-Description] ] [[-Location] ] []


DESCRIPTION


This function enables you to create a new AD Subnet.


You can supply any combination of site, description or location to set


PARAMETERS


-name
Mandatory - The name of the object you want to create.
Position 0.


-Site
Mandatory - The site that the subnet belongs to.
Position 1.
-Description
Optional - The description of the subnet you want to set
Position 2.
-Location
Optional - The location of the subnet you want to set
Position 3.


-------------------------- EXAMPLE 1 --------------------------
Simple usage


new-AADSubnet -name 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.


new-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 change


new-AADSubnet -name 192.168.30.0/24 -location "au/syd/ho1/lvl1"

Comments