Skip to main content

Posts

Showing posts with the label Remove-AADsubnet

AADSites - Remove-AADsubnet Syntax

This function is part of my AADSites module, which can be downloaded here .  For more info on the module see here . As subnets do not have any lower dependencies, Remove-AADsubnet has only one option and that is to use -confirm:$false to suppress the confirm prompt   NAME Remove-AADsubnet SYNOPSIS Removes the AD subnet object that matches the name supplied SYNTAX Remove-AADsubnet [-Identity] [[-confirm] ] [ ] DESCRIPTION Removes the AD subnet object, if one exists, that matches the name given Returns True if the the site has been removed, False if not. PARAMETERS -Identity Mandatory - The name of the object you want to remove. Position 0. -confirm Optional - Set to false if you want to remove the subnet without being prompted Position 1.   -------------------------- EXAMPLE 1 -------------------------- Simple usage PS C:\> remove-AADSubnet -identity Sitelinkname -------------------------- EXAMPLE 2 ---...