Re: SMS Script Delete single member from collection
- From: "Rune Norberg" <runeno@xxxxxxxxxxxxxxxx>
- Date: Tue, 19 Jul 2005 21:33:03 +0200
I'm not sure on what you really try to do here, seems to me like you are
trying to delete resources out of the database?
Member of collections are defined by rules, which is either direct or
dynamic (query based). If you used direct membership rules to add members to
your collections the vbscript I provided would have helped you.
For me it seems like you are trying to delete resources and I'm not sure
that you are aware of that will completely delete them out of the SMS
database (ie. it will get removed from every collection)? If that's what you
want you may use something like:
Set loc = CreateObject( "WbemScripting.SWbemLocator" )
Set WbemServices = loc.ConnectServer( strServer,"root\SMS\site_" &
strSiteCode)
Set objResource = WbemServices.Get("SMS_R_System='" & intResID & "'")
objResource.Delete_
/Rune
"Bobby Boucher" <BobbyBoucher@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:935EA576-E83C-4A95-85CF-94BE05F5CAF6@xxxxxxxxxxxxxxxx
> Thank you for your Answer Rune...
>
> But I'm still not getting it...
>
> I've seen this example and tried it ...
> But when I run it ... there were just one rule ... which was showing the
> query for filling the collection...
> If I removed it... will it not remove all the members from the collection
> ?
> Or am I understanding it wrong ?
>
> Could you show a real example of how to remove one member from a
> collection
> having just the Collection Id and the Ressource Id...
>
> Thanks a lot
.
- Follow-Ups:
- Re: SMS Script Delete single member from collection
- From: Bobby Boucher
- Re: SMS Script Delete single member from collection
- References:
- SMS Script Delete single member from collection
- From: Bobby Boucher
- Re: SMS Script Delete single member from collection
- From: Rune Norberg
- Re: SMS Script Delete single member from collection
- From: Bobby Boucher
- SMS Script Delete single member from collection
- Prev by Date: SMS processes and directories to be excluded from Anti-Virus RTM
- Next by Date: RE: Metering Office 2003 Applications
- Previous by thread: Re: SMS Script Delete single member from collection
- Next by thread: Re: SMS Script Delete single member from collection
- Index(es):
Relevant Pages
|