Scripting SMS 2003



Hi,
After installing a Secondary Site I want to verify that the role ‘Management
Point’ is enabled.
To do this I’m querying the ‘SMS_SCI_SysResUse’ class (se code below).
The query does not return information that the role is enabled, even though
I can see that it is in the SMS Admin Console, until after 1 to 20 minutes.

Is this due to intra-site replication or something like that?
Is there any other way to verify that the role has been enabled without the
delay of 1 to 20 minutes?

----------
SiteCode = "mySecSite"
CentralSiteCode = "myPriSite"
CentralSiteServer = "myPriServer"

On error resume next

Set loc = CreateObject("WbemScripting.SWbemLocator")
Set WbemServices = loc.ConnectServer( CentralSiteServer, "root\SMS\site_" &
CentralSiteCode )
Set objSiteRoles = WbemServices.ExecQuery("Select * From SMS_SCI_SysResUse
WHERE SiteCode='" & SiteCode & "'")


For Each Role In objSiteRoles
<code>
Next
----------

Regards,
Peter Lundin
.



Relevant Pages

  • Re: Unable to install ANY updates
    ... 1.343: InstallInfCatalogFile: Installing ... 1.375: KB925486 Setup encountered an error: Setup could not verify the ... sure the Cryptographic service is running on this computer. ...
    (microsoft.public.windowsupdate)
  • Re: Unable to install ANY updates
    ... 1.343: InstallInfCatalogFile: Installing ... 1.375: KB925486 Setup encountered an error: Setup could not verify the ... I was able to install the previous security updates via Automatic Updates ...
    (microsoft.public.windowsupdate)
  • Issue with DP or Client I cant tell
    ... I have a win2k client with advanced client security within AD, ... Verify that the Task Scheduler is enabled. ... Verify that the SQL Server has named pipes enabled. ... X component" - However this appears on all other secondary site ...
    (microsoft.public.sms.admin)
  • Re: MS03-039 Deploy Script
    ... Does this script force you to reboot the machine after installing? ... > ' Verify that the patches are accessible. ... > set oOSInfo = osvcRemote.InstancesOf ...
    (microsoft.public.security)
  • Re: Issue with DP or Client I cant tell
    ... > I have a win2k client with advanced client security within AD, ... > 4) Verify that the Task Scheduler is enabled. ... > 9) Verify that the SQL Server has named pipes enabled. ... > X component" - However this appears on all other secondary site ...
    (microsoft.public.sms.admin)

Loading