Changing SMS Site Code

This topic contains 3 replies, has 2 voices, and was last updated by Avatar manash 12 years, 4 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • Avatar
    manash
    Member
    #124627

    Hi Everyone,

    Is there a way to change the SMS Site Code of the clients from SMS console?

    Thank you!

    Avatar
    yanivfel
    Member
    #221478

    Re: Changing SMS Site Code

    techinicly no, since the SMS console itself does not give you that option (only during client deployment.

    what you can do, is to use 3rd party addons (this might help: http://www.myitforum.com/downloads/default.asp?w=3&se=SMS+2003) that extend the console capabilites to change client settings… but…
    there is still no way to change the client site code manualy.

    I do not recommed working with manual site settings either way, but with automatic site discovery by the defind site bounderies. if you work this way, you can change the site code for the site, re-configure the bounderies for the new site and then force re-discovery on the clients.

    Avatar
    manash
    Member
    #281941

    Re: Changing SMS Site Code

    Thank you Sir for the help.

    Avatar
    manash
    Member
    #281942

    Re: Changing SMS Site Code

    here what i got. save this as .VBS

    sSiteCode = “NAME of YOU SMS SITE”
    sMachine = “.”
    set oCCMNamespace = GetObject(“winmgmts://” & sMachine & “/root/ccm”)
    Set oInstance = oCCMNamespace.Get(“SMS_Client”)
    set oParams = oInstance.Methods_(“SetAssignedSite”).inParameters.SpawnInstance_()
    oParams.sSiteCode = sSiteCode
    oCCMNamespace.ExecMethod “SMS_Client”, “SetAssignedSite”, oParams

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.