Jump to content


  • 0
RonR

Get IP Subnet info from SMS 2003 Advanced Client

Question

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?

 

Thanks.

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

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
MsgBox(0,"Properties",$objSubnet)
EndIf
Next

 

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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.