Jump to content
Sign in to follow this  
peopleman

Script to Set Configuration Manager Site Code

Recommended Posts

peopleman

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
JohnOne

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
peopleman

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
peopleman

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  

×

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.