Quantcast
Channel: Directory Services forum
Viewing all articles
Browse latest Browse all 31638

Bulk Subnet Deletion

$
0
0

Dear All,

I have 1 VB script to delete 1 subnet 

strSubnetCN = "cn=192.168.1.0/26"    Set objRootDSE = GetObject("LDAP://RootDSE")  strConfigurationNC = objRootDSE.Get("configurationNamingContext")  strSubnetsContainer = "LDAP://cn=Subnets,cn=Sites," & strConfigurationNC    Set objSubnetsContainer = GetObject(strSubnetsContainer)  objSubnetsContainer.Delete "subnet", strSubnetCN 

What if i hvae 1000 subnet need to be delete.

Kinldy help me into this...


Viewing all articles
Browse latest Browse all 31638

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>