Re: sms site client



you can use this to get the assigned site:

'http://myitforum.techtarget.com/articles/8/view.asp?id=6353
Set smsClient = CreateObject("Microsoft.SMS.Client")
WScript.Echo "Client is currently assigned to site " &
smsClient.GetAssignedSite




I belive this registry key will show correct info also:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\SMS\Mobile Client\AssignedSiteCode

"James" <jkklim@xxxxxxxxxxx> wrote in message
news:OEv9KkhqFHA.1788@xxxxxxxxxxxxxxxxxxxxxxx
> thks it works.
>
> Which registry shows it is assign a site, so that i can write a script to
> prove that it is discover ?
>
>
> "Greg Ramsey" <ramseyg@xxxxxxxxxxxxxxxxxxx> wrote in message
> news:upsXLuWqFHA.2276@xxxxxxxxxxxxxxxxxxxxxxx
>> For creating your image, are you following Appendix I in the Scenarios
>> and
>> Procedures guide (ccmdelcert.exe, etc)?
>>
>> You can use this script to rediscover the site:
>>
>>
> 'http://msdn.microsoft.com/library/default.asp?url=/library/en-us/smssdk03/h
> h/sms/smsref30_SmsClient_ReAssignSite.asp
>>
>> Set smsClient = CreateObject("Microsoft.SMS.Client")
>> 'Use this to force the client to "rediscover" its site.
>> WScript.Echo "Client is now assigned to " & _
>> smsClient.ReAssignSite
>>
>>
>>
>>
>>
>> "James" <jkklim@xxxxxxxxxxx> wrote in message
>> news:%23aa187SqFHA.616@xxxxxxxxxxxxxxxxxxxxxxx
>> > When i m doing ghost image of xp, the sms site client was Discover
>> > successfully. (control panel, sms management applet, advanced tab, sms
>> > site)
>> > and sms client software was installed.
>> >
>> > When i rollout the ghost image of xp to multiple machines, sms console
>> > will
>> > detect this machine is in the AD and then report it as client not
>> > installed.
>> >
>> > i've to manully click Discover for each machine rollout.
>> >
>> > Is there anyway to force "atuo"-discover at logon script ?
>> >
>> >
>>
>>
>
>


.



Relevant Pages

  • Re: Ghost Replication with SMS
    ... As SMS can allow a client to run a command line, ... > Can you use SMS to replicate a ghost image to another ghost server? ...
    (microsoft.public.sms.misc)
  • RE: SMS Advanced Client refuses to do its job
    ... [Configuration - Client Properties] ... SMS SMBIOS Serial Number Identifier=43004E0055003700340034003000460050004A00 ... SMS Hardware Identifier=4BE9C601019A00EA ... policy update with 0 assignments" This is correct as there are no adv's for ...
    (microsoft.public.sms.swdist)
  • RE: SMS Advanced Client refuses to do its job
    ... Advanced tab? ... does it have a value for SMS Unique ... SMS client preloaded; you should have run stopped the SMS Client server, ... policy update with 0 assignments" This is correct as there are no adv's for ...
    (microsoft.public.sms.swdist)
  • RE: SMS Advanced Client refuses to do its job
    ... Advanced tab? ... does it have a value for SMS Unique ... SMS client preloaded; you should have run stopped the SMS Client server, ... policy update with 0 assignments" This is correct as there are no adv's for ...
    (microsoft.public.sms.swdist)
  • Error Advanced Client setup
    ... I'm having a problem installing the SMS advanced client on certain servers. ... Action start 16:07:53: INSTALL. ...
    (microsoft.public.sms.setup)

Loading