Jump to content


Get IP Subnet info from SMS 2003 Advanced Client

Recommended Posts

I'm trying to build a script to check the assigned subnet of a PC for a software deployment. I know we can create subnet-based collections for deployments, but that's not an option in this case because of some other business rules regarding this deployment. Does anyone here know if there's a way to get the IP Subnet property from the System Management applet with VBScript, AutoIT, or something similar?



Share this post

Link to post
Share on other sites

Guess I just needed a little more time. :) . For anyone who's curious, this bit of code will get the SMS IPSubnet property with AutoIT:


$oCPAppletMgr = ObjCreate ("CPApplet.CPAppletMgr")
$oProps = $oCPAppletMgr.getClientProperties
$objSubnet = ''
For $oProp In $oProps
If $oProp.name = "IPSubnet" Then
$objSubnet = $oProp.value


A VBScript equivalent can be found on TechNet: http://technet.micro...y/cc180278.aspx

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now