Sign in to follow this  
Followers 0
peopleman

Script to Set Configuration Manager Site Code

4 posts in this topic

I am trying to get/convert this vbs script into autoit. Any suggestions?

set oSMSClient = CreateObject("Microsoft.SMS.Client")

oSMSClient.EnableAutoAssignment 1

Share this post


Link to post
Share on other sites



I'm pretty useless with this stuff, but I'll have a go.

$oSMSClient = ObjCreate("Microsoft.SMS.Client")
If Not IsObj($oSMSClient) Then
    MsgBox(0,"Error","Not Created")
    Exit
EndIf

$oSMSClient.EnableAutoAssignment(1)

AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

Share this post


Link to post
Share on other sites

Nope, you are not useless at all! Thanks. I was real close - I think that will work.

I'm pretty useless with this stuff, but I'll have a go.

$oSMSClient = ObjCreate("Microsoft.SMS.Client")
If Not IsObj($oSMSClient) Then
    MsgBox(0,"Error","Not Created")
    Exit
EndIf

$oSMSClient.EnableAutoAssignment(1)

Share this post


Link to post
Share on other sites

Ok, still doesn't work. Trying to get Configuration Manager to Auto the Site Code. I can get it to work in the vbs, but can't figure out how to get it to work with autoit. Any other suggestions?

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