Monday, September 12, 2011

AADSites - Get-AADServicesObject Syntax

This function is part of my AADSites module, which can be downloaded here.  For more info on the module see here.

This function returns a sites and services object with the specified name and type.
NAME


Get-AADServicesObject

SYNOPSIS

Returns an AD object that matches the name and type supplied

SYNTAX

Get-AADServicesObject [-Identity] [-Type] []

DESCRIPTION

Returns an AD object, if one exists, that matches the name and type.
Returns $null if nothing found

PARAMETERS

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

-Type
Mandatory - The type of the object to check.
Accepts site, subnet or sitelink.
Position 1.

-------------------------- EXAMPLE 1 --------------------------
Simple usage
get-AADServicesObject -identity Sitename -type Site
-------------------------- EXAMPLE 2 --------------------------
Simple usage
get-AADServicesObject -identity Sitelinkname -type Sitelink
-------------------------- EXAMPLE 3 --------------------------
Simple usage
get-AADServicesObject -identity 10.0.1.0/24 -type subnet

0 comments:

Post a Comment