Thursday, September 1, 2011

AADSites - Set-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 allows you to change the description and location attributes of a subnet and also the site it is associated with.
NAME



Set-AADSubnet

SYNOPSIS


Sets the values of an AD subnet object


SYNTAX


Set-AADSubnet [-Identity] [[-description] ] [[-location] ] [[-site] ] []


DESCRIPTION


This function allows you to set the values of an AD Subnet.


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

PARAMETERS


-Identity
Mandatory - The name of the object you want to set.


Position 0.


-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.


-site


Optional - The site that the subnet belongs to.


Position 1.


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

PS C:\> set-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.
PS C:\> set-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
PS C:\> set-AADSubnet -Identity 192.168.30.0/24 -location "au/syd/ho1/lvl1"

0 comments:

Post a Comment