Hi all, hope someone here can help me? or have solved this on another way?

Why Script Need:Install a new pc (replace hardware) for a user with the same apps.

Current Situation:
Right now Vista with SCCM/CM direct membersip in collection with advertisment.

We will preinstall a PC (new hardware) to users (then can replace when they want)
I´m looking for a script where I can type a "old/present computername" and a "new computername" then the script will read which collection my old comupter is a member of, and add the new to the samt collections?

Yes we use Direct membership and we have no plans of changing this now :-)

0 Comments   [ - ] Hide Comments


Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
Answer this question or Comment on this question for clarity


MSDN has sample code for querying a collection.

I *think* I posted some stuff on AppDeploy, too......
Answered 02/23/2011 by: VBScab
Red Belt

Please log in to comment
As I´m really bad at scripting I hoped someone had "invented" this?

I´v seached a lot but cannot find a script that fits into what I need.
Answered 02/23/2011 by: fetgor
Senior Purple Belt

Please log in to comment
OK, so your choices are:

- learn VBS
- employ someone to create the script for you.

Since it sounds like this is a "nice to have" tool rather than a "we can't operate without it" tool, the former option sounds favourite.cannot find a script that fits into what I need.One of the quickest routes to learning stuff like this is to take what someone has already done and mould it to suit your purposes. From knowing nothing about SCCM, I used the MSDN sample code to create a script which added a package to SCCM, ready for deployment. It creates the AD group (we use AD to control collection "membership"), the package, the program, it assigns the package to Distribution Point, creates the Collection, Advertisement and finally sets the Maintenance Window.

And no, regrettably, I am unable to share that script, having been burned in the past.
Answered 02/23/2011 by: VBScab
Red Belt

Please log in to comment