Subnet_ops.vbs Example


subnet_op -l
lists the subnet information for the current computer.
subnet_op -a -n 1.0.0.0/8
adds the specified subnet object.
subnet_op -a -n 1.0.0.0/8 -p USA/MAIN/27
adds the specified subnet object and sets its location property to USA/MAIN/27.
subnet_op -a -n 1.0.0.0/8 -p USA/MAIN/27 -s Default-First-Site-Name
adds the specified subnet object, sets its location property to USA/MAIN/27, and sets the site name property to Default-First_Site-Name.
subnet_op -d -n 1.0.0.0/8
deletes the specified subnet object.
subnet_op -d -n all
deletes all subnet objects from the current domain.
subnet_op -c -i 157.59.16.32 -m 255.255.252.0
calculates the DS name of the specified IP address and subnet mask.