Jump to content
Sign in to follow this  

SMS Client & Autoit

Recommended Posts

The following code works well in my Win XP with the SMS Client.

Could someone helpme to translate to Autoit v3?


If WScript.Arguments.Count <> 1 Then

WScript.Echo "************************************************"

WScript.Echo "Obtener el sitio al que está asignado el cte sms"

WScript.Echo "Uso:"

WScript.Echo "cscript getsite.vbs enombre_equipo_o_dir_ip "

WScript.Echo "************************************************"


End If

strComputer = WScript.Arguments.Item(0)

Set smsClient = GetObject("winmgmts://" & strComputer & "/root/ccm:SMS_Client")

Set res1 = smsClient.ExecMethod_("GetAssignedSite")

wscript.echo strComputer & " current_site: " & res1.sSiteCode

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...