How to remove multiple identified computers from direct membership collection..

I have been askedd to remove a list of computers provided in a text file from a direct membership collection, normally this would be easy and I would use Collection Injector as it is a great solution which is pretty much foolproof, however for some reason that is totally beyond me and who knows why, I have been told to see if there is a script to perform the same functionality, but why reinvent the wheel.....go figure

so in essence, does anyone know of a script to accomplish this????I can find them for a single computer but not for a list based solution, any help greatly appreciated

r

January 22nd, 2014 11:17am

Hmmm.... probably so but for 2007 I'd use collection injection. :-)

PoSH for 2012

Free Windows Admin Tool Kit Click here and download it now
January 22nd, 2014 4:40pm

You can do it using powershell+WMI.

Also, if you are looking to remove a llist of machines from a collection. Why don't you try writing a query?

some like...

select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client from SMS_R_System whereSMS_R_System.NetbiosName not in ("null")

here put the list of computers in the not in list..

January 22nd, 2014 4:51pm

Also, if you are looking to remove a llist of machines from a collection. Why don't you try writing a query?

some like...

select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client from SMS_R_System whereSMS_R_System.NetbiosName not in ("null")

here put the list of computers in the not in list..

Free Windows Admin Tool Kit Click here and download it now
January 22nd, 2014 6:28pm

HI,

thanks for the answers, with regards to the SMS query , I did suggest a query based collection that would get the same functionality, but it must be in powershell....dont ask......

January 23rd, 2014 2:15am

HI,

thanks for the answers, with regards to the SMS query , I did suggest a query based collection that would get the same functionality, but it must be in powershell....dont ask

Free Windows Admin Tool Kit Click here and download it now
January 23rd, 2014 5:06am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics