Sign in to follow this  
Followers 0
Validus

SMS Client & Autoit

1 post in this topic

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

Could someone helpme to translate to Autoit v3?

Thanks.

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 "************************************************"

Wscript.Quit

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  
Followers 0